| 1 | # ACL basic tests |
| 2 | need_ipv4 |
| 3 | # |
| 4 | exim -bh 1.2.3.4 |
| 5 | mail from:<x@y> |
| 6 | rcpt to:<postmaster@test.ex> |
| 7 | rcpt to:<z@z> |
| 8 | rcpt to:<x@test.ex> |
| 9 | rcpt to:<userx@test.ex> |
| 10 | rcpt to:<r@relay.test.ex> |
| 11 | rcpt to:<x@deny.test.ex> |
| 12 | rcpt to:<x@refuse.test.ex> |
| 13 | rcpt to:<x@nopass> |
| 14 | rcpt to:<x@wontpass> |
| 15 | quit |
| 16 | **** |
| 17 | exim -bh 5.6.7.8 |
| 18 | mail from:<x@y> |
| 19 | rcpt to:<x@y> |
| 20 | rcpt to:<x@test.ex> |
| 21 | rcpt to:<userx@test.ex> |
| 22 | rcpt to:<spqr@test.ex> |
| 23 | quit |
| 24 | **** |
| 25 | exim -bh 9.9.9.9 |
| 26 | mail from:<x@y> |
| 27 | rcpt to:<x@y> |
| 28 | rcpt to:<a@b> |
| 29 | quit |
| 30 | **** |
| 31 | exim -bh 9.9.9.8 |
| 32 | mail from:<x@y> |
| 33 | rcpt to:<x@y> |
| 34 | rcpt to:<a@b> |
| 35 | quit |
| 36 | **** |
| 37 | exim -bh 9.9.9.255 |
| 38 | mail from:<x@y> |
| 39 | rcpt to:<x@y> |
| 40 | rcpt to:<a@b> |
| 41 | quit |
| 42 | **** |
| 43 | exim -bh 5.6.8.1 |
| 44 | mail from:<x@y> |
| 45 | rcpt to:<x@y> |
| 46 | rcpt to:<y@x> |
| 47 | rset |
| 48 | mail from:<user1@domain1> |
| 49 | rcpt to:<x@y> |
| 50 | rset |
| 51 | mail from:<user2@domain1> |
| 52 | rcpt to:<x@y> |
| 53 | rset |
| 54 | mail from:<user1@domain2> |
| 55 | rcpt to:<x@y> |
| 56 | rset |
| 57 | mail from:<ok@ok.ok> |
| 58 | rcpt to:<x@y> |
| 59 | rcpt to:<y@x> |
| 60 | rset |
| 61 | quit |
| 62 | **** |
| 63 | exim -bh 5.6.11.1 |
| 64 | mail from:<x@y> |
| 65 | rcpt to:<x@y> |
| 66 | rcpt to:<x2@y> |
| 67 | rcpt to:<y2@y> |
| 68 | quit |
| 69 | **** |
| 70 | exim -bh 5.6.12.1 |
| 71 | mail from:<x@y> |
| 72 | rcpt to:<x@ok> |
| 73 | rcpt to:<x@y> |
| 74 | quit |
| 75 | **** |
| 76 | exim -bh 5.6.12.2 |
| 77 | mail from:<x@y> |
| 78 | rcpt to:<x@ok> |
| 79 | rcpt to:<x@y> |
| 80 | quit |
| 81 | **** |
| 82 | exim -bh 8.8.8.8 |
| 83 | mail from:<x@y> |
| 84 | rcpt to:<x@y> |
| 85 | quit |
| 86 | **** |
| 87 | exim -bh 5.6.13.1 |
| 88 | mail from:<x@y> |
| 89 | rcpt to:<x@y> |
| 90 | rcpt to:<x1@y> |
| 91 | rcpt to:<x2@y> |
| 92 | quit |
| 93 | **** |
| 94 | exim -bh V4NET.11.12.13 |
| 95 | mail from:<x@y> |
| 96 | rcpt to:<x@y> |
| 97 | rcpt to:<x1@y> |
| 98 | quit |
| 99 | **** |
| 100 | exim -bh V4NET.11.12.12 |
| 101 | mail from:<x@y> |
| 102 | rcpt to:<x@y> |
| 103 | rcpt to:<x1@y> |
| 104 | quit |
| 105 | **** |
| 106 | exim -bh 20.20.20.20 |
| 107 | mail from:<x@y> |
| 108 | rcpt to:<x1@y> |
| 109 | rcpt to:<x2@y> |
| 110 | quit |
| 111 | **** |
| 112 | exim -bh 20.20.20.20 |
| 113 | mail from:<userx@y> |
| 114 | rcpt to:<x1@y> |
| 115 | rcpt to:<userx@y> |
| 116 | quit |
| 117 | **** |
| 118 | exim -bh 21.21.21.21 |
| 119 | mail from:<userx@y> |
| 120 | rcpt to:<x1@y> |
| 121 | rcpt to:<userx@y> |
| 122 | rcpt to:<fail@y> |
| 123 | rset |
| 124 | mail from:<x@y> |
| 125 | rcpt to:<x1@y> |
| 126 | rcpt to:<x2@y> |
| 127 | rset |
| 128 | mail from:<fail@y> |
| 129 | rcpt to:<x@y> |
| 130 | quit |
| 131 | **** |
| 132 | exim -bh 22.22.22.22 |
| 133 | mail from:<userx@y> |
| 134 | rcpt to:<userx@y> |
| 135 | rcpt to:<x@y> |
| 136 | quit |
| 137 | **** |
| 138 | exim -bh 23.23.23.0 |
| 139 | mail from:<x@y> |
| 140 | rcpt to:<userx@y> |
| 141 | rset |
| 142 | mail from:<userx@y> |
| 143 | rcpt to:<userx@y> |
| 144 | quit |
| 145 | **** |
| 146 | exim -bh 23.23.23.1 |
| 147 | mail from:<x@y> |
| 148 | rcpt to:<userx@y> |
| 149 | quit |
| 150 | **** |
| 151 | exim -bh 24.24.24.24 |
| 152 | mail from:<x@y> |
| 153 | rcpt to:<userx@y> |
| 154 | quit |
| 155 | **** |
| 156 | exim -bh 25.25.25.25 |
| 157 | mail from:<x@y> |
| 158 | rcpt to:<x@y> |
| 159 | quit |
| 160 | **** |
| 161 | exim -bh 26.26.26.26 |
| 162 | mail from:<> |
| 163 | rcpt to:<x@y> |
| 164 | rcpt to:<y@y> |
| 165 | rcpt to:<z@y> |
| 166 | quit |
| 167 | **** |
| 168 | exim -bh 27.27.27.27 |
| 169 | mail from:<> |
| 170 | rcpt to:<x@y> |
| 171 | quit |
| 172 | **** |
| 173 | exim -bh 28.28.28.28 |
| 174 | mail from:<> |
| 175 | rcpt to:<x@y> |
| 176 | rset |
| 177 | mail from:<a@okdomain> |
| 178 | rcpt to:<x@y> |
| 179 | rset |
| 180 | mail from:<a@baddomain> |
| 181 | rcpt to:<x@y> |
| 182 | quit |
| 183 | **** |
| 184 | exim -bh V4NET.0.0.3 |
| 185 | mail from:<> |
| 186 | rcpt to:<x@y> |
| 187 | quit |
| 188 | **** |
| 189 | exim -bh V4NET.0.0.97 |
| 190 | mail from:<> |
| 191 | rcpt to:<x@y> |
| 192 | quit |
| 193 | **** |
| 194 | # This resolves to a name which will give `try again' when looked up |
| 195 | exim -bh V4NET.99.99.96 |
| 196 | mail from:<> |
| 197 | rcpt to:<x@y> |
| 198 | quit |
| 199 | **** |
| 200 | exim -bh V4NET.99.99.96 |
| 201 | mail from:<> |
| 202 | rcpt to:<defer_ok@y> |
| 203 | quit |
| 204 | **** |
| 205 | exim -bh 29.29.29.29 |
| 206 | mail from:<a@localhost> |
| 207 | rcpt to:<x@y> |
| 208 | rset |
| 209 | mail from:<a@elsewhere> |
| 210 | rcpt to:<x@y> |
| 211 | quit |
| 212 | **** |
| 213 | exim -bh 30.30.30.30 |
| 214 | mail from:<a@ten-1> |
| 215 | rcpt to:<x@y> |
| 216 | rset |
| 217 | mail from:<a@ten-2> |
| 218 | rcpt to:<x@y> |
| 219 | rset |
| 220 | mail from:<a@13.12.11.V4NET.rbl> |
| 221 | rcpt to:<x@y> |
| 222 | quit |
| 223 | **** |
| 224 | exim -bh 31.31.31.31 |
| 225 | mail from:<x@y> |
| 226 | rcpt to:<x@y> |
| 227 | quit |
| 228 | **** |
| 229 | exim -odi -bs -oMa 32.32.32.32 |
| 230 | mail from:<userx@test.ex> |
| 231 | rcpt to:<userx-vs@test.ex> |
| 232 | data |
| 233 | Test with verify sender. |
| 234 | . |
| 235 | quit |
| 236 | **** |
| 237 | exim -odi -bs -oMa 32.32.32.32 |
| 238 | mail from:<userx@test.ex> |
| 239 | rcpt to:<userx@test.ex> |
| 240 | data |
| 241 | Test without verify sender. |
| 242 | . |
| 243 | quit |
| 244 | **** |
| 245 | exim -bh 33.33.33.33 |
| 246 | mail from:<x@y> |
| 247 | rcpt to:<x1@y> |
| 248 | rcpt to:<x2@y> |
| 249 | quit |
| 250 | **** |
| 251 | # The 1 causes a 1-second delay in the test.again.dns lookup |
| 252 | exim -bh 44.44.44.1 |
| 253 | mail from:<x@y> |
| 254 | rcpt to:<x@y> |
| 255 | quit |
| 256 | **** |
| 257 | exim -odi -bs -oMa 55.55.55.55 |
| 258 | mail from:<userx@test.ex> |
| 259 | rcpt to:<userx@test.ex> |
| 260 | data |
| 261 | ACL header adding test. |
| 262 | . |
| 263 | quit |
| 264 | **** |
| 265 | exim -odi -bs -oMa 56.56.56.56 |
| 266 | mail from:<userx@test.ex> |
| 267 | rcpt to:<cond-yes@test.ex> |
| 268 | data |
| 269 | . |
| 270 | mail from:<userx@test.ex> |
| 271 | rcpt to:<cond-1@test.ex> |
| 272 | data |
| 273 | . |
| 274 | mail from:<userx@test.ex> |
| 275 | rcpt to:<cond-10@test.ex> |
| 276 | data |
| 277 | . |
| 278 | mail from:<userx@test.ex> |
| 279 | rcpt to:<cond-true@test.ex> |
| 280 | data |
| 281 | . |
| 282 | mail from:<userx@test.ex> |
| 283 | rcpt to:<cond-rhubarb@test.ex> |
| 284 | data |
| 285 | . |
| 286 | mail from:<userx@test.ex> |
| 287 | rcpt to:<cond-@test.ex> |
| 288 | data |
| 289 | . |
| 290 | mail from:<userx@test.ex> |
| 291 | rcpt to:<cond-no@test.ex> |
| 292 | data |
| 293 | . |
| 294 | mail from:<userx@test.ex> |
| 295 | rcpt to:<cond-0@test.ex> |
| 296 | data |
| 297 | . |
| 298 | mail from:<userx@test.ex> |
| 299 | rcpt to:<cond-00@test.ex> |
| 300 | data |
| 301 | . |
| 302 | mail from:<userx@test.ex> |
| 303 | rcpt to:<cond-false@test.ex> |
| 304 | data |
| 305 | . |
| 306 | quit |
| 307 | **** |
| 308 | exim -odi -bs -oMa 56.56.57.57 |
| 309 | mail from:<userx@test.ex> |
| 310 | rcpt to:<cond-yes@test.ex> |
| 311 | data |
| 312 | . |
| 313 | mail from:<userx@test.ex> |
| 314 | rcpt to:<cond-rhubarb@test.ex> |
| 315 | rset |
| 316 | mail from:<userx@test.ex> |
| 317 | rcpt to:<cond--1@test.ex> |
| 318 | data |
| 319 | . |
| 320 | quit |
| 321 | **** |
| 322 | exim -DLOG_SELECTOR=log_selector=-acl_warn_skipped -odi -bs -oMa 56.56.56.56 |
| 323 | mail from:<userx@test.ex> |
| 324 | rcpt to:<cond-rhubarb@test.ex> |
| 325 | data |
| 326 | . |
| 327 | quit |
| 328 | **** |
| 329 | exim -odi -bs -oMa 56.56.58.58 |
| 330 | mail from:<rcpttest@test.ex> |
| 331 | rcpt to:<ok1@test.ex> |
| 332 | rcpt to:<bad1@test.ex> |
| 333 | rcpt to:<ok2@test.ex> |
| 334 | rcpt to:<ok3@test.ex> |
| 335 | rcpt to:<bad2@test.ex> |
| 336 | rcpt to:<bad3@test.ex> |
| 337 | data |
| 338 | . |
| 339 | quit |
| 340 | **** |
| 341 | exim -odi -bs -oMa 56.56.59.59 |
| 342 | mail from:<rcpttest@test.ex> |
| 343 | rcpt to:<fail@test.ex> |
| 344 | quit |
| 345 | **** |
| 346 | exim -odi -bs -oMa V4NET.11.12.13 |
| 347 | mail from:<x@y> |
| 348 | rcpt to:<x@y> |
| 349 | rcpt to:<x1@y> |
| 350 | quit |
| 351 | **** |
| 352 | exim -bh 60.60.60.60 |
| 353 | mail from:<x@y> |
| 354 | rcpt to:<x@y> |
| 355 | rcpt to:<a@b> |
| 356 | quit |
| 357 | **** |