| 1 | # ACL checks after DATA |
| 2 | # |
| 3 | # Syntax OK, non-null sender => should be accepted |
| 4 | exim -odq -bs |
| 5 | mail from:<x@y> |
| 6 | rcpt to:<x@y> |
| 7 | data |
| 8 | Message 1 |
| 9 | . |
| 10 | quit |
| 11 | **** |
| 12 | # Syntax error in header => should fail |
| 13 | exim -odq -bs |
| 14 | mail from:<x@y> |
| 15 | rcpt to:<x@y> |
| 16 | data |
| 17 | From: @ |
| 18 | |
| 19 | Message 2 |
| 20 | . |
| 21 | quit |
| 22 | **** |
| 23 | # Syntax error (version 2) in header => should fail |
| 24 | exim -odq -bs |
| 25 | mail from:<x@y> |
| 26 | rcpt to:<x@y> |
| 27 | data |
| 28 | To: <dummy@gmail.com |
| 29 | Subject: incomprehensible |
| 30 | From: <forged@sender.com |
| 31 | |
| 32 | Message 2a |
| 33 | . |
| 34 | quit |
| 35 | **** |
| 36 | # Syntax error in header => should fail even with null sender |
| 37 | exim -odq -bs |
| 38 | mail from:<> |
| 39 | rcpt to:<x@y> |
| 40 | data |
| 41 | From: <x@y>, @ |
| 42 | |
| 43 | Message 3 |
| 44 | . |
| 45 | quit |
| 46 | **** |
| 47 | # Null sender, invalid sender in header => fail |
| 48 | exim -odq -bs |
| 49 | mail from:<> |
| 50 | rcpt to:<x@y> |
| 51 | data |
| 52 | From: <x@y> |
| 53 | |
| 54 | Message 4 |
| 55 | . |
| 56 | quit |
| 57 | **** |
| 58 | # Null sender, valid sender in header => accept |
| 59 | exim -odq -bs |
| 60 | mail from:<> |
| 61 | rcpt to:<x@y> |
| 62 | data |
| 63 | From: <postmaster@test.ex> |
| 64 | Reply-to:<x@y> |
| 65 | |
| 66 | Message 5 |
| 67 | . |
| 68 | quit |
| 69 | **** |
| 70 | # Syntax OK, non-null sender, but bad data => reject |
| 71 | exim -odq -bs |
| 72 | mail from:<x@y> |
| 73 | rcpt to:<x@y> |
| 74 | data |
| 75 | Message 6 contains trigger word |
| 76 | . |
| 77 | quit |
| 78 | **** |
| 79 | # Syntax OK, non-null sender, good data |
| 80 | exim -odi -bs |
| 81 | mail from:<x@y> |
| 82 | rcpt to:<userx@test.ex> |
| 83 | data |
| 84 | Message 7 |
| 85 | . |
| 86 | quit |
| 87 | **** |
| 88 | # -bh test: Syntax error in header => should fail |
| 89 | exim -bh 10.0.0.0 |
| 90 | mail from:<x@y> |
| 91 | rcpt to:<x@y> |
| 92 | data |
| 93 | From: @ |
| 94 | |
| 95 | Message 8 |
| 96 | . |
| 97 | quit |
| 98 | **** |
| 99 | # -bh test: Syntax OK, non-null sender, but bad data => reject |
| 100 | exim -bh 10.0.0.0 |
| 101 | mail from:<x@y> |
| 102 | rcpt to:<x@y> |
| 103 | data |
| 104 | Message 9 contains trigger word |
| 105 | . |
| 106 | quit |
| 107 | **** |
| 108 | # Group syntax in reply-to header |
| 109 | exim -odi -bs |
| 110 | mail from:<x@y> |
| 111 | rcpt to:<userx@test.ex> |
| 112 | data |
| 113 | to: group name: x@y, p@q; |
| 114 | reply-to: group name: a@b, c@d; |
| 115 | |
| 116 | Message 10 |
| 117 | . |
| 118 | quit |
| 119 | **** |
| 120 | # Group syntax in reply-to header, but no address (falls back to From: for |
| 121 | # header_sender check - From: is valid) |
| 122 | exim -odi -bs |
| 123 | mail from:<> |
| 124 | rcpt to:<userx@test.ex> |
| 125 | data |
| 126 | to: group name: x@y, p@q; |
| 127 | reply-to: group name:; |
| 128 | from: userx@test.ex |
| 129 | |
| 130 | Message 11 |
| 131 | . |
| 132 | quit |
| 133 | **** |
| 134 | # Group syntax in reply-to header, but no address (falls back to From: for |
| 135 | # header_sender check - but there is no From:) |
| 136 | exim -odi -bs |
| 137 | mail from:<> |
| 138 | rcpt to:<userx@test.ex> |
| 139 | data |
| 140 | to: group name: x@y, p@q; |
| 141 | reply-to: group name:; |
| 142 | |
| 143 | Message 12 |
| 144 | . |
| 145 | quit |
| 146 | **** |
| 147 | no_msglog_check |