On Tue, 27 Sep 2016 11:16:33 +0200 Thomas Barth wrote: > Hello, > > I ve installed RelayCountryPlugin as described on this page: > > https://wiki.apache.org/spamassassin/RelayCountryPlugin > > The package libgeo-ip-perl (Debian 8.5) is installed. (Note at the > end of the page) > > I added the following rule to /etc/mail/spamassassin/local.cf > > header RELAYCOUNTRY_BAD X-Relay-Countries !~ /(DE|AT|CH|NL)/ > describe RELAYCOUNTRY_BAD Relayed through black countries > score RELAYCOUNTRY_BAD 5.0 > > If not DE, AT, CH, NL add 5 points. > > It works so far, but if I send a mail to my own address > (sasl_authenticated) it also adds 5 points.
It's because you sent yourself an email locally. RelayCountry doesn't run on your own servers or on a client that's been authenticated by one of your servers. You haven't allowed for X-Relay-Countries to be empty.