Skip to content

Configures spamassassin to score mails with various rules against the reply-to, from and to headers.

Notifications You must be signed in to change notification settings

extremeshok/spamassassin-extremeshok_fromreplyto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

DEPRECATED

This has been integrated in SpamAssassin 3.4.2 and newer

With the plugin Mail::SpamAssassin::Plugin::FromNameSpoof

spamassassin-extremeshok_fromreplyto

Maintained and provided by https://eXtremeSHOK.com

Description

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.

REQUIRES

spamassassin

INSTALL GUIDE

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

NOTE

For scoring email with the following

Add this custom SA rule:

header	  FROM_NAME_SPOOF From =~ /^.*@.*<.*@.*>/i
describe  FROM_NAME_SPOOF FromNameSpoof
score 	  FROM_NAME_SPOOF 5.0

Version 1.7 (updated 2018-03-22)

  • 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

Version 1.6 (updated 2017-10-16)

  • eXtremeSHOK.com Maintenance
  • Added FromAndToIsSameDomain which can either increase or decrease the score

Version 1.5 (updated 2016-07-11)

  • eXtremeSHOK.com Maintenance
  • Fixed dbg: plugin: did not register FromIsTo, already registered
  • Refactored to better support spamassassin 3.4 and newer

Version 1.4

  • 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

Version 1.3.1

  • eXtremeSHOK.com Maintenance
  • More unique variable names
  • Fixed warn: Global symbol

Version 1.3

  • eXtremeSHOK.com Maintenance
  • Added FromIsTo, most spam emails the from" and to" is identical
  • Minor code cleanups
  • Project renamed
  • Improved documentation

Version 1.2.10

  • eXtremeSHOK.com Maintenance
  • Fix for scoring missing from/replyto as a fail

Version 1.2.0

  • eXtremeSHOK.com Maintenance
  • Better logic with domain checking, will allow for different sub-domains of the same domain name.

About

Configures spamassassin to score mails with various rules against the reply-to, from and to headers.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •