SlideShare ist ein Scribd-Unternehmen logo
1 von 61
Downloaden Sie, um offline zu lesen
Rspamd in
FreeBSD Mail
FreeBSD Mail
Mail architecture
Freefall Mailman
MX1 MX2
Mail architecture
Freefall Mailman
MX1 MX2
Mail architecture
Freefall Mailman
MX1 MX2
Mail architecture
Freefall Mailman
MX1 MX2
Mail architecture
Freefall Mailman
MX1 MX2
Mail architecture
Freefall Mailman
MX1 MX2
Mail architecture
Freefall Mailman
MX1 MX2
Mail architecture
Freefall Mailman
MX1 MX2
Mail architecture
Freefall Mailman
MX1 MX2
Mail architecture
Mail architecture
Mail architecture
• Complicated mail flows:
Mail architecture
• Complicated mail flows:
• many relays
Mail architecture
• Complicated mail flows:
• many relays
• many aliases
Mail architecture
• Complicated mail flows:
• many relays
• many aliases
• non-trivial circuits
Mail architecture
• Complicated mail flows:
• many relays
• many aliases
• non-trivial circuits
• Lots of legacy decisions
Add some Rspamd
Rspamd in action
Real-time scan stats (SandyBridge 4 cores Xeon)
Core
Proxy
Scan Layer
• Balancing
• Retransmits
• Health check
• SPF
• DKIM
• DMARC
• ARC
• SURBL Bayes NN Regexp Rules
Data storage
Proxy Layer
• Encryption
• Compression
• Mirroring
MTA
Milter/HTTP
Existing problems
Existing problems
Existing problems
• Spam in the mailing lists
Existing problems
• Spam in the mailing lists
• DKIM signatures breaking
Existing problems
• Spam in the mailing lists
• DKIM signatures breaking
• Controlling mail flows
Existing problems
• Spam in the mailing lists
• DKIM signatures breaking
• Controlling mail flows
Spam in mailing lists
Before Rspamd
Spam in mailing lists
Before Rspamd
Spam in mailing lists
Spam in mailing lists
Spam in mailing lists
Spam in mailing lists
DKIM in mailing lists
What usually happens
d=gmail.com
Message modified
DKIM in mailing lists
What usually happens
d=gmail.com
Message modified
DKIM in mailing lists
What usually happens
d=gmail.com
Message modified
DKIM in mailing lists
What should happen
d=gmail.com d=freebsd.org
Message modified
DKIM in mailing lists
What should happen
d=gmail.com d=freebsd.org
Message modified
DKIM in mailing lists
What should happen
d=gmail.com d=freebsd.org
Message modified
DKIM in mailing lists
Or, even better, ARC…
i=1,cv=none
i=2,cv=pass Message modified
AR: Arc passed
ARC in mailing lists
Interoperation
ARC in mailing lists
Interoperation
ARC in mailing lists
Interoperation
Signing issues
Signing issues
Signing issues
• Complicated architecture
Signing issues
• Complicated architecture
• Mail is seen many times
Signing issues
• Complicated architecture
• Mail is seen many times
• Need to enable/disable checks many times
Signing issues
• Complicated architecture
• Mail is seen many times
• Need to enable/disable checks many times
• We should not sign spam
Signing issues
Splitting flows
Future plans
Messages Modifications
What do we have
Messages Modifications
Proposed solution
Core
Proxy
Scan Layer
• Balancing
• Retransmits
• Health check
• SPF
• DKIM
• DMARC
• ARC
• SURBL Bayes NN Regexp Rules
Data storage
Proxy Layer
• Encryption
• Compression
• Mirroring
MTA
Milter
Personal Bayes
Personal Bayes
• We have many developers who are eager to
improve spam filter
Personal Bayes
• We have many developers who are eager to
improve spam filter
• They all have different preferences
Personal Bayes
• We have many developers who are eager to
improve spam filter
• They all have different preferences
• Idea: use both generic and personalised
statistics
Clickhouse queries
Questions?
Vsevolod Stakhov
https://rspamd.com
vsevolod@rspamd.com

Weitere ähnliche Inhalte

Ähnlich wie Rspamd freebsd FOSDEM

Fighting Spam With A Perimeter Mail System 20071108 Sasag
Fighting Spam With A Perimeter Mail System 20071108 SasagFighting Spam With A Perimeter Mail System 20071108 Sasag
Fighting Spam With A Perimeter Mail System 20071108 Sasag
garrett honeycutt
 
Domain name system advanced power point presentation
Domain name system advanced power point presentationDomain name system advanced power point presentation
Domain name system advanced power point presentation
rituchouhan1508
 
Event Driven Architecture
Event Driven ArchitectureEvent Driven Architecture
Event Driven Architecture
andreaskallberg
 

Ähnlich wie Rspamd freebsd FOSDEM (20)

Chapter 9 security
Chapter 9 securityChapter 9 security
Chapter 9 security
 
