| 1 | # ACL test of "standard" configuration |
| 2 | # |
| 3 | # Not a relay host, no authentication, sender address fails to verify. |
| 4 | # accept postmaster@test.ex (postmaster at local domain) |
| 5 | # deny userx@test.ex (good address in local domain, but sender verify failed) |
| 6 | # deny x@y (bad address, but sender verify failed) |
| 7 | # deny x@ten-1.test.ex (good relay address, but sender verify failed) |
| 8 | # deny x@ten-2.test.ex (good address, but sender verify failed) |
| 9 | # |
| 10 | exim -odi -oMa V4NET.0.0.0 -bs |
| 11 | mail from:<x@y> |
| 12 | rcpt to:<postmaster@test.ex> |
| 13 | rcpt to:<userx@test.ex> |
| 14 | rcpt to:<x@y> |
| 15 | rcpt to:<x@ten-1.test.ex> |
| 16 | rcpt to:<x@ten-2.test.ex> |
| 17 | data |
| 18 | Message 1 |
| 19 | . |
| 20 | quit |
| 21 | **** |
| 22 | # Not a relay host, no authentication, sender address does verify. |
| 23 | # accept postmaster@test.ex (postmaster at local domain) |
| 24 | # accept userx@test.ex (good address in local domain) |
| 25 | # deny x@y (bad address) |
| 26 | # accept x@ten-1.test.ex (good relay address) |
| 27 | # deny x@ten-2.test.ex (good address, but not relay domain or host) |
| 28 | exim -odi -oMa V4NET.0.0.0 -bs |
| 29 | mail from:<userx@test.ex> |
| 30 | rcpt to:<postmaster@test.ex> |
| 31 | rcpt to:<userx@test.ex> |
| 32 | rcpt to:<x@y> |
| 33 | rcpt to:<x@ten-1.test.ex> |
| 34 | rcpt to:<x@ten-2.test.ex> |
| 35 | data |
| 36 | Message 2 |
| 37 | . |
| 38 | quit |
| 39 | **** |
| 40 | # Relay host, no authentication, sender address does verify. |
| 41 | # deny bad@test.ex (bad address in local domain) |
| 42 | # deny x@y (bad address) |
| 43 | # accept x@ten-1.test.ex (good relay address) |
| 44 | # accept x@ten-2.test.ex (good non-relay address, relay host) |
| 45 | exim -odi -oMa V4NET.255.255.0 -bs |
| 46 | mail from:<userx@test.ex> |
| 47 | rcpt to:<bad@test.ex> |
| 48 | rcpt to:<x@y> |
| 49 | rcpt to:<x@ten-1.test.ex> |
| 50 | rcpt to:<x@ten-2.test.ex> |
| 51 | data |
| 52 | Message 3 |
| 53 | . |
| 54 | quit |
| 55 | **** |
| 56 | # Host on serious black list |
| 57 | # accept postmaster@test.ex (postmaster at local domain) |
| 58 | # deny anything else |
| 59 | exim -odi -oMa V4NET.11.12.13 -bs |
| 60 | mail from:<userx@test.ex> |
| 61 | rcpt to:<postmaster@test.ex> |
| 62 | rcpt to:<userx@test.ex> |
| 63 | rcpt to:<x@ten-1.test.ex> |
| 64 | data |
| 65 | Message 4 |
| 66 | . |
| 67 | quit |
| 68 | **** |
| 69 | # Host on warning black list |
| 70 | # accept postmaster@test.ex (postmaster at local domain) |
| 71 | # deny anything else |
| 72 | exim -odi -oMa V4NET.11.12.16 -bs |
| 73 | mail from:<userx@test.ex> |
| 74 | rcpt to:<postmaster@test.ex> |
| 75 | rcpt to:<userx@test.ex> |
| 76 | rcpt to:<x@ten-1.test.ex> |
| 77 | data |
| 78 | Message 5 |
| 79 | . |
| 80 | quit |
| 81 | **** |
| 82 | # Local SMTP - should accept everything |
| 83 | # |
| 84 | exim -odi -bs |
| 85 | mail from:<x@y> |
| 86 | rcpt to:<postmaster@test.ex> |
| 87 | rcpt to:<userx@test.ex> |
| 88 | rcpt to:<x@y> |
| 89 | rcpt to:<x@ten-1.test.ex> |
| 90 | rcpt to:<x@ten-2.test.ex> |
| 91 | quit |
| 92 | **** |