| 1 | # Exim test configuration 0197 |
| 2 | |
| 3 | # Remove connection timeout when copying for real use, |
| 4 | # and these settings. |
| 5 | |
| 6 | exim_path = EXIM_PATH |
| 7 | keep_environment = |
| 8 | host_lookup_order = bydns |
| 9 | spool_directory = DIR/spool |
| 10 | log_file_path = DIR/spool/log/%slog |
| 11 | gecos_pattern = "" |
| 12 | gecos_name = CALLER_NAME |
| 13 | tls_advertise_hosts = |
| 14 | |
| 15 | queue_run_in_order |
| 16 | trusted_users = CALLER |
| 17 | |
| 18 | |
| 19 | # Exim configuration to pass all messages on to a fixed host, taking |
| 20 | # copies of them for subsequent configuration testing. |
| 21 | |
| 22 | # This is the file the copies will be saved in. |
| 23 | |
| 24 | COPYFILE = DIR/test-mail/copies |
| 25 | |
| 26 | # This is the user that the copying delivery will run under. |
| 27 | |
| 28 | COPYUSER = CALLER |
| 29 | |
| 30 | # These are the domains whose mail will be copied. |
| 31 | |
| 32 | COPYDOMAINS = copy.domain |
| 33 | |
| 34 | # This is the list of domains that this server will relay. |
| 35 | |
| 36 | RELAYDOMAINS = COPYDOMAINS |
| 37 | |
| 38 | # This is the host that messages are relayed to. It can be a colon-separated |
| 39 | # list of hosts - they are tried in order. |
| 40 | |
| 41 | NEXTHOST = V4NET.0.0.1 |
| 42 | |
| 43 | |
| 44 | # ----- Main settings ----- |
| 45 | |
| 46 | # This is a list of domains which the host is going to relay. Mail addressed |
| 47 | # to other domains will be rejected |
| 48 | |
| 49 | domainlist relay_domains = RELAYDOMAINS |
| 50 | |
| 51 | acl_smtp_rcpt = check_recipient |
| 52 | |
| 53 | |
| 54 | # ----- ACL ----- |
| 55 | |
| 56 | begin acl |
| 57 | |
| 58 | check_recipient: |
| 59 | accept hosts = : |
| 60 | accept domains = +relay_domains |
| 61 | deny message = relay not permitted |
| 62 | |
| 63 | |
| 64 | # ----- Routers ----- |
| 65 | |
| 66 | begin routers |
| 67 | |
| 68 | # This router takes a copy of messages for a specific domain. |
| 69 | |
| 70 | checkcopy: |
| 71 | driver = manualroute |
| 72 | route_list = COPYDOMAINS |
| 73 | transport = makecopy |
| 74 | unseen |
| 75 | |
| 76 | # This router passes all addresses to the passing-on transport. |
| 77 | |
| 78 | passall: |
| 79 | driver = manualroute |
| 80 | route_list = * NEXTHOST byname |
| 81 | transport = pass_on |
| 82 | |
| 83 | |
| 84 | # ----- Transports ----- |
| 85 | |
| 86 | # This transport is used for doing the deliveries arising from taking copies |
| 87 | # of each message passing through the system, for specific domains. |
| 88 | |
| 89 | begin transports |
| 90 | |
| 91 | makecopy: |
| 92 | driver = appendfile |
| 93 | batch_max = 100 |
| 94 | use_bsmtp |
| 95 | file = COPYFILE |
| 96 | message_prefix = |
| 97 | message_suffix = |
| 98 | user = COPYUSER |
| 99 | |
| 100 | # This transport is used for passing the message on to the next host. |
| 101 | |
| 102 | pass_on: |
| 103 | driver = smtp |
| 104 | connect_timeout = 1s |
| 105 | |
| 106 | |
| 107 | # ----- Retry ----- |
| 108 | |
| 109 | |
| 110 | begin retry |
| 111 | |
| 112 | * * F,2h,15m; G,16h,1h,1.5; F,4d,8h |
| 113 | |
| 114 | |
| 115 | # End |