Erland Nylend
2007-Apr-24 10:49 UTC
[Dovecot] Deliver sending bounces from 'MAILER-DAEMON@'
Hello, I'm having a problem with postfix and/or dovecots "deliver". I'm getting these lines in the mail log: | Apr 24 11:42:08 smtp2 postfix/qmgr[6176]: 05BAE3B67E: from=<>, size=3055, nrcpt=1 (queue active) | Apr 24 11:42:08 smtp2 postfix/qmgr[6176]: 05BAE3B67E: to=<MAILER-DAEMON@>, relay=none, delay=0.01, delays=0.01/0.01/0/0, dsn=5.1.3, status=bounced (bad address syntax) After some debugging, it seems that those lines in the log appear if I send mail to an account which is over quota. (I'm using the Maildir++ quota) This is from my dovecot.conf: | protocol lda { | postmaster_address = MAILER-DAEMON at my.domain.tld | mail_plugins = quota | auth_socket_path = /var/run/dovecot/auth-master | hostname = my.mail.server | sendmail_path = /usr/sbin/sendmail | } It seems to me that dovecot is sending bounce messages from 'MAILER-DAEMON@' .. Does anyone know why this is happening, or how I can specify the address to be used? I'm using dovecot 1.0.0. -- Erland Nylend
Timo Sirainen
2007-May-11 13:18 UTC
[Dovecot] Deliver sending bounces from 'MAILER-DAEMON@'
On Tue, 2007-04-24 at 12:49 +0200, Erland Nylend wrote:> | Apr 24 11:42:08 smtp2 postfix/qmgr[6176]: 05BAE3B67E: from=<>, size=3055, nrcpt=1 (queue active) > | Apr 24 11:42:08 smtp2 postfix/qmgr[6176]: 05BAE3B67E: to=<MAILER-DAEMON@>, relay=none, delay=0.01, delays=0.01/0.01/0/0, dsn=5.1.3, status=bounced (bad address syntax)..> It seems to me that dovecot is sending bounce messages from > 'MAILER-DAEMON@' ..It says to=<MAILER-DAEMON@> so I'd guess the Return-Path: header in the message was that? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070511/127769a5/attachment.bin>
Erland Nylend
2007-May-11 16:09 UTC
[Dovecot] Deliver sending bounces from 'MAILER-DAEMON@'
Hello Timo, On 2007-05-11, 16:18, Timo Sirainen wrote:> > It seems to me that dovecot is sending bounce messages from > > 'MAILER-DAEMON@' .. > > It says to=<MAILER-DAEMON@> so I'd guess the Return-Path: header in the > message was that?Thanks for the reply. I've managed to reproduce it. If I send a bounce to an account over quota ("mail from" set to <>), then dovecot sends a bounce on the bounce, to "MAILER-DAEMON@": | # telnet localhost 25 | Trying 127.0.0.1... | Connected to localhost.localdomain (127.0.0.1). | Escape character is '^]'. | 220 my.mail.server ESMTP Postfix | helo foo | 250 my.mail.server | mail from: <> | 250 2.1.0 Ok | rcpt to: mailbox_over_quota at domain.tld | 250 2.1.5 Ok | data | 354 End data with <CR><LF>.<CR><LF> | testing | . | 250 2.0.0 Ok: queued as A366C27675 (It seems that postfix sets the return-path header based on the "mail from", so the mail contains "Return-Path: <>" ) This shows the mail generated by deliver: | May 11 17:55:27 my postfix/pickup[27580]: D6DB527681: uid=3000 from=<> | May 11 17:55:27 my postfix/cleanup[14455]: D6DB527681: message-id=<dovecot-1178898925-234813-0 at my.mail.server> | May 11 17:55:27 my postfix/qmgr[3360]: D6DB527681: from=<>, size=1538, nrcpt=1 (queue active) | May 11 17:55:27 my postfix/qmgr[3360]: D6DB527681: to=<MAILER-DAEMON@>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.1.3, status=bounced (bad address syntax) | May 11 17:55:27 my postfix/qmgr[3360]: D6DB527681: removed This must be an error, then .. Dovecots deliver should not send bounces in response to bounce mail. Could you have a look at it? -- Erland Nylend
Erland Nylend
2007-May-14 10:22 UTC
[Dovecot] Deliver sending bounces from 'MAILER-DAEMON@'
Hello Timo, On 2007-05-11, 16:18, Timo Sirainen wrote:> On Tue, 2007-04-24 at 12:49 +0200, Erland Nylend wrote: > > | Apr 24 11:42:08 smtp2 postfix/qmgr[6176]: 05BAE3B67E: from=<>, size=3055, nrcpt=1 (queue active) > > | Apr 24 11:42:08 smtp2 postfix/qmgr[6176]: 05BAE3B67E: to=<MAILER-DAEMON@>, relay=none, delay=0.01, delays=0.01/0.01/0/0, dsn=5.1.3, status=bounced (bad address syntax) > .. > > It seems to me that dovecot is sending bounce messages from > > 'MAILER-DAEMON@' .. > > It says to=<MAILER-DAEMON@> so I'd guess the Return-Path: header in the > message was that?Could you have a look at this case again? The messages to deliver have the smtp "mail from" and Return-Path set to <>. (they're bounces) I can reproduce the problem by telnet'ing to the postfix server, and sending bounce mails to an account over quota. It seems that deliver is sending bounces on the bounces, which I think is an error. -- Erland Nylend