hello amavis users
i would like to bypass spam checks for local system mail, like fail2ban
message, logdigest reports, apache and so on ...
all those messages are send via localhost and are listed in @mynetworks
@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10 10.0.0.0/8
172.16.0.0/12 192.168.0.0/16 );
then i got a policy_bank for emails originating from mynetworks which
disables the spam checks via bypass_spam_checks_maps => [1]
$policy_bank{'MYNETS'} = { # mail originating from @mynetworks
originating => 1, # is true in MYNETS by default, but let's make it
explicit
os_fingerprint_method => undef, # don't query p0f for internal clients
bypass_spam_checks_maps => [1], # don't spam-check
};
but still local messages are getting spam checked! what am i doing wrong?
any hints are highly appreciated - thanks!
becki
2016-09-15T23:33:09.683297+02:00 cx20 postfix/smtpd[3018]: connect from
localhost.localdomain[127.0.0.1]
2016-09-15T23:33:09.691007+02:00 cx20 postfix/smtpd[3018]: A8A301A06D9:
client=localhost.localdomain[127.0.0.1]
2016-09-15T23:33:09.696770+02:00 cx20 postfix/cleanup[2875]:
A8A301A06D9: message-id=<[email protected]>
2016-09-15T23:33:09.716596+02:00 cx20 postfix/qmgr[25198]: A8A301A06D9:
from=<[email protected]>, size=4327, nrcpt=1 (queue active)
2016-09-15T23:33:09.718564+02:00 cx20 postfix/smtpd[3018]: disconnect
from localhost.localdomain[127.0.0.1]
2016-09-15T23:33:09.725548+02:00 cx20 postfix/smtpd[3018]: connect from
localhost.localdomain[127.0.0.1]
2016-09-15T23:33:09.732320+02:00 cx20 postfix/smtpd[3018]: B2B8E1A1A54:
client=localhost.localdomain[127.0.0.1]
2016-09-15T23:33:09.736469+02:00 cx20 postfix/cleanup[2875]:
B2B8E1A1A54: message-id=<[email protected]>
2016-09-15T23:33:09.848020+02:00 cx20 postfix/qmgr[25198]: B2B8E1A1A54:
from=<[email protected]>, size=2769938, nrcpt=1 (queue active)
2016-09-15T23:33:09.852370+02:00 cx20 postfix/smtpd[3018]: disconnect
from localhost.localdomain[127.0.0.1]
2016-09-15T23:33:09.858719+02:00 cx20 amavis[640]: (00640-15) Passed
SPAM {RelayedTaggedInternal}, ORIGINATING <[email protected]> ->
<[email protected]>, Message-ID: <201609
[email protected]>, mail_id: SBFlGuBrI3O6, Hits:
7.723, size: 2758181, queued_as: B2B8E1A1A54, 21244 ms
2016-09-15T23:33:09.875955+02:00 cx20 postfix/smtp[2879]: 762DF1A1A50:
to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=22,
delays=0.34/0.02/0.01/21, dsn=2.0.0, statu
s=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued
as B2B8E1A1A54)
2016-09-15T23:33:09.879476+02:00 cx20 postfix/qmgr[25198]: 762DF1A1A50:
removed
2016-09-15T23:33:10.665806+02:00 cx20 postfix/lmtp[3020]: A8A301A06D9:
to=<[email protected]>, relay=localhost[127.0.0.1]:24, delay=0.98,
delays=0.03/0.01/0.01/0.93, dsn=2.0.0, statu
s=sent (215 Recipient <[email protected]> OK)
2016-09-15T23:33:10.666523+02:00 cx20 postfix/qmgr[25198]: A8A301A06D9:
removed
2016-09-15T23:33:11.877200+02:00 cx20 postfix/lmtp[3022]: B2B8E1A1A54:
to=<[email protected]>, relay=localhost[127.0.0.1]:24, delay=2.1,
delays=0.12/0.01/0.81/1.2, dsn=2.0.0, status
=sent (215 Recipient <[email protected]> OK)
2016-09-15T23:33:11.880079+02:00 cx20 postfix/qmgr[25198]: B2B8E1A1A54:
removed