Discussion:
sender delivery status notification not working
(too old to reply)
pritam raote
2011-12-30 14:47:10 UTC
Permalink
Hello,

* DSN(sender delivery status notification) does not work on my box running
postfix.
* the version of postfix on the non working box is postfix-2.8.7-1

In Mozilla Thunderebird
write message --> options --> Delivery Status Notification

* Read this didnt help much http://www.postfix.org/DSN_README.html
* The qmgr should pass the message to bounce daemon to send the DSN to the
sender but this does not happen.

Dec 28 08:39:49 outbound1 postfix/smtpd[30112]: 7287E8F10BE:
client=unknown[XXXXXXXX], sasl_method=PLAIN,
sasl_username=***@XXXXXXXX.com
Dec 28 08:39:50 outbound1 postfix/smtpd[30112]: 7287E8F10BE: filter:
END-OF-MESSAGE from unknown[XXXXXXXX]: <***@XXXXXXXX.com>: Sender
address triggers FILTER XX-XXXX:; from=<***@XXXXXXXX.com> to=<
***@gmail.com> proto=ESMTP helo=<[172.16.137.158]>
Dec 28 08:39:50 outbound1 postfix/cleanup[11391]: 7287E8F10BE:
message-id=<***@XXXXXXXX.com>
Dec 28 08:39:50 outbound1 ct-milter[19914]: queueid=7287E8F10BE
Dec 28 08:39:50 outbound1 ct-milter[19914]: [ASVOD] IP: XXXXXXXX,
Sender(Auth): <XXXXXXXX.com>(XXXXXXXX.com), Spam: Unknown, VOD: Unknown,
RefID: str=0001.0A020208.4EFB1C26.0011,ss=1,re=0.000,fgs=0, Action: tag,
QueueId: 7287E8F10BE
Dec 28 08:39:50 outbound1 postfix/qmgr[25269]: 7287E8F10BE:
from=<XXXXXXXX.com>, size=669, nrcpt=1 (queue active)
Dec 28 08:39:50 outbound1 postfix-smtp4/smtp[16777]: 7287E8F10BE: to=<
***@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.157.26]:25,
delay=1.5, delays=0.96/0/0.09/0.45, dsn=2.0.0, status=sent (250 2.0.0 OK
1325079590 v46si4631651yhl.53)
Dec 28 08:39:50 outbound1 postfix/qmgr[25269]: 7287E8F10BE: removed

* postconf output
---snip---
smtp_discard_ehlo_keyword_address_maps =
smtp_discard_ehlo_keywords =
---snip---

TIA,
Wietse Venema
2011-12-30 15:20:27 UTC
Permalink
Post by pritam raote
Hello,
* DSN(sender delivery status notification) does not work on my box running
postfix.
* the version of postfix on the non working box is postfix-2.8.7-1
DSN works only if:

1 - The POSTFIX SMTP server sends the DSN announcement to the REMOTE
SMTP client.

2 - The REMOTE SMTP client (Thunderbird) requests DSN support.

To find out if (1) and (2) happen, you need to report the SMTP
commands and replies between the POSTFIX SMTP server and the REMOTE
SMTP client (Thunderbird). You can anonymize the email address.

http://www.postfix.org/DEBUG_README.html#mail

Wietse
pritam raote
2012-01-03 07:40:59 UTC
Permalink
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 AAAAAAA-AAD.AAAAAAAAAAAA.com ESMTP Postfix
ehlo localhost
250-AAAAAAA-AAD.AAAAAAAAAAAA.com
250-PIPELINING
250-SIZE 31457280
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250 8BITMIME
quit
221 2.0.0 Bye

Server does not show DSN capabilities i.e 250-DSN how to enable that ?

* postconf output
------snip---------
smtp_discard_ehlo_keyword_address_maps =
smtp_discard_ehlo_keywords =
------snip-------------

* The smtp server-client response.
* On the server on which DSN does not work
---------------------------------------------------------------------------
0[b2b140]: SMTP Send: MAIL FROM:<***@AAAAAAAA.com> SIZE=390

0[b2b140]: SMTP entering state: 0
0[b2b140]: SMTP Response: 250 2.1.0 Ok
0[b2b140]: SMTP entering state: 5
0[b2b140]: SMTP Send: RCPT TO:<***@gmail.com>
---------------------------------------------------------------------------

* On another server where it works
---------------------------------------------------------------------------
0[a2b140]: SMTP Send: MAIL FROM:<***@AAAAAAA.com> RET=FULL ENVID=<
***@directi.com> SIZE=391

