Hi everyone,
Since we have upgraded to plesk 9.2.1 (postfix version) we have a big issue with mail forwarding. If the followings are all true :
- The mail contains an attachement
- The recipient has activated a forwarding function
In this case, and only this case, the mail is delivered to the final recipient but is still kept in the postfix queue ans is being delivered again and again and again...
Note the issue happen even if :
- The attachement is a document or an embedded pricture in a HTML mail
- The forwarding function is either the "Redirect" function or the "Mail Group" function
- The mailbox is activated or not
- The mail is sent to the recipient or an alias of it
Several information can be retrieved from the command line :
The mailq command :
The syslog :
According the syslog, postfix-local seems to be unable to forward the mail, but it forwards it anyway ! The problem is the message is kept in queue.
I tried with the patch supplied here : http://kb.odin.com/en/6091 but nothing change...
Does anymone have the same ? Plesk staff ?
Thanks a lot for your help
Nicolas
Since we have upgraded to plesk 9.2.1 (postfix version) we have a big issue with mail forwarding. If the followings are all true :
- The mail contains an attachement
- The recipient has activated a forwarding function
In this case, and only this case, the mail is delivered to the final recipient but is still kept in the postfix queue ans is being delivered again and again and again...
Note the issue happen even if :
- The attachement is a document or an embedded pricture in a HTML mail
- The forwarding function is either the "Redirect" function or the "Mail Group" function
- The mailbox is activated or not
- The mail is sent to the recipient or an alias of it
Several information can be retrieved from the command line :
The mailq command :
root:/# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
6931670087A 84631 Thu Jun 4 14:17:14 sender@somedomain.com
(Message can not be delivered at this time)
localrecipient@localdomain.com
-- 85 Kbytes in 1 Request.
The syslog :
06-04 14:30:25 (+02:00) postfix/qmgr[18743]: 6931670087A: from=<sender@somedomain.com>, size=84631, nrcpt=1 (queue active)
06-04 14:30:25 (+02:00) postfix-local[27751]: postfix-local: from=sender@somedomain.com, to=localrecipient@localdomain.com, dirname=/var/qmail/mailnames
06-04 14:30:25 (+02:00) postfix-local[27751]: hook_dir = '/opt/psa/handlers/before-local'
06-04 14:30:25 (+02:00) postfix-local[27751]: recipient[3] = 'localrecipient@localdomain.com'
06-04 14:30:25 (+02:00) postfix-local[27751]: handlers dir = '/opt/psa/handlers/before-local/recipient/localrecipient@localdomain.com'
06-04 14:30:25 (+02:00) postfix-local[27751]: found handlers entry = '/opt/psa/handlers/before-local/recipient/localrecipient@localdomain.com/10-spam-sLS90D'
06-04 14:30:25 (+02:00) postfix-local[27751]: call_handlers: call executable = '/opt/psa/handlers/info/10-spam-sLS90D/executable'
06-04 14:30:25 (+02:00) spamd[15380]: spamd: got connection over /tmp/spamd_full.sock
06-04 14:30:25 (+02:00) spamd[15380]: spamd: using default config for localrecipient@localdomain.com: /var/qmail/mailnames/localdomain.com/localrecipient/.spamassassin/user_prefs
06-04 14:30:25 (+02:00) spamd[15380]: spamd: processing message <4A27BB4A.5030707@somedomain.com> for localrecipient@localdomain.com:110
06-04 14:30:25 (+02:00) spamd[15380]: spamd: clean message (0.1/7.0) for localrecipient@localdomain.com:110 in 0.2 seconds, 83166 bytes.
06-04 14:30:25 (+02:00) spamd[15380]: spamd: result: . 0 - AWL,HTML_MESSAGE,HTML_TAG_EXIST_TBODY scantime=0.2,size=83166,user=localrecipient@localdomain.com,uid=110,required_score=7.0,rhost=localhost,raddr=127.0.0.1,rport=/tmp/spamd_full.sock,mid=<4A27BB4A.5030707@somedomain.com>,autolearn=no
06-04 14:30:25 (+02:00) postfix-local[27751]: handlers_stderr: PASS
06-04 14:30:25 (+02:00) spamd[3516]: prefork: child states: II
06-04 14:30:25 (+02:00) postfix/pickup[23918]: 3EBBD7009F0: uid=110 from=<sender@somedomain.com>
06-04 14:30:25 (+02:00) postfix/cleanup[24924]: 3EBBD7009F0: message-id=<4A27BB4A.5030707@somedomain.com>
06-04 14:30:25 (+02:00) postfix-local[27751]: files: write buf 0x7fff613e3c90[4096] to fd (7) error - (32) Broken pipe
06-04 14:30:25 (+02:00) postfix-local[27751]: files: cannot write chuck from 5 to 7 - (32) Broken pipe
06-04 14:30:25 (+02:00) postfix-local[27751]: LOG Unable to forward message to: addresstoforward@anotherdomain.com
06-04 14:30:25 (+02:00) postfix-local[27751]: Unable to send mail for: addresstoforward@anotherdomain.com
06-04 14:30:25 (+02:00) postfix/pipe[24825]: 6931670087A: to=<localrecipient@localdomain.com>, relay=plesk_virtual, delay=791, delays=791/0/0/0.21, dsn=4.2.1, status=deferred (Message can not be delivered at this time )
06-04 14:30:25 (+02:00) postfix/qmgr[18743]: 3EBBD7009F0: from=<sender@somedomain.com>, size=6650, nrcpt=1 (queue active)
06-04 14:30:25 (+02:00) postfix/smtpd[24908]: connect from localhost.localdomain[127.0.0.1]
06-04 14:30:25 (+02:00) postfix/smtpd[24908]: 4CD477009E7: client=localhost.localdomain[127.0.0.1]
06-04 14:30:25 (+02:00) before-remote[27761]: check handlers for addr: sender@somedomain.com
06-04 14:30:25 (+02:00) before-remote[27761]: check handlers for addr: addresstoforward@anotherdomain.com
06-04 14:30:25 (+02:00) postfix/cleanup[24918]: 4CD477009E7: message-id=<4A27BB4A.5030707@somedomain.com>
06-04 14:30:25 (+02:00) postfix/qmgr[18743]: 4CD477009E7: from=<sender@somedomain.com>, size=6854, nrcpt=1 (queue active)
06-04 14:30:25 (+02:00) postfix/smtp[27760]: 3EBBD7009F0: to=<addresstoforward@anotherdomain.com>, relay=127.0.0.1[127.0.0.1]:10027, delay=0.12, delays=0.02/0/0.04/0.05, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 4CD477009E7)
06-04 14:30:25 (+02:00) postfix/smtpd[24908]: disconnect from localhost.localdomain[127.0.0.1]
06-04 14:30:25 (+02:00) postfix/qmgr[18743]: 3EBBD7009F0: removed
According the syslog, postfix-local seems to be unable to forward the mail, but it forwards it anyway ! The problem is the message is kept in queue.
I tried with the patch supplied here : http://kb.odin.com/en/6091 but nothing change...
Does anymone have the same ? Plesk staff ?
Thanks a lot for your help
Nicolas