| 1 | # Exim test configuration 0094 |
| 2 | |
| 3 | .include DIR/aux-var/std_conf_prefix |
| 4 | |
| 5 | |
| 6 | # ----- Main settings ----- |
| 7 | |
| 8 | qualify_domain = test.ex |
| 9 | |
| 10 | acl_smtp_rcpt = check_recipient |
| 11 | domainlist local_domains = test.ex |
| 12 | |
| 13 | hostlist relay_hosts = *.masq.test.ex |
| 14 | |
| 15 | host_lookup = 0.0.0.0/0 |
| 16 | |
| 17 | |
| 18 | # ----- ACL ----- |
| 19 | |
| 20 | begin acl |
| 21 | |
| 22 | check_recipient: |
| 23 | accept hosts = : |
| 24 | accept domains = +local_domains |
| 25 | accept hosts = +relay_hosts |
| 26 | deny message = relay not permitted |
| 27 | |
| 28 | |
| 29 | # ----- Routers ----- |
| 30 | |
| 31 | begin routers |
| 32 | |
| 33 | localuser: |
| 34 | driver = accept |
| 35 | local_parts = userx |
| 36 | transport = appendfile |
| 37 | |
| 38 | |
| 39 | # ----- Transports ----- |
| 40 | |
| 41 | begin transports |
| 42 | |
| 43 | appendfile: |
| 44 | driver = appendfile |
| 45 | file = DIR/test-mail/$local_part |
| 46 | headers_add = host_lookup_failed: $host_lookup_failed\n\ |
| 47 | host_lookup_deferred: $host_lookup_deferred |
| 48 | user = CALLER |
| 49 | |
| 50 | |
| 51 | # End |