Loading ...
Sorry, an error occurred while loading the content.

sender delivery status notification not working

Expand Messages
  • 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
    Message 1 of 6 , Dec 30, 2011
    • 0 Attachment
      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@...
      Dec 28 08:39:50 outbound1 postfix/smtpd[30112]: 7287E8F10BE: filter: END-OF-MESSAGE from unknown[XXXXXXXX]: <XXXXXXXX@...>: Sender address triggers FILTER XX-XXXX:; from=<XXXXXXXX@...> to=<XXXXXXXX@...> proto=ESMTP helo=<[172.16.137.158]>
      Dec 28 08:39:50 outbound1 postfix/cleanup[11391]: 7287E8F10BE: message-id=<4EFB1CEF.3090400@...>
      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=<XXXXXXXX@...>, 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
      ... 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
      Message 2 of 6 , Dec 30, 2011
      • 0 Attachment
        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
        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
        Message 3 of 6 , Jan 2, 2012
        • 0 Attachment
          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:<AAAA@...> 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:<AAAAAAAAAAAA@...>
          ---------------------------------------------------------------------------

          * On another server where it works
          ---------------------------------------------------------------------------
          0[a2b140]: SMTP Send: MAIL FROM:<AAAAAAAA@...> RET=FULL ENVID=<4F02A9CD.4060309@...> 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:<AAAAAAAAA@...> NOTIFY=SUCCESS,FAILURE,DELAY ORCPT=rfc822;mailhostingserver@...
          ---------------------------------------------------------------------------

          TIA,

          On Fri, Dec 30, 2011 at 8:50 PM, Wietse Venema <wietse@...> wrote:
          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
          * Pls ignore this figured it out. It was disabled. Thanks telnet localhost 25
          Message 4 of 6 , Jan 2, 2012
          • 0 Attachment
            * Pls ignore this figured it out. It was disabled.

            Thanks


            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:<AAAA@...> 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:<AAAAAAAAAAAA@...>
            ---------------------------------------------------------------------------

            * On another server where it works
            ---------------------------------------------------------------------------
            0[a2b140]: SMTP Send: MAIL FROM:<AAAAAAAA@...> RET=FULL ENVID=<4F02A9CD.4060309@...> 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:<AAAAAAAAA@...> NOTIFY=SUCCESS,FAILURE,DELAY ORCPT=rfc822;mailhostingserver@...
            ---------------------------------------------------------------------------

            TIA,


            On Fri, Dec 30, 2011 at 8:50 PM, Wietse Venema <wietse@...> wrote:
            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





             

             


          • Wietse Venema
            ... There is no DSN announcement, therefore, the mail client will not request delivery status notification. DSN support is available with Postfix 2.3 and
            Message 5 of 6 , Jan 3, 2012
            • 0 Attachment
              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
              * 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 =
              Message 6 of 6 , Jan 3, 2012
              • 0 Attachment
                * 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.


                $ postconf | grep smtpd_discard_ehlo

                $ grep smtpd_discard_ehlo /etc/postfix/master.cf

                       Wietse


              Your message has been successfully submitted and would be delivered to recipients shortly.