Ray:
> > DSNs are sent to the envelope sender, VERP changes the envelope
> > sender, therefore VERP has effect for all DSNs.
> 
> > Wietse
> 
> OK, I will checkout VERP, sounds exactly like what I would need
> indeed. My remaining question would be on how to activate the
> Success DSN reports?

Postfix implements DSN as specified in RFC 3464. The Postfix
command-line interface and interaction with VERP are described at
http://www.postfix.org/DSN_README.html

You can also use the smtpd_command_filter to force SUCCESS
notification. The following is based on the examples in
http://www.postfix.org/postconf.5.html#smtpd_command_filter

/etc/postfix/main.cf:
    smtpd_command_filter = pcre:/etc/postfix/command_filter

/etc/postfix/command_filter:
    # Forced success notification
    /^(RCPT\s+TO:\s*<.*>.*)\s+(NOTIFY=NEVER.*)/   $1 $2
    /^(RCPT\s+TO:\s*<.*>.*)\s+NOTIFY=(\S+.*)/     $1 NOTIFY=SUCCESS,$2
    /^(RCPT\s+TO:.*)/                             $1 NOTIFY=SUCCESS,FAILURE

        Wietse

Reply via email to