| 1 | # Exim test configuration 0029 |
| 2 | |
| 3 | .include DIR/aux-var/std_conf_prefix |
| 4 | |
| 5 | primary_hostname = myhost.test.ex |
| 6 | |
| 7 | # ----- Main settings ----- |
| 8 | |
| 9 | acl_smtp_rcpt = check_rcpt |
| 10 | |
| 11 | |
| 12 | # ------ ACL ------ |
| 13 | |
| 14 | begin acl |
| 15 | |
| 16 | check_rcpt: |
| 17 | require verify = sender |
| 18 | verify = sender=\ |
| 19 | ${if eq {$sender_address_domain}{test.ex}\ |
| 20 | {$sender_address_local_part@abc.test.ex}\ |
| 21 | {$sender_address}} |
| 22 | accept |
| 23 | |
| 24 | |
| 25 | # ------ Routers ------ |
| 26 | |
| 27 | begin routers |
| 28 | |
| 29 | r1: |
| 30 | driver = accept |
| 31 | domains = test.ex : xyz.test.ex |
| 32 | transport = t1 |
| 33 | |
| 34 | r2: |
| 35 | driver = accept |
| 36 | domains = abc.test.ex |
| 37 | local_parts = ok |
| 38 | transport = t1 |
| 39 | |
| 40 | |
| 41 | # ------ Transports ------ |
| 42 | |
| 43 | begin transports |
| 44 | |
| 45 | t1: |
| 46 | driver = appendfile |
| 47 | file = /dev/null |
| 48 | |
| 49 | # End |