| 1 | # PRDR (Per-Recipient Data Responses) server |
| 2 | need_ipv4 |
| 3 | no_msglog_check |
| 4 | # |
| 5 | # 1: userx should be accepted, y should be tmp-rejected, |
| 6 | # z rejected, all after data per PRDR spec |
| 7 | exim -DSERVER=server -bd -oX PORT_D |
| 8 | **** |
| 9 | client 127.0.0.1 PORT_D |
| 10 | ??? 220 |
| 11 | ehlo rhu.barb |
| 12 | ??? 250- |
| 13 | ??? 250- |
| 14 | ??? 250- |
| 15 | ??? 250- |
| 16 | ??? 250-PRDR |
| 17 | ??? 250 |
| 18 | mail from:<> PRDR |
| 19 | ??? 250 |
| 20 | rcpt to:<userx@test.ex> |
| 21 | ??? 250 |
| 22 | rcpt to:<usery@test.ex> |
| 23 | ??? 250 |
| 24 | rcpt to:<userz@test.ex> |
| 25 | ??? 250 |
| 26 | data |
| 27 | ??? 354 |
| 28 | Sender: sender@some.where |
| 29 | . |
| 30 | ??? 353 |
| 31 | ??? 250 |
| 32 | ??? 450 |
| 33 | ??? 550 |
| 34 | ??? 250 |
| 35 | quit |
| 36 | ??? 221 |
| 37 | **** |
| 38 | millisleep 500 |
| 39 | # |
| 40 | # |
| 41 | # 2: traditional data acl should be called, resulting in an overall reject |
| 42 | client 127.0.0.1 PORT_D |
| 43 | ??? 220 |
| 44 | ehlo rhu.barb |
| 45 | ??? 250- |
| 46 | ??? 250- |
| 47 | ??? 250- |
| 48 | ??? 250- |
| 49 | ??? 250-PRDR |
| 50 | ??? 250 |
| 51 | mail from:<> PRDR |
| 52 | ??? 250 |
| 53 | rcpt to:<userp@test.ex> |
| 54 | ??? 250 |
| 55 | rcpt to:<userq@test.ex> |
| 56 | ??? 250 |
| 57 | data |
| 58 | ??? 354 |
| 59 | Sender: sender@some.where |
| 60 | . |
| 61 | ??? 353 |
| 62 | ??? 250 |
| 63 | ??? 250 |
| 64 | ??? 550 |
| 65 | quit |
| 66 | ??? 221 |
| 67 | **** |
| 68 | millisleep 500 |
| 69 | # |
| 70 | # |
| 71 | # 3: PRDR should be avoided for a single-recipient message |
| 72 | # even though the client showed support. |
| 73 | client 127.0.0.1 PORT_D |
| 74 | ??? 220 |
| 75 | ehlo rhu.barb |
| 76 | ??? 250- |
| 77 | ??? 250- |
| 78 | ??? 250- |
| 79 | ??? 250- |
| 80 | ??? 250-PRDR |
| 81 | ??? 250 |
| 82 | mail from:<> PRDR |
| 83 | ??? 250 |
| 84 | rcpt to:<user1@test.ex> |
| 85 | ??? 250 |
| 86 | data |
| 87 | ??? 354 |
| 88 | Sender: sender@some.where |
| 89 | . |
| 90 | ??? 250 |
| 91 | quit |
| 92 | ??? 221 |
| 93 | **** |
| 94 | millisleep 500 |
| 95 | # |
| 96 | # 4: double temp-reject |
| 97 | client 127.0.0.1 PORT_D |
| 98 | ??? 220 |
| 99 | ehlo rhu.barb |
| 100 | ??? 250- |
| 101 | ??? 250- |
| 102 | ??? 250- |
| 103 | ??? 250- |
| 104 | ??? 250-PRDR |
| 105 | ??? 250 |
| 106 | mail from:<> PRDR |
| 107 | ??? 250 |
| 108 | rcpt to:<usery@test.ex> |
| 109 | ??? 250 |
| 110 | rcpt to:<usery@test.ex> |
| 111 | ??? 250 |
| 112 | data |
| 113 | ??? 354 |
| 114 | Sender: sender@some.where |
| 115 | . |
| 116 | ??? 353 |
| 117 | ??? 450 |
| 118 | ??? 450 |
| 119 | ??? 250 |
| 120 | quit |
| 121 | ??? 221 |
| 122 | **** |
| 123 | millisleep 500 |
| 124 | # |
| 125 | # 5: double reject |
| 126 | client 127.0.0.1 PORT_D |
| 127 | ??? 220 |
| 128 | ehlo rhu.barb |
| 129 | ??? 250- |
| 130 | ??? 250- |
| 131 | ??? 250- |
| 132 | ??? 250- |
| 133 | ??? 250-PRDR |
| 134 | ??? 250 |
| 135 | mail from:<> PRDR |
| 136 | ??? 250 |
| 137 | rcpt to:<userz@test.ex> |
| 138 | ??? 250 |
| 139 | rcpt to:<userz@test.ex> |
| 140 | ??? 250 |
| 141 | data |
| 142 | ??? 354 |
| 143 | Sender: sender@some.where |
| 144 | . |
| 145 | ??? 353 |
| 146 | ??? 550 |
| 147 | ??? 550 |
| 148 | ??? 550 |
| 149 | quit |
| 150 | ??? 221 |
| 151 | **** |
| 152 | millisleep 500 |
| 153 | # |
| 154 | # 6: no PRDR request |
| 155 | client 127.0.0.1 PORT_D |
| 156 | ??? 220 |
| 157 | ehlo rhu.barb |
| 158 | ??? 250- |
| 159 | ??? 250- |
| 160 | ??? 250- |
| 161 | ??? 250- |
| 162 | ??? 250-PRDR |
| 163 | ??? 250 |
| 164 | mail from:<> |
| 165 | ??? 250 |
| 166 | rcpt to:<userx@test.ex> |
| 167 | ??? 250 |
| 168 | data |
| 169 | ??? 354 |
| 170 | Sender: sender@some.where |
| 171 | . |
| 172 | ??? 250 |
| 173 | quit |
| 174 | ??? 221 |
| 175 | **** |
| 176 | millisleep 500 |
| 177 | # |
| 178 | killdaemon |
| 179 | # |