| 1 | # DSN ESMTP extension RCPT options |
| 2 | # |
| 3 | # Server does not advertise by default |
| 4 | exim -DSERVER=server -bd -oX PORT_D |
| 5 | **** |
| 6 | client 127.0.0.1 PORT_D |
| 7 | ??? 220 |
| 8 | EHLO testclient |
| 9 | ??? 250- |
| 10 | ??? 250-SIZE |
| 11 | ??? 250 HELP |
| 12 | **** |
| 13 | killdaemon |
| 14 | # |
| 15 | # |
| 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 |
| 18 | **** |
| 19 | exim -z rej/never |
| 20 | **** |
| 21 | client HOSTIPV4 PORT_D |
| 22 | ??? 220 |
| 23 | EHLO testclient |
| 24 | ??? 250- |
| 25 | ??? 250-SIZE |
| 26 | ??? 250-DSN |
| 27 | ??? 250 HELP |
| 28 | MAIL FROM:<a@dump.ex> |
| 29 | ??? 250 |
| 30 | RCPT TO:<any@test.ex> NOTIFY=foo |
| 31 | ??? 501 |
| 32 | RCPT TO:<rmt_reject@test.ex> NOTIFY=never |
| 33 | ??? 250 |
| 34 | DATA |
| 35 | ??? 354 |
| 36 | Subject: test |
| 37 | . |
| 38 | ??? 250 |
| 39 | QUIT |
| 40 | ??? 221 |
| 41 | **** |
| 42 | exim -q |
| 43 | **** |
| 44 | # |
| 45 | # Client requests delivery notification; the server supports DSN so takes responsibility |
| 46 | exim -z accept/success |
| 47 | **** |
| 48 | client HOSTIPV4 PORT_D |
| 49 | ??? 220 |
| 50 | EHLO testclient |
| 51 | ??? 250- |
| 52 | ??? 250-SIZE |
| 53 | ??? 250-DSN |
| 54 | ??? 250 HELP |
| 55 | MAIL FROM:<b@dump.ex> |
| 56 | ??? 250 |
| 57 | RCPT TO:<rmt_accept@test.ex> NOTIFY=success |
| 58 | ??? 250 |
| 59 | DATA |
| 60 | ??? 354 |
| 61 | Subject: test |
| 62 | . |
| 63 | ??? 250 |
| 64 | QUIT |
| 65 | ??? 221 |
| 66 | **** |
| 67 | # MSA send msg to MDA |
| 68 | exim -q |
| 69 | **** |
| 70 | # deliver msg at MDA |
| 71 | exim -q |
| 72 | **** |
| 73 | # deliver notification from MDA |
| 74 | exim -q |
| 75 | **** |
| 76 | # |
| 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 |
| 80 | # try again. |
| 81 | exim -z defer/delay |
| 82 | **** |
| 83 | client HOSTIPV4 PORT_D |
| 84 | ??? 220 |
| 85 | EHLO testclient |
| 86 | ??? 250- |
| 87 | ??? 250-SIZE |
| 88 | ??? 250-DSN |
| 89 | ??? 250 HELP |
| 90 | MAIL FROM:<c@dump.ex> |
| 91 | ??? 250 |
| 92 | RCPT TO:<rmt_defer@test.ex> NOTIFY=delay |
| 93 | ??? 250 |
| 94 | DATA |
| 95 | ??? 354 |
| 96 | Subject: test |
| 97 | . |
| 98 | ??? 250 |
| 99 | QUIT |
| 100 | ??? 221 |
| 101 | **** |
| 102 | exim -q |
| 103 | **** |
| 104 | # |
| 105 | # Clients requests no DSNs, and this one gets deferred |
| 106 | exim -z defer/never |
| 107 | **** |
| 108 | client HOSTIPV4 PORT_D |
| 109 | ??? 220 |
| 110 | EHLO testclient |
| 111 | ??? 250- |
| 112 | ??? 250-SIZE |
| 113 | ??? 250-DSN |
| 114 | ??? 250 HELP |
| 115 | MAIL FROM:<d@dump.ex> |
| 116 | ??? 250 |
| 117 | RCPT TO:<rmt_defer@test.ex> NOTIFY=never |
| 118 | ??? 250 |
| 119 | DATA |
| 120 | ??? 354 |
| 121 | Subject: test |
| 122 | . |
| 123 | ??? 250 |
| 124 | QUIT |
| 125 | ??? 221 |
| 126 | **** |
| 127 | exim -q |
| 128 | **** |
| 129 | sleep 3 |
| 130 | # |
| 131 | # |
| 132 | # |
| 133 | # Second time, for the queued deferrals. |
| 134 | # We should see the notify for c@dump.ex but not d@dump.ex |
| 135 | exim -z playout |
| 136 | **** |
| 137 | exim -q |
| 138 | **** |
| 139 | sleep 1 |
| 140 | exim -Mrm $msg1 $msg2 |
| 141 | **** |
| 142 | # |
| 143 | # |
| 144 | # |
| 145 | # |
| 146 | # Client requests bounce+delay notification; bounce happens |
| 147 | exim -z rej/failure+delay |
| 148 | **** |
| 149 | client HOSTIPV4 PORT_D |
| 150 | ??? 220 |
| 151 | EHLO testclient |
| 152 | ??? 250- |
| 153 | ??? 250-SIZE |
| 154 | ??? 250-DSN |
| 155 | ??? 250 HELP |
| 156 | MAIL FROM:<e@dump.ex> |
| 157 | ??? 250 |
| 158 | RCPT TO:<rmt_reject@test.ex> NOTIFY=fAiLuRe,DELAY |
| 159 | ??? 250 |
| 160 | DATA |
| 161 | ??? 354 |
| 162 | Subject: test |
| 163 | . |
| 164 | ??? 250 |
| 165 | QUIT |
| 166 | ??? 221 |
| 167 | **** |
| 168 | # MSA send msg to MDA |
| 169 | exim -q |
| 170 | **** |
| 171 | # deliver notification from MDA |
| 172 | exim -z 'deliver DSN' |
| 173 | **** |
| 174 | exim -q |
| 175 | **** |
| 176 | sleep 1 |
| 177 | killdaemon |
| 178 | # |
| 179 | # |
| 180 | no_msglog_check |