| 1 | # remove_header modifier in ACLs |
| 2 | exim -bs -odi |
| 3 | mail from:<mailok@test.ex> |
| 4 | rcpt to:<rcptok@test.ex> |
| 5 | rcpt to:<notok@test.ex> |
| 6 | data |
| 7 | cond: accept |
| 8 | X-Data-1: Line one |
| 9 | X-Data-2: Line two |
| 10 | X-Data-3: Line three |
| 11 | X-Data-4: Line four |
| 12 | X-Data-5: Line five |
| 13 | X-Not-1: Testing wildcard one |
| 14 | X-Not-2: Testing wildcard two |
| 15 | X-Rcpt-1: Line six |
| 16 | X-Rcpt-2: Line seven |
| 17 | X-Rcpt-3: Line eight |
| 18 | X-Rcpt-4: Line nine is really long, so long in fact that it wraps |
| 19 | around to the next line. |
| 20 | X-Rcpt-5: Line ten |
| 21 | X-Mail-1: Line eleven |
| 22 | X-Mail-2: Line twelve |
| 23 | X-Mail-3: Line thirteen |
| 24 | X-Mail-4: Line fourteen is also really long, but it won't get |
| 25 | removed by these ACL's. |
| 26 | X-Mail-5: Line fifteen |
| 27 | X-Predata-5: Line sixteen |
| 28 | X-Predata-4: Line seventeen |
| 29 | X-Predata-3: Line eighteen |
| 30 | X-Predata-2: Line nineteen |
| 31 | X-Predata-1: Line twenty |
| 32 | X-NotSMTP-1: Line twenty-one |
| 33 | X-NotSMTP-2: Line twenty-two |
| 34 | X-NotSMTP-3: Line twenty-three |
| 35 | |
| 36 | Test message |
| 37 | . |
| 38 | quit |
| 39 | **** |
| 40 | exim -odi rcptok@test.ex |
| 41 | Test non-SMTP message. Make sure it doesn't blow up when a header |
| 42 | it wants to remove is not present. This one also overrides the |
| 43 | fixup of adding a Date header because we specified to remove it! |
| 44 | Allow the admin to shoot himself in the foot if he really and |
| 45 | truly wants to. |
| 46 | **** |
| 47 | exim -bs -odi -DCONNECTCOND="remove_header=CONNECT: won't do this" |
| 48 | **** |
| 49 | no_msglog_check |