SlideShare a Scribd company logo
New features in
SpamAssassin 4.0
Giovanni Bechis <gbechis@apache.org>
2022.07.30
SpamAssassin 4.0 dev story
• 4.0 branch started on 2015 as a copy of 3.4.1
version
• 4.0 branch has started primarily to improve utf-8
parser
• While developing on 4.0 branch 5 minor versions
have been released
• Most recent SpamAssassin released version is 3.4.6
released on 04/12/2021
UTF8 support
• With UTF8 and UTF16
support
SpamAssassin can
easily block spam
in different
languages
UTF8 support
# Match a “ ” on the email Subject
📆
header EMOJI_CAL Subject =~ /xf0x9fx93x86/i
Bayes improvements
• It’s now possible
to skip common
words used in 15
different languages
to improve Bayes
algorithm on non-
english emails
Bayes improvements
# Danish stopwords
bayes_stopword_dk (?^:(?:a(?:lle|nden)|bl(?:ev|
iver?)|d(?:e(?:nne|res|tte)|isse)|e(?:fter|ller)|
h(?:a(?:ns|v(?:de|e))|endes?|v(?:ad|is|or))|ikke|
kunne|m(?:ange|eget|ine)|nog(?:et|le)|o(?:gsxc3
xa5|ver)|s(?:elv|ine|k(?:al|ulle)|xc3xa5dan)|
under|v(?:ille|xc3xa6ret?)))
ExtractText plugin
• ExtractText.pm is a
plugin that extract
text from
attachments using
external softwares
ExtractText plugin
extracttext_external tesseract {OMP_THREAD_LIMIT=1}
/usr/local/bin/tesseract -c page_separator= {} -
extracttext_use tesseract .bmp .jpg .png .tif
extracttext_external xls2txt
/usr/local/scripts/xls2txt.pl -u -i {}
extracttext_use xls2txt .xls
application/(?:vnd.?)?ms-?excel.*
OLEVBMacro plugin
• OLEVBMacro plugin
can now extract
uris from Office
documents metadata
Short urls
• DecodeshortURLs is
a plugin that
checks the url
shorteners target
Short urls
Ifplugin Mail::SpamAssassin::Plugin::DecodeShortURLs
url_shortener .short.gy
url_shortener bit.ly
body HAS_SHORT_URL eval:short_url()
score HAS_SHORT_URL 0.01
endif
Captured tags
• Captured tags can
be used in other
rules as a matching
string
Captured tags
if can(Mail::SpamAssassin::Conf::feature_capture_rules)
header __FROM_NAME From:name =~ /(?<FROM_NAME>w+)/
header FROM_NAME_SUBJ Subject =~ /b%{FROM_NAME}b/i
endif
sa-update(1) improvements
• sa-update(1) has
been improved with
new options:
--forcemirror
--score-multiplier
--score-limit
sa-update(1) improvements
• --forcemirror
forces sa-update to use a specific mirror server
• --score-multiplier
adjust all scores from update channel, multiply
with given value
• --score-limit
adjust all scores from update channel, limit
to given value
ARC Signatures
• ARC signatures are
used to validate an
email when the
email's SPF and
DKIM records are
rendered invalid by
an intermediate
server
DMARC policies
• DMARC policies give
email domain owners
the ability to
protect their
domain from
unauthorized use
DMARC policies
ifplugin Mail::SpamAssassin::Plugin::Dmarc
# dmarc_save_reports 1
header DMARC_PASS eval:check_dmarc_pass()
describe DMARC_PASS DMARC pass policy
priority DMARC_PASS 500
tflags DMARC_PASS net nice
reuse DMARC_PASS
endif
Inclusion changes
Some keywords have been changed by using more inclusive
words.
• whitelist -> welcomelist
• blacklist -> blocklist
Old keywords will continue to work until
SpamAssassin 4.1 will be released
Thanks
@_gbechis
giovannibechis
gbechis@apache.org

More Related Content

PPT
PDF
[9] Firewall.pdf
PPTX
Cloud Computing Architecture
PDF
Rspamd symbols
PDF
Apache Pig: A big data processor
PPTX
Sql in dbms
PPTX
Virtual Machine
PPTX
Cloud computing, Basic Concepts, SOA,
[9] Firewall.pdf
Cloud Computing Architecture
Rspamd symbols
Apache Pig: A big data processor
Sql in dbms
Virtual Machine
Cloud computing, Basic Concepts, SOA,

What's hot (9)

PDF
Brkarc 2035-cat-9 k
PPTX
Nosql-Module 1 PPT.pptx
PPTX
Polygraphic Substitution Cipher -Part 1
PPTX
Assignment on windows firewall
PPT
cloud computing.ppt
PPTX
PRESENTATION ON CLOUD COMPUTING
PPTX
PDF
Introduction to SQL
PPTX
Cloud computing ppt
Brkarc 2035-cat-9 k
Nosql-Module 1 PPT.pptx
Polygraphic Substitution Cipher -Part 1
Assignment on windows firewall
cloud computing.ppt
PRESENTATION ON CLOUD COMPUTING
Introduction to SQL
Cloud computing ppt
Ad

Similar to SpamAssassin 4.0 new features (20)

