1 # DSN ESMTP extension RCPT options
3 # Server does not advertise by default
4 exim -DSERVER=server -bd -oX PORT_D
6 client 127.0.0.1 PORT_D
16 # Server does advertise when told. Client requests no bounces, and this one gets a reject.
17 exim -DSERVER=server -DOPT=y -bd -oX PORT_D
21 client HOSTIPV4 PORT_D
30 RCPT TO:<any@test.ex> NOTIFY=foo
32 RCPT TO:<rmt_reject@test.ex> NOTIFY=never
45 # Client requests delivery notification; the server supports DSN so takes responsibility
46 exim -z accept/success
48 client HOSTIPV4 PORT_D
57 RCPT TO:<rmt_accept@test.ex> NOTIFY=success
73 # deliver notification from MDA
77 # Client requests notification of deferral. First time of trying, we get
78 # a defer but queue-time probably has not hit the 1st retry time yet, so no DSN
79 # will be sent and the message remains queued. Later, after a sleep, we will
83 client HOSTIPV4 PORT_D
92 RCPT TO:<rmt_defer@test.ex> NOTIFY=delay
105 # Clients requests no DSNs, and this one gets deferred
108 client HOSTIPV4 PORT_D
115 MAIL FROM:<d@dump.ex>
117 RCPT TO:<rmt_defer@test.ex> NOTIFY=never
133 # Second time, for the queued deferrals.
134 # We should see the notify for c@dump.ex but not d@dump.ex
140 exim -Mrm $msg1 $msg2
146 # Client requests bounce+delay notification; bounce happens
147 exim -z rej/failure+delay
149 client HOSTIPV4 PORT_D
156 MAIL FROM:<e@dump.ex>
158 RCPT TO:<rmt_reject@test.ex> NOTIFY=fAiLuRe,DELAY
168 # MSA send msg to MDA
171 # deliver notification from MDA
172 exim -z 'deliver DSN'