| 1 | # Exim test configuration 4001: ACL regex= |
| 2 | |
| 3 | .include DIR/aux-var/std_conf_prefix |
| 4 | |
| 5 | primary_hostname = myhost.test.ex |
| 6 | rfc1413_query_timeout = 0s |
| 7 | |
| 8 | |
| 9 | # ----- Main settings ----- |
| 10 | |
| 11 | acl_smtp_rcpt = check_rcpt |
| 12 | acl_smtp_data = check_data |
| 13 | acl_not_smtp = check_data |
| 14 | |
| 15 | |
| 16 | # ----- ACL ----- |
| 17 | |
| 18 | begin acl |
| 19 | |
| 20 | check_rcpt: |
| 21 | accept |
| 22 | |
| 23 | check_data: |
| 24 | warn regex = \N(THIS\s((\w+)\s)?REGEX)\N |
| 25 | message = X-Regex: Regex matched <$regex1> <$regex3> |
| 26 | |
| 27 | warn condition = ${if !eq{$h_fakereject:}{}} |
| 28 | control = fakereject |
| 29 | |
| 30 | warn condition = ${if !eq{$h_fakedefer:}{}} |
| 31 | control = fakedefer |
| 32 | |
| 33 | accept |
| 34 | |
| 35 | # ----- Routers ----- |
| 36 | |
| 37 | begin routers |
| 38 | |
| 39 | r1: |
| 40 | driver = accept |
| 41 | transport = t1 |
| 42 | |
| 43 | # ----- Transports ----- |
| 44 | |
| 45 | begin transports |
| 46 | |
| 47 | t1: |
| 48 | driver = appendfile |
| 49 | file = DIR/test-mail/$local_part |
| 50 | user = CALLER |
| 51 | |
| 52 | |
| 53 | # End |