Добрый день
Возникла такая проблема
При добавлении в /etc/postfix/master.cf строчки
smtp inet n - - - - smtpd
-o content_filter=spamassassin
и
spamassassin unix - n n - - pipe
user=spamd argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
Возникает задержка доставки письма примерно в две минуты, письмо просто зависает в очереди
mail.log без спамассасина
Aug 7 17:25:28 mail postfix/smtpd[26937]: connect from mail-it0-f41.google.com[209.85.214.41]
Aug 7 17:25:28 mail postfix/smtpd[26937]: D828A12124F: client=mail-it0-f41.google.com[209.85.214.41]
Aug 7 17:25:29 mail postfix/cleanup[26944]: D828A12124F: message-id=<CACNb=OKoFVZd19n+0CUATXOY-ZaWc6Ga9zciWJ35wHruDkASCw@mail.gmail.com>
Aug 7 17:25:29 mail postfix/qmgr[26924]: D828A12124F: from=<someuser@gmail.com>, size=2946, nrcpt=1 (queue active)
Aug 7 17:25:29 mail postfix/lmtp[26946]: D828A12124F: to=<support@mycompany.ru>, relay=mail.mycompany.ru[private/dovecot-lmtp], delay=0.29, delays=0.27/0.01/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 <support@mycompany.ru> zAJWCdlEp1dDaQAANlBLKA Saved)
Aug 7 17:25:29 mail postfix/qmgr[26924]: D828A12124F: removed
Aug 7 17:25:29 mail postfix/smtpd[26937]: disconnect from mail-it0-f41.google.com[209.85.214.41]
mail.log со строкой spamassasin
Aug 7 17:26:15 mail postfix/smtpd[27135]: connect from mail-it0-f53.google.com[209.85.214.53]
Aug 7 17:26:15 mail postfix/smtpd[27135]: B605A12124F: client=mail-it0-f53.google.com[209.85.214.53]
Aug 7 17:26:15 mail postfix/cleanup[27142]: B605A12124F: message-id=<CACNb=OLE_p_6vFbTpmzNJfDxR-Gy-J20QMkn3d24U0xsmdhLug@mail.gmail.com>
Aug 7 17:26:16 mail postfix/qmgr[27115]: B605A12124F: from=<someuser@gmail.com>, size=2950, nrcpt=1 (queue active)
Aug 7 17:26:16 mail postfix/smtpd[27135]: disconnect from mail-it0-f53.google.com[209.85.214.53]
спустя минуты примерно 2
Aug 7 17:28:23 mail spamc[27145]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection timed out
вот эта строчка тоже беспокоит, почему он с 1 раза не может подключиться к спамассасину?
Aug 7 17:28:23 mail postfix/pipe[27144]: B605A12124F: to=<support@mycompany.ru>, relay=spamassassin, delay=128, delays=0.27/0.01/0/127, dsn=2.0.0, status=sent (delivered via spamassassin service)
Aug 7 17:28:23 mail postfix/qmgr[27115]: B605A12124F: removed
Aug 7 17:28:23 mail postfix/pickup[27114]: 739BB12124F: uid=1001 from=<someuser@gmail.com>
Aug 7 17:28:23 mail postfix/cleanup[27182]: 739BB12124F: message-id=<CACNb=OLE_p_6vFbTpmzNJfDxR-Gy-J20QMkn3d24U0xsmdhLug@mail.gmail.com>
Aug 7 17:28:23 mail postfix/qmgr[27115]: 739BB12124F: from=<someuser@gmail.com>, size=3374, nrcpt=1 (queue active)
Aug 7 17:28:23 mail postfix/lmtp[27186]: 739BB12124F: to=<support@mycompany.ru>, relay=mail.mycompany.ru[private/dovecot-lmtp], delay=0.06, delays=0.03/0.01/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 <support@mycompany.ru> nEJOHodFp1czagAANlBLKA Saved)
Aug 7 17:28:23 mail postfix/qmgr[27115]: 739BB12124F: removed
spamassassin.log
Sun Aug 7 17:28:23 2016 [25470] info: spamd: connection from localhost [127.0.0.1]:54478 to port 783, fd 5
Sun Aug 7 17:28:23 2016 [25470] info: spamd: processing message <CACNb=OLE_p_6vFbTpmzNJfDxR-Gy-J20QMkn3d24U0xsmdhLug@mail.gmail.com> for spamd:1001
Sun Aug 7 17:28:23 2016 [25470] info: spamd: clean message (-0.0/5.0) for spamd:1001 in 0.2 seconds, 2895 bytes.
Sun Aug 7 17:28:23 2016 [25470] info: spamd: result: . 0 - FREEMAIL_FROM,HTML_MESSAGE,MIME_HTML_MOSTLY,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID,UNPARSEABLE_RELAY scantime=0.2,size=2895,user=spamd,uid=1001,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=54478,mid=<CACNb=OLE_p_6vFbTpmzNJfDxR-Gy-J20QMkn3d24U0xsmdhLug@mail.gmail.com>,autolearn=ham autolearn_force=no
Sun Aug 7 17:28:23 2016 [25469] info: prefork: child states: II