Fighting Spam With A Perimeter Mail System 20071108 Sasag
Fighting Spam With A Perimeter Mail System 20071108 SasagFighting Spam With A Perimeter Mail System 20071108 Sasag
Fighting Spam With A Perimeter Mail System 20071108 Sasag
 
An Introduction To The DMARC SMTP Validation Requirements
An Introduction To The DMARC SMTP Validation RequirementsAn Introduction To The DMARC SMTP Validation Requirements
An Introduction To The DMARC SMTP Validation Requirements
 
Fighting Email Abuse with DMARC
Fighting Email Abuse with DMARCFighting Email Abuse with DMARC
Fighting Email Abuse with DMARC
 
Linux10 sendmail
Linux10 sendmailLinux10 sendmail
Linux10 sendmail
 
Email as a datasource for applications
Email as a datasource for applicationsEmail as a datasource for applications
Email as a datasource for applications
 
How to deploy Exchange Online Protection
How to deploy Exchange Online ProtectionHow to deploy Exchange Online Protection
How to deploy Exchange Online Protection
 
Domain name system advanced power point presentation
Domain name system advanced power point presentationDomain name system advanced power point presentation
Domain name system advanced power point presentation
 
XMPP/Jingle(VoIP)/Perl Ocean 2012/03
XMPP/Jingle(VoIP)/Perl Ocean 2012/03XMPP/Jingle(VoIP)/Perl Ocean 2012/03
XMPP/Jingle(VoIP)/Perl Ocean 2012/03
 
Scaling NServiceBus NSBCon NY by Jimmy Bogard
Scaling NServiceBus NSBCon NY by Jimmy BogardScaling NServiceBus NSBCon NY by Jimmy Bogard
Scaling NServiceBus NSBCon NY by Jimmy Bogard
 
AWS re:Invent 2016: [JK REPEAT] Serverless Architectural Patterns and Best Pr...
AWS re:Invent 2016: [JK REPEAT] Serverless Architectural Patterns and Best Pr...AWS re:Invent 2016: [JK REPEAT] Serverless Architectural Patterns and Best Pr...
AWS re:Invent 2016: [JK REPEAT] Serverless Architectural Patterns and Best Pr...
 
AWS re:Invent 2016: Serverless Architectural Patterns and Best Practices (ARC...
AWS re:Invent 2016: Serverless Architectural Patterns and Best Practices (ARC...AWS re:Invent 2016: Serverless Architectural Patterns and Best Practices (ARC...
AWS re:Invent 2016: Serverless Architectural Patterns and Best Practices (ARC...
 
Serverless Architectural Patterns and Best Practices
Serverless Architectural Patterns and Best PracticesServerless Architectural Patterns and Best Practices
Serverless Architectural Patterns and Best Practices
 
Postfix
PostfixPostfix
Postfix
 
Event Driven Architecture
Event Driven ArchitectureEvent Driven Architecture
Event Driven Architecture
 
EmailTracing.ppt
EmailTracing.pptEmailTracing.ppt
EmailTracing.ppt
 
ION Bucharest - DANE-DNSSEC-TLS
ION Bucharest - DANE-DNSSEC-TLSION Bucharest - DANE-DNSSEC-TLS
ION Bucharest - DANE-DNSSEC-TLS
 
CoLabora - Exchange Online Protection - June 2015
CoLabora - Exchange Online Protection - June 2015 CoLabora - Exchange Online Protection - June 2015
CoLabora - Exchange Online Protection - June 2015
 
AWS re:Invent 2016: Design Patterns for High Availability: Lessons from Amazo...
AWS re:Invent 2016: Design Patterns for High Availability: Lessons from Amazo...AWS re:Invent 2016: Design Patterns for High Availability: Lessons from Amazo...
AWS re:Invent 2016: Design Patterns for High Availability: Lessons from Amazo...
 
Serverless Architectural Patterns and Best Practices | AWS
Serverless Architectural Patterns and Best Practices | AWSServerless Architectural Patterns and Best Practices | AWS
Serverless Architectural Patterns and Best Practices | AWS
 

Mehr von Vsevolod Stakhov

Mehr von Vsevolod Stakhov (9)

Rspamd symbols
Rspamd symbolsRspamd symbols
Rspamd symbols
 
Rspamd testing
Rspamd testingRspamd testing
Rspamd testing
 
rspamd-fosdem
rspamd-fosdemrspamd-fosdem
rspamd-fosdem
 
rspamd-slides
rspamd-slidesrspamd-slides
rspamd-slides
 
ast-rspamd
ast-rspamdast-rspamd
ast-rspamd
 
rspamd-hyperscan
rspamd-hyperscanrspamd-hyperscan
rspamd-hyperscan
 
Cryptography and secure systems
Cryptography and secure systemsCryptography and secure systems
Cryptography and secure systems
 
Pkg slides from BSDCan conference
Pkg slides from BSDCan conferencePkg slides from BSDCan conference
Pkg slides from BSDCan conference
 
New solver for FreeBSD pkg
New solver for FreeBSD pkgNew solver for FreeBSD pkg
New solver for FreeBSD pkg
 

Kürzlich hochgeladen

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

Rspamd freebsd FOSDEM