0[a2b140]: SMTP entering state: 0
0[a2b140]: SMTP Response: 250 2.1.0 Ok
0[a2b140]: SMTP entering state: 5
0[a2b140]: SMTP Send: RCPT TO:<***@gmail.com>
NOTIFY=SUCCESS,FAILURE,DELAY ORCPT=rfc822;***@gmail.com
---------------------------------------------------------------------------

TIA,
Post by pritam raote
Post by pritam raote
Hello,
* DSN(sender delivery status notification) does not work on my box
running
Post by pritam raote
postfix.
* the version of postfix on the non working box is postfix-2.8.7-1
1 - The POSTFIX SMTP server sends the DSN announcement to the REMOTE
SMTP client.
2 - The REMOTE SMTP client (Thunderbird) requests DSN support.
To find out if (1) and (2) happen, you need to report the SMTP
commands and replies between the POSTFIX SMTP server and the REMOTE
SMTP client (Thunderbird). You can anonymize the email address.
http://www.postfix.org/DEBUG_README.html#mail
Wietse
pritam raote
2012-01-03 07:54:01 UTC
Permalink
* Pls ignore this figured it out. It was disabled.

Thanks


telnet localhost 25
Post by pritam raote
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 AAAAAAA-AAD.AAAAAAAAAAAA.com ESMTP Postfix
ehlo localhost
250-AAAAAAA-AAD.AAAAAAAAAAAA.com
250-PIPELINING
250-SIZE 31457280
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250 8BITMIME
quit
221 2.0.0 Bye
Server does not show DSN capabilities i.e 250-DSN how to enable that ?
* postconf output
------snip---------
smtp_discard_ehlo_keyword_address_maps =
smtp_discard_ehlo_keywords =
------snip-------------
* The smtp server-client response.
* On the server on which DSN does not work
---------------------------------------------------------------------------
0[b2b140]: SMTP entering state: 0
0[b2b140]: SMTP Response: 250 2.1.0 Ok
0[b2b140]: SMTP entering state: 5
---------------------------------------------------------------------------
* On another server where it works
---------------------------------------------------------------------------
0[a2b140]: SMTP entering state: 0
0[a2b140]: SMTP Response: 250 2.1.0 Ok
0[a2b140]: SMTP entering state: 5
---------------------------------------------------------------------------
TIA,
Post by pritam raote
Post by pritam raote
Hello,
* DSN(sender delivery status notification) does not work on my box
running
Post by pritam raote
postfix.
* the version of postfix on the non working box is postfix-2.8.7-1
1 - The POSTFIX SMTP server sends the DSN announcement to the REMOTE
SMTP client.
2 - The REMOTE SMTP client (Thunderbird) requests DSN support.
To find out if (1) and (2) happen, you need to report the SMTP
commands and replies between the POSTFIX SMTP server and the REMOTE
SMTP client (Thunderbird). You can anonymize the email address.
http://www.postfix.org/DEBUG_README.html#mail
Wietse
Wietse Venema
2012-01-03 12:11:44 UTC
Permalink
Post by pritam raote
ehlo localhost
250-AAAAAAA-AAD.AAAAAAAAAAAA.com
250-PIPELINING
250-SIZE 31457280
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250 8BITMIME
There is no DSN announcement, therefore, the mail client will not
request delivery status notification.

DSN support is available with Postfix 2.3 and later. To view
Postfix settings use:

$ postconf | grep smtpd_discard_ehlo

$ grep smtpd_discard_ehlo /etc/postfix/master.cf

Wietse
pritam raote
2012-01-04 06:11:32 UTC
Permalink
* Yep the mistake i did was that i was grepping for smtp_discard instead of
smtpd_discard

postconf | grep smtp_disc
smtp_discard_ehlo_keyword_address_maps =
smtp_discard_ehlo_keywords =

postconf | grep smtpd_disc
postscreen_discard_ehlo_keyword_address_maps =
$smtpd_discard_ehlo_keyword_address_maps
postscreen_discard_ehlo_keywords = $smtpd_discard_ehlo_keywords
smtpd_discard_ehlo_keyword_address_maps =
smtpd_discard_ehlo_keywords = silent-discard, dsn

* Sorry for all the trouble and thanks for the replies. You guys rock.
Post by Wietse Venema
$ postconf | grep smtpd_discard_ehlo
$ grep smtpd_discard_ehlo /etc/postfix/master.cf
Wietse
Continue reading on narkive:
Loading...