| 1 | # Exim test configuration 1002 |
| 2 | |
| 3 | exim_path = EXIM_PATH |
| 4 | host_lookup_order = bydns |
| 5 | primary_hostname = myhost.test.ex |
| 6 | spool_directory = DIR/spool |
| 7 | log_file_path = DIR/spool/log/%slog |
| 8 | gecos_pattern = "" |
| 9 | gecos_name = CALLER_NAME |
| 10 | |
| 11 | # ----- Main settings ----- |
| 12 | |
| 13 | acl_smtp_rcpt = acl_rcpt_$local_part |
| 14 | allow_domain_literals |
| 15 | hosts_treat_as_local = other1.test.ex |
| 16 | |
| 17 | |
| 18 | # ------ ACLs ------ |
| 19 | |
| 20 | begin acl |
| 21 | |
| 22 | acl_rcpt_1: |
| 23 | require message = domain doesn't match @ or @[] |
| 24 | domains = @ : @[] |
| 25 | accept |
| 26 | |
| 27 | acl_rcpt_2: |
| 28 | require message = domain doesn't match @mx_any |
| 29 | domains = @mx_any |
| 30 | accept |
| 31 | |
| 32 | acl_rcpt_3: |
| 33 | require message = domain doesn't match @mx_primary |
| 34 | domains = @mx_primary |
| 35 | accept |
| 36 | |
| 37 | acl_rcpt_4: |
| 38 | require message = domain doesn't match @mx_secondary |
| 39 | domains = @mx_secondary |
| 40 | accept |
| 41 | |
| 42 | acl_rcpt_5: |
| 43 | require message = host doesn't match @ or @[] |
| 44 | hosts = @ : @[] |
| 45 | accept |
| 46 | |
| 47 | acl_rcpt_6: |
| 48 | require message = domain doesn't match @mx_any/ignore=<;127.0.0.1;::1 |
| 49 | domains = <+ @mx_any/ignore=<;127.0.0.1;::1 |
| 50 | accept |
| 51 | |
| 52 | |
| 53 | # ------ Routers ------ |
| 54 | |
| 55 | begin routers |
| 56 | |
| 57 | r1: |
| 58 | driver = dnslookup |
| 59 | domains = ! +local_domains |
| 60 | transport = dev_null |
| 61 | no_more |
| 62 | |
| 63 | r2: |
| 64 | driver = accept |
| 65 | local_parts = CALLER : postmaster |
| 66 | transport = local_delivery |
| 67 | |
| 68 | |
| 69 | # ------ Transports ------ |
| 70 | |
| 71 | begin transports |
| 72 | |
| 73 | dev_null: |
| 74 | driver = appendfile |
| 75 | file = /dev/null |
| 76 | user = CALLER |
| 77 | |
| 78 | local_delivery: |
| 79 | driver = appendfile |
| 80 | file = DIR/test-mail/$local_part |
| 81 | user = CALLER |
| 82 | |
| 83 | # End |