spamassassin unix - n n - - pipe
user=dovecot argv=/usr/local/bin/spamc -e /usr/sbin/sendmail -oi -f $
{sender} ${recipient} #thats how spamassassin runs
#<KIS55> # THAT IS MY Antivirus
127.0.0.1:10030 inet n n n - 20 spawn
user=kluser argv=/usr/local/share/kav/5.5/kav4mailservers/bin/
smtpscanner
127.0.0.1:10031 inet n - n - 21 smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o myhostname=qnd
#<KIS55>
retry unix - - n - - error
------------------------------
===================================
Postgray running from rc.d/postgrey.sh at start time with:
postgrey_flags=${postgrey_flags:-"--pidfile=${postgrey_pidfile} \
--inet=139 -d --user=postgrey --group=postgrey --dbdir=/var/db/
postgrey \
--whitelist-clients=/etc/postfix/postgrey_whitelist_clients \
--whitelist-recipients=/etc/postfix/
postgrey_whitelist_recipients \
--delay=120 --max-age=30 --greylist-
text="Temporary_not_available." \
--auto-whitelist-clients=1"}
THIS CONFIGURATION works fine on postfix 2.2.8, i had a copy of all
mail to postb...@mydomain.com. BUT when i upgrade to postfix 2.4.0
it stops work normaly.. Now i have 2 copy for postb...@mydomain.com
for each incoming and outgoing mail.
Than i start to dig google groups and found a solution to add `-o
receive_override_options=no_address_mappings` to my master.cf like
that:
#<KIS55> # THAT IS MY Antivirus
127.0.0.1:10030 inet n n n - 20 spawn
user=kluser argv=/usr/local/share/kav/5.5/kav4mailservers/bin/
smtpscanner
127.0.0.1:10031 inet n - n - 21 smtpd
-o receive_override_options=no_address_mappings #that is my solution
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o myhostname=qnd
#<KIS55>
Now it works fine, only one copy sends to postb...@mydomain.com. BUT
i have strange thigs in log after this (look at the comments in
following piece of log):
================================================
Apr 19 09:10:19 mailer postfix/smtpd[92608]: 34D3541A0: client=dxb-
b14346.alshamil.net.ae[83.110.209.28]
#here i got the connection
Apr 19 09:10:19 mailer postfix/cleanup[92617]: 34D3541A0: message-
id=<172872638.93...@thebat.net>
Apr 19 09:10:34 mailer postfix/qmgr[81862]: 34D3541A0:
from=<r.k...@smhhou.com>, size=15512, nrcpt=2 (queue active)
#ok, we have a mail. spamassassin first
Apr 19 09:10:34 mailer spamd[607]: spamd: connection from
localhost.ktz [127.0.0.1] at port 59007
Apr 19 09:10:34 mailer spamd[607]: spamd: setuid to dovecot succeeded
Apr 19 09:10:34 mailer spamd[607]: spamd: processing message
<172872638.93...@thebat.net> for dovecot:1003
Apr 19 09:10:34 mailer postfix/smtpd[92608]: disconnect from dxb-
b14346.alshamil.net.ae[83.110.209.28]
#its a clean mail, moving next
Apr 19 09:10:35 mailer spamd[607]: spamd: clean message (5.8/8.0) for
dovecot:1003 in 1.0 seconds, 15262 bytes.
Apr 19 09:10:35 mailer spamd[607]: spamd: result: . 5 -
BAYES_99,DATE_IN_FUTURE_03_06,FROM_ILLEGAL_CHARS,HTML_COMMENT_SAVED_URL,HTML_MESSAGE,RCVD_IN_NJABL_DUL,USER_IN_WHITELIST_TO
scantime=1.0,size=15262,user=dovecot,uid=1003,required_score=8.0,rhost=localhost.ktz,raddr=127.0.0.1,rport=59007,mid=<172872638.93...@thebat.net>,bayes=1,autolearn=no
Apr 19 09:10:35 mailer postfix/pipe[92642]: 34D3541A0:
to=<b...@mydomain.com>, relay=spamassassin, delay=22,
delays=21/0.01/0/1.1, dsn=2.0.0, status=sent (delivered via
spamassassin service)
Apr 19 09:10:35 mailer postfix/pipe[92642]: 34D3541A0:
to=<postb...@mydomain.com>, relay=spamassassin, delay=22,
delays=21/0.01/0/1.1, dsn=2.0.0, status=sent (delivered via
spamassassin service)
#BEGINING OF STRANGE THINGS
Apr 19 09:10:35 mailer postfix/qmgr[81862]: 34D3541A0: removed
Apr 19 09:10:35 mailer postfix/pickup[92141]: 7AA2641B3: uid=1003
from=<r.k...@smhhou.com>
Apr 19 09:10:35 mailer postfix/cleanup[92617]: 7AA2641B3: message-
id=<172872638.93...@thebat.net>
Apr 19 09:10:35 mailer postfix/qmgr[81862]: 7AA2641B3:
from=<r.k...@smhhou.com>, size=15917, nrcpt=3 (queue active)
Apr 19 09:10:35 mailer spamd[531]: prefork: child states: II
Apr 19 09:10:35 mailer postfix/smtpd[92659]: connect from
localhost.ktz[127.0.0.1]
Apr 19 09:10:35 mailer postfix/smtpd[92659]: E482241BF:
client=localhost.ktz[127.0.0.1]
Apr 19 09:10:36 mailer postfix/cleanup[92617]: E482241BF: message-
id=<172872638.93...@thebat.net>
Apr 19 09:10:36 mailer postfix/qmgr[81862]: E482241BF:
from=<r.k...@smhhou.com>, size=16162, nrcpt=2 (queue active)
Apr 19 09:10:36 mailer postfix/smtpd[92659]: disconnect from
localhost.ktz[127.0.0.1]
Apr 19 09:10:36 mailer postfix/lmtp[92652]: 7AA2641B3:
to=<b...@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10030, delay=0.57,
delays=0.03/0.01/0.03/0.5, dsn=2.0.0, status=sent (250 2.0.0
<b...@mydomain.com> Ok)
Apr 19 09:10:36 mailer postfix/virtual[92660]: E482241BF:
to=<b...@mydomain.com>, relay=virtual, delay=0.13,
delays=0.11/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
#HERE
Apr 19 09:10:36 mailer postfix/lmtp[92652]: 7AA2641B3:
to=<postb...@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10030,
delay=0.59, delays=0.03/0.01/0.03/0.51, dsn=2.0.0, status=sent (250
2.0.0 <postb...@mydomain.com> Ok)
#AND HERE TOO
Apr 19 09:10:36 mailer postfix/lmtp[92652]: 7AA2641B3:
to=<postb...@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10030,
delay=0.59, delays=0.03/0.01/0.03/0.52, dsn=2.0.0, status=sent (250
2.0.0 <postb...@mydomain.com> Ok)
Apr 19 09:10:36 mailer postfix/virtual[92660]: E482241BF:
to=<postb...@mydomain.com>, relay=virtual, delay=0.14,
delays=0.11/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Apr 19 09:10:36 mailer postfix/qmgr[81862]: E482241BF: removed
Apr 19 09:10:36 mailer postfix/qmgr[81862]: 7AA2641B3: removed
#END OF STRANGE THINGS
=========================================
Can anybody explain me, whats happening between BEGINING an END OF
STRANGE THINGS? i "solved" double copy problem to always_bcc, but im
not sure it was correct. Why i got 2 lmtp status=sent messages for
postb...@mydomain.com, marked #HERE #AND HERE TOO? But it only one
"delivered to maildir" for him...
Any ideas? Tnx for all help!
(sorry for my english, im russian actually :)
I mean it scan it twice... Something is wrong...
[incoming mail] ----> (rbl,header, body,hostname and other checks)
------|if ok|----->(postgrey) ------> (antivirus) -------->
(spamassassin) -------> /delivered do recipient and to always_bcc
maildirs/
Big tnx for help!
I would glad to see every usefull links or any other help.
FILTER_README is very poor.