[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@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
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?
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@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@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
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
On Mon, 2007-05-14 at 12:22 +0200, Erland Nylend wrote:
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 guess it's Postfix that adds the MAILER-DAEMON there. I get this:
May 15 20:22:39 hurina postfix/qmgr[31650]: 00615287D8C86: to=<@>, relay=none, delay=0.24, delays=0.12/0.13/0/0, dsn=5.1.3, status=bounced (bad address syntax)
Anyway, what it was supposed to do was just log it:
deliver(tss): May 15 20:24:41 Info: msgid=: Return-Path missing, rejection reason: Quota exceeded
Fixed: http://dovecot.org/list/dovecot-cvs/2007-May/008817.html
On 2007-05-15, 20:27, Timo Sirainen wrote:
I guess it's Postfix that adds the MAILER-DAEMON there. I get this:
May 15 20:22:39 hurina postfix/qmgr[31650]: 00615287D8C86: to=<@>, relay=none, delay=0.24, delays=0.12/0.13/0/0, dsn=5.1.3, status=bounced (bad address syntax)
Anyway, what it was supposed to do was just log it:
Agreed.
deliver(tss): May 15 20:24:41 Info: msgid=: Return-Path missing, rejection reason: Quota exceeded
Fixed: http://dovecot.org/list/dovecot-cvs/2007-May/008817.html
Great. Thank you :)
-- Erland Nylend
participants (2)
-
Erland Nylend
-
Timo Sirainen