Bowie Bailey wrote: > On 4/11/2016 10:55 AM, Helmut Schneider wrote: > > Hi, > > > > for more than 6 months I'm trying to fix ALL_TRUSTED=-1 without > > success. > > > > I have read https://wiki.apache.org/spamassassin/TrustPath and > > https://wiki.apache.org/spamassassin/FixingAllTrusted carefully, put > > > > trusted_networks 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 > > internal_networks 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 > > add_header all RelaysUntrusted RELAYSUNTRUSTED (this does not seem > > to work at all, no header seems added) > > > > into local.cf and still ALL_TRUSTED gets fired. Any help would be > > appreciated. > > Step one is to make sure you're putting the settings into the right > file. Run this to check if you are using the right file: > > $ spamassassin -D config --lint 2>&1 | grep local.cf > Apr 11 11:40:56.509 [6692] dbg: config: read file > /etc/mail/spamassassin/local.cf > > Once you have your settings in the right file, then make sure you > have restarted amavisd-new to load the new settings.
mail:~$ spamassassin -D config --lint 2>&1 | grep local.cf Apr 11 17:54:12.525 [31265] dbg: config: read file /usr/share/spamassassin/local.cf Apr 11 17:54:12.526 [31265] dbg: config: read file /etc/spamassassin/local.cf mail:~$ grep -iE '(^trusted|internal)' /etc/spamassassin/local.cf trusted_networks 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 internal_networks 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 mail:~$ grep -iE '(^trusted|internal)' /usr/share/spamassassin/local.cf mail:~$ Restarted amavisd-new?! I guess I restarted the server more than 20 times within the last 6 months ;)