Maintained and provided by https://eXtremeSHOK.com
Configures spamassassin to score mails with various rules against the reply-to, from and to headers. Spam often uses a different From: and Reply-To: Whilst most legitimate email does not. Spam often uses the same From: and To: Whilst most legitimate email does not Same domain checking Logic, will allow for different sub-domains of the same domain name.
spamassassin
create the plugin directory.
mkdir /etc/mail/spamassassin/plugins/
Download and save the plugins to /etc/mail/spamassassin/plugins/
Download and save 01_extremeshok_fromreplyto.cf to /etc/mail/spamassassin/01_extremeshok_fromreplyto.cf
Verify the installation with the following command.
spamassassin -D --lint 2>&1 | grep -i failed
For scoring email with the following
From: "[email protected]" <[email protected]>
Add this custom SA rule:
header FROM_NAME_SPOOF From =~ /^.*@.*<.*@.*>/i
describe FROM_NAME_SPOOF FromNameSpoof
score FROM_NAME_SPOOF 5.0
- eXtremeSHOK.com Maintenance
- Allow whitelisting of your contact form, view comments in plugins/FromIsNotReplyToWhitelist.pm
- Added $check_replyTo_full_address and $check_from_full_address variables to plugins/FromIsNotReplyToWhitelist.pm
- Bugfix: Array Index values wrong @slider182
- eXtremeSHOK.com Maintenance
- Added FromAndToIsSameDomain which can either increase or decrease the score
- eXtremeSHOK.com Maintenance
- Fixed dbg: plugin: did not register FromIsTo, already registered
- Refactored to better support spamassassin 3.4 and newer
- eXtremeSHOK.com Maintenance
- More unique variable names
- Fixed FromIsTo to check if the from and to are the same, then increase the spam score
- Added FromIsReplyTo to decrease spam score
- Fixed spam score points
- eXtremeSHOK.com Maintenance
- More unique variable names
- Fixed warn: Global symbol
- eXtremeSHOK.com Maintenance
- Added FromIsTo, most spam emails the from" and to" is identical
- Minor code cleanups
- Project renamed
- Improved documentation
- eXtremeSHOK.com Maintenance
- Fix for scoring missing from/replyto as a fail
- eXtremeSHOK.com Maintenance
- Better logic with domain checking, will allow for different sub-domains of the same domain name.