SpamAssassin 4.0 rpms are now included in the danami-warden repository as of May 1, 2023. SpamAssassin will be upgraded when Warden is installed.
Important:
- SpamAssassin 4.0 is only supported as of Warden 3.0. You must have Warden 3.0 installed before upgrading.
- These packages are for RHEL/AlmaLinux/CloudLinux/RockyLinux 8.X and 9.X only.
Whats new in SpamAssassin 4.0?
- IDN (Internationalized domain name) support.
- An improved header address parser that also handles multiple addresses, nested comments, and other oddities.
- A new DecodeShortURLs plugin that decodes shortened URLs in messages.
- A new DMARC policy plugin to check if an email respects its domain DMARC policy.
- A new ExtractText plugin that uses external tools to extract text from message parts.
- The DKIM plugin now supports ARC signature verification.
- The ASN plugin now supports the MaxMind ASN GeoDB for local ASN lookups.
- Pyzor and Razor2 can now fork separate processes and read the results in later (similar to async DNS lookups) which increases throughput.
You can view the full SpamAssassin release announcement here.
Downgrading SpamAssassin if you want to use SpamAssassin 3.4.6 Instead
To downgrade from SpamAssassin 4.0 back to SpamAssassin 3.4.6 if you have any trouble run the commands:
// AlmaLinux/RHEL/CloudLinux/RockyLinux 8+
dnf downgrade spamassassin
// disable any plugins that are are not supported by SpamAssassin 3.4.6
sed -s -i -e "s/^loadplugin Mail::SpamAssassin::Plugin::RelayCountry/#loadplugin Mail::SpamAssassin::Plugin::RelayCountry/" /etc/mail/spamassassin/*.pre
sed -s -i -e "s/^loadplugin Mail::SpamAssassin::Plugin::WelcomeListSubject/#loadplugin Mail::SpamAssassin::Plugin::WelcomeListSubject/" /etc/mail/spamassassin/*.pre
sed -s -i -e "s/^loadplugin Mail::SpamAssassin::Plugin::URILocalBL/#loadplugin Mail::SpamAssassin::Plugin::URILocalBL/" /etc/mail/spamassassin/*.pre
// remove any spamassassin 4.0 config options that are not supported by SpamAssassin 3.4.6
sed -i '/^welcomelist_from_spf \|^asn_use_geodb \|^asn_prefer_geodb \|^asn_use_dns \|^use_auto_welcomelist \|^auto_welcomelist_factor \|^auto_welcomelist_ipv4_mask_len \|^auto_welcomelist_ipv6_mask_len \|^welcomelist_from_dkim \|^freemail_welcomelist \|^freemail_import_welcomelist_auth \|^freemail_import_def_welcomelist_auth \|^pyzor_fork \|^pyzor_count_min \|^pyzor_welcomelist_min \|^pyzor_welcomelist_factor \|^razor_fork \|^txrep_welcomelist_out \|^welcomelist_bounce_relays /d' /etc/mail/spamassassin/local.cf
// check for any errors in your configuration (it should return no output)
spamassassin --lint
// restart amavis
systemctl restart amavisd
// add an exclude line to prevent SpamAssassin from being upgraded again during yum updates.
sed -i '/^gpgkey/{s/.*/&\nexclude=spamassassin/;:a;n;ba}' /etc/yum.repos.d/danami-warden.repo