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
17 # Server does advertise when told. Client requests no bounces, and this one gets a reject.
18 exim -DSERVER=server -DOPT=y -bd -oX PORT_D
22 client HOSTIPV4 PORT_D
32 RCPT TO:<any@test.ex> NOTIFY=foo
34 RCPT TO:<rmt_reject@test.ex> NOTIFY=never
47 # Client requests delivery notification; the server supports DSN so takes responsibility
48 exim -z accept/success
50 client HOSTIPV4 PORT_D
60 RCPT TO:<rmt_accept@test.ex> NOTIFY=success
76 # deliver notification from MDA
80 # Client requests delivery notification; the MSA & MDA supports DSN
81 # but MDA fake-rejects msg.
82 # The MDA should not send a delivery notification for this case.
83 exim -z fakereject/success
85 client HOSTIPV4 PORT_D
93 MAIL FROM:<b2@dump.ex>
95 RCPT TO:<rmt_fakereject@test.ex> NOTIFY=success
105 # MSA (try to) send msg to MDA; should see a reject
108 # due to fake, should be a msg to deliver at MDA
109 # no DSN should be generated
112 # should be no notification to deliver from MDA
116 # Client requests notification of deferral. First time of trying, we get
117 # a defer but queue-time probably has not hit the 1st retry time yet, so no DSN
118 # will be sent and the message remains queued. Then, claiming time has elapsed,
119 # we will look again (expecting a delay-DSN to be produced). We won't see a
120 # retry since the actual retry time has not passed.
123 client HOSTIPV4 PORT_D
131 MAIL FROM:<c@dump.ex>
133 RCPT TO:<rmt_defer@test.ex> NOTIFY=delay
146 # Clients requests no DSNs, and this one gets deferred
149 client HOSTIPV4 PORT_D
157 MAIL FROM:<d@dump.ex>
159 RCPT TO:<rmt_defer@test.ex> NOTIFY=never
174 # Second time, for the queued deferrals.
175 # We should see the notify for c@dump.ex but not d@dump.ex
181 exim -Mrm $msg1 $msg2
187 # Client requests bounce+delay notification; bounce happens
188 exim -z rej/failure+delay
190 client HOSTIPV4 PORT_D
198 MAIL FROM:<e@dump.ex>
200 RCPT TO:<rmt_reject@test.ex> NOTIFY=fAiLuRe,DELAY
210 # MSA send msg to MDA
213 # deliver notification from MDA
214 exim -z 'deliver DSN'