Florian Pritz:
> I've currently set delay_warning_time = 4h and maximal_queue_lifetime =
> 5d, which are nice values and all, but if I get a delay DSN I'd like to
> know sooner than after 5 days if the mail went through.

By default, Postfix requests a DSN for delayed and failed mail.

To request a DSN when mail is DELIVERED:

UNIX command line:

    sendmail -N 'delay,failure,success'

SMTP protocol:

    RCPT TO:<address> NOTIFY=DELAY,FAILURE,SUCCESS

After doing the above, you can trigger "success" notification when
mail leaves your network:

/etc/postfix/main.cf:
    smtp_discard_ehlo_keywords = dsn

If you read this far, then you will inderstand that there will be
no separate option to request a DSN when mail leaves your network,
because the above features already provide this function.

References:
http://www.postfix.org/DSN_README.html
RFC 3461 (SMTP DSN Extension)
RFC 3462 (Delivery Status Notifications)
RFC 6533 (Internationalized Delivery Status Notifications)

        Wietse

Reply via email to