Content added to end:
Code: Select all
ifplugin Mail::SpamAssassin::Plugin::RelayCountry
header RELAYCOUNTRY_BAD X-Relay-Countries =~ /^(CN|RU|DE)/
describe RELAYCOUNTRY_BAD Testing country relay plugin
score RELAYCOUNTRY_BAD 0.1
add_header all Relay-Country _RELAYCOUNTRY_
endif # Mail::SpamAssassin::Plugin::RelayCountry
I restarted spamassassin and mailscanner, but I was expecting to see something like this in my mail headers:
X-Spam-Relay-Country: US CN RU
It doesn't seem like headers are being added, but I did spot this in a recent spam so I know the rule is working (although for some reason the description isn't??)
Code: Select all
0.79 RDNS_NONE Delivered to internal network by a host with no rDNS
0.10 RELAYCOUNTRY_BAD
0.00 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
Sources:
https://cwiki.apache.org/confluence/dis ... ntryPlugin
viewtopic.php?t=1556