| 1 | # Exim test configuration 0057 |
| 2 | |
| 3 | exim_path = EXIM_PATH |
| 4 | keep_environment = |
| 5 | host_lookup_order = bydns |
| 6 | primary_hostname = myhost.ex |
| 7 | spool_directory = DIR/spool |
| 8 | log_file_path = DIR/spool/log/%slog |
| 9 | gecos_pattern = "" |
| 10 | gecos_name = CALLER_NAME |
| 11 | tls_advertise_hosts = |
| 12 | |
| 13 | # ----- Main settings ----- |
| 14 | |
| 15 | acl_smtp_rcpt = check_recipient |
| 16 | |
| 17 | domainlist local_domains = test.ex : myhost.ex : *.test.ex |
| 18 | domainlist relay_domains = test.ex : !* |
| 19 | |
| 20 | percent_hack_domains = ! a.test.ex : !b.test.ex : \ |
| 21 | !DIR/aux-fixed/TESTNUM.d1 : ! DIR/aux-fixed/TESTNUM.d2 : *.test.ex |
| 22 | |
| 23 | |
| 24 | # ------ ACL ------ |
| 25 | |
| 26 | begin acl |
| 27 | |
| 28 | check_recipient: |
| 29 | accept domains = +local_domains |
| 30 | accept domains = +relay_domains |
| 31 | deny message = relay not permitted |
| 32 | |
| 33 | |
| 34 | # ----- Routers ----- |
| 35 | |
| 36 | begin routers |
| 37 | |
| 38 | fail_remote_domains: |
| 39 | driver = redirect |
| 40 | domains = ! +local_domains |
| 41 | data = :fail: unrouteable mail domain "$domain" |
| 42 | |
| 43 | localuser: |
| 44 | driver = accept |
| 45 | local_parts = userx |
| 46 | verify_only |
| 47 | |
| 48 | # End |