bypass spam check for local system mail
Admin Beckspaced
admin at beckspaced.com
Fri Sep 16 18:38:58 CEST 2016
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=<SASBFlGuBrI3O6 at mail.mydomain.com>
2016-09-15T23:33:09.716596+02:00 cx20 postfix/qmgr[25198]: A8A301A06D9:
from=<spam.police at mydomain.com>, 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=<20160915213248.762DF1A1A50 at mail.mydomain.com>
2016-09-15T23:33:09.848020+02:00 cx20 postfix/qmgr[25198]: B2B8E1A1A54:
from=<root at mail.mydomain.com>, 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 <root at mail.mydomain.com> ->
<admin at mydomain.com>, Message-ID: <201609
15213248.762DF1A1A50 at mail.mydomain.com>, 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=<admin at mydomain.com>, 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=<spam at mydomain.com>, 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 <spam at mydomain.com> 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=<admin at mydomain.com>, 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 <admin at mydomain.com> OK)
2016-09-15T23:33:11.880079+02:00 cx20 postfix/qmgr[25198]: B2B8E1A1A54:
removed
More information about the amavis-users
mailing list