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 delivery notification; the MSA & MDA supports DSN
78 # but MDA fake-rejects msg.
79 # The MDA should not send a delivery notification for this case.
80 exim -z fakereject/success
82 client HOSTIPV4 PORT_D
89 MAIL FROM:<b2@dump.ex>
91 RCPT TO:<rmt_fakereject@test.ex> NOTIFY=success
101 # MSA (try to) send msg to MDA; should see a reject
104 # due to fake, should be a msg to deliver at MDA
105 # no DSN should be generated
108 # should be no notification to deliver from MDA
112 # Client requests notification of deferral. First time of trying, we get
113 # a defer but queue-time probably has not hit the 1st retry time yet, so no DSN
114 # will be sent and the message remains queued. Then, claiming time has elapsed,
115 # we will look again (expecting a delay-DSN to be produced). We won't see a
116 # retry since the actual retry time has not passed.
119 client HOSTIPV4 PORT_D
126 MAIL FROM:<c@dump.ex>
128 RCPT TO:<rmt_defer@test.ex> NOTIFY=delay
141 # Clients requests no DSNs, and this one gets deferred
144 client HOSTIPV4 PORT_D
151 MAIL FROM:<d@dump.ex>
153 RCPT TO:<rmt_defer@test.ex> NOTIFY=never
168 # Second time, for the queued deferrals.
169 # We should see the notify for c@dump.ex but not d@dump.ex
175 exim -Mrm $msg1 $msg2
181 # Client requests bounce+delay notification; bounce happens
182 exim -z rej/failure+delay
184 client HOSTIPV4 PORT_D
191 MAIL FROM:<e@dump.ex>
193 RCPT TO:<rmt_reject@test.ex> NOTIFY=fAiLuRe,DELAY
203 # MSA send msg to MDA
206 # deliver notification from MDA
207 exim -z 'deliver DSN'