| 1 | # Exim test configuration 0005 |
| 2 | |
| 3 | exim_path = EXIM_PATH |
| 4 | host_lookup_order = bydns |
| 5 | rfc1413_query_timeout = 0s |
| 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 | domainlist local_domains = @ |
| 14 | |
| 15 | acl_smtp_rcpt = accept |
| 16 | acl_smtp_data = check_data |
| 17 | |
| 18 | trusted_users = CALLER |
| 19 | |
| 20 | |
| 21 | # ----- ACL ----- |
| 22 | |
| 23 | begin acl |
| 24 | |
| 25 | check_data: |
| 26 | accept logwrite = \ |
| 27 | x-test-header-good1: ${utf8clean:$h_x-test-header-good1:} |
| 28 | logwrite = \ |
| 29 | x-test-header-good2: ${utf8clean:$h_x-test-header-good2:} |
| 30 | logwrite = \ |
| 31 | x-test-header-too-short: ${utf8clean:$h_x-test-header-too-short:} |
| 32 | logwrite = \ |
| 33 | x-test-header-too-long: ${utf8clean:$h_x-test-header-too-long:} |
| 34 | logwrite = \ |
| 35 | x-test-header-too-big: ${utf8clean:$h_x-test-header-too-big:} |
| 36 | |
| 37 | |
| 38 | |
| 39 | # ----- Routers ----- |
| 40 | |
| 41 | begin routers |
| 42 | |
| 43 | fail_remote_domains: |
| 44 | driver = redirect |
| 45 | domains = ! +local_domains |
| 46 | data = :fail: unrouteable mail domain "$domain" |
| 47 | |
| 48 | localuser: |
| 49 | driver = accept |
| 50 | check_local_user |
| 51 | transport = local_delivery |
| 52 | headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid |
| 53 | |
| 54 | |
| 55 | # ----- Transports ----- |
| 56 | |
| 57 | begin transports |
| 58 | |
| 59 | local_delivery: |
| 60 | driver = appendfile |
| 61 | delivery_date_add |
| 62 | envelope_to_add |
| 63 | file = DIR/test-mail/$local_part |
| 64 | headers_add = "X-body-linecount: $body_linecount\n\ |
| 65 | X-message-linecount: $message_linecount\n\ |
| 66 | X-received-count: $received_count" |
| 67 | return_path_add |
| 68 | |
| 69 | # End |