PDF
Introduction to Chef - April 22 2015
PPTX
SPSMUC22 - SharePoint Patching Demystified
PDF
TYPO3 8 is here - how we keep EXT:solr uptodate with the TYPO3 core
PDF
ECS19 - Rodrigo Pinto - Migrating to Teams, real cases and scenarios
PPTX
Simplified Cluster Operation and Troubleshooting
PPTX
Simplified Cluster Operation & Troubleshooting
PDF
Red Gate Exchange E Book
PDF
EuroPython 2024 - Streamlining Testing in a Large Python Codebase
PDF
New features in Ruby 2.5
PPT
Parse Server Open Source
PPTX
Private Channels in Microsoft Teams: An End to End Overview
PPTX
[DanNotes] XPages - Beyound the Basics
PDF
Hidden gems in cf2016
PPTX
Apache Ambari: Simplified Hadoop Cluster Operation & Troubleshooting
PDF
WordPress At Scale. WordCamp Dhaka 2019
PPT
10135 a 07
KEY
How to start developing your own ExpressionEngine addons
PPTX
Amazon RDS for PostgreSQL - PGConf 2016
PPTX
DSpace 4.2 Basics & Configuration
PPTX
Dspace4 150227090306-conversion-gate01
Introduction to Chef - April 22 2015
SPSMUC22 - SharePoint Patching Demystified
TYPO3 8 is here - how we keep EXT:solr uptodate with the TYPO3 core
ECS19 - Rodrigo Pinto - Migrating to Teams, real cases and scenarios
Simplified Cluster Operation and Troubleshooting
Simplified Cluster Operation & Troubleshooting
Red Gate Exchange E Book
EuroPython 2024 - Streamlining Testing in a Large Python Codebase
New features in Ruby 2.5
Parse Server Open Source
Private Channels in Microsoft Teams: An End to End Overview
[DanNotes] XPages - Beyound the Basics
Hidden gems in cf2016
Apache Ambari: Simplified Hadoop Cluster Operation & Troubleshooting
WordPress At Scale. WordCamp Dhaka 2019
10135 a 07
How to start developing your own ExpressionEngine addons
Amazon RDS for PostgreSQL - PGConf 2016
DSpace 4.2 Basics & Configuration
Dspace4 150227090306-conversion-gate01
Ad

More from Giovanni Bechis (20)

PDF
the Apache way
PDF
ACME and mod_md: tls certificates made easy
PDF
Scaling antispam solutions with Puppet
PDF
What's new in SpamAssassin 3.4.3
PDF
Fighting Spam for fun and profit
PDF
Linux seccomp(2) vs OpenBSD pledge(2)
PDF
Pledge in OpenBSD
PDF
Pf: the OpenBSD packet filter
PDF
ELK: a log management framework
PDF
OpenSSH: keep your secrets safe
PDF
OpenSMTPD: we deliver !!
PDF
LibreSSL, one year later
PDF
LibreSSL
PDF
SOGo: sostituire Microsoft Exchange con software Open Source
PDF
Cloud storage, i tuoi files, ovunque con te
PDF
Npppd: easy vpn with OpenBSD
PDF
Openssh: comunicare in sicurezza
PDF
Ipv6: il futuro di internet
PDF
L'ABC della crittografia
PDF
Relayd: a load balancer for OpenBSD
the Apache way
ACME and mod_md: tls certificates made easy
Scaling antispam solutions with Puppet
What's new in SpamAssassin 3.4.3
Fighting Spam for fun and profit
Linux seccomp(2) vs OpenBSD pledge(2)
Pledge in OpenBSD
Pf: the OpenBSD packet filter
ELK: a log management framework
OpenSSH: keep your secrets safe
OpenSMTPD: we deliver !!
LibreSSL, one year later
LibreSSL
SOGo: sostituire Microsoft Exchange con software Open Source
Cloud storage, i tuoi files, ovunque con te
Npppd: easy vpn with OpenBSD
Openssh: comunicare in sicurezza
Ipv6: il futuro di internet
L'ABC della crittografia
Relayd: a load balancer for OpenBSD

Recently uploaded (20)

PDF
Sims 4 Historia para lo sims 4 para jugar
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
DOCX
Unit-3 cyber security network security of internet system
PPTX
innovation process that make everything different.pptx
PPT
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
Funds Management Learning Material for Beg
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PPTX
international classification of diseases ICD-10 review PPT.pptx
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PPTX
presentation_pfe-universite-molay-seltan.pptx
PPT
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PPTX
Mathew Digital SEO Checklist Guidlines 2025
PDF
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
Sims 4 Historia para lo sims 4 para jugar
Introuction about WHO-FIC in ICD-10.pptx
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
Power Point - Lesson 3_2.pptx grad school presentation
Unit-3 cyber security network security of internet system
innovation process that make everything different.pptx
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Funds Management Learning Material for Beg
Module 1 - Cyber Law and Ethics 101.pptx
international classification of diseases ICD-10 review PPT.pptx
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
presentation_pfe-universite-molay-seltan.pptx
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
Slides PPTX World Game (s) Eco Economic Epochs.pptx
Introuction about ICD -10 and ICD-11 PPT.pptx
Unit-1 introduction to cyber security discuss about how to secure a system
Design_with_Watersergyerge45hrbgre4top (1).ppt
Mathew Digital SEO Checklist Guidlines 2025
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)

SpamAssassin 4.0 new features