| 1 | # Exim test configuration 4201 |
| 2 | |
| 3 | exim_path = EXIM_PATH |
| 4 | host_lookup_order = bydns |
| 5 | spool_directory = DIR/spool |
| 6 | log_file_path = DIR/spool/log/%slog |
| 7 | gecos_pattern = "" |
| 8 | gecos_name = CALLER_NAME |
| 9 | |
| 10 | # ----- Main settings ----- |
| 11 | |
| 12 | domainlist local_domains = test.ex |
| 13 | |
| 14 | acl_smtp_rcpt = check_recipient |
| 15 | trusted_users = CALLER |
| 16 | log_selector = +received_recipients |
| 17 | |
| 18 | queue_only |
| 19 | queue_run_in_order |
| 20 | |
| 21 | smtputf8_advertise_hosts = * |
| 22 | |
| 23 | |
| 24 | # ----- ACL ----- |
| 25 | |
| 26 | begin acl |
| 27 | |
| 28 | check_recipient: |
| 29 | accept hosts = : |
| 30 | accept domains = +local_domains |
| 31 | deny message = relay not permitted |
| 32 | |
| 33 | # ----- Routers ----- |
| 34 | |
| 35 | begin routers |
| 36 | |
| 37 | fail_remote_domains: |
| 38 | driver = redirect |
| 39 | domains = ! +local_domains |
| 40 | data = :fail: unrouteable mail domain "$domain" |
| 41 | |
| 42 | localuser: |
| 43 | driver = redirect |
| 44 | data = :blackhole: |
| 45 | |
| 46 | # ----- Transports ----- |
| 47 | |
| 48 | begin transports |
| 49 | |
| 50 | local_delivery: |
| 51 | driver = appendfile |
| 52 | delivery_date_add |
| 53 | envelope_to_add |
| 54 | file = DIR/test-mail/$local_part |
| 55 | headers_add = "X-body-linecount: $body_linecount\n\ |
| 56 | X-message-linecount: $message_linecount\n\ |
| 57 | X-received-count: $received_count" |
| 58 | return_path_add |
| 59 | |
| 60 | # End |