| 1 | # Exim test configuration 0005 |
| 2 | |
| 3 | .include DIR/aux-var/std_conf_prefix |
| 4 | |
| 5 | |
| 6 | # ----- Main settings ----- |
| 7 | |
| 8 | domainlist local_domains = @ |
| 9 | |
| 10 | acl_smtp_rcpt = check_recipient |
| 11 | acl_smtp_data = check_data |
| 12 | message_id_header_domain = ${if eq{0}{0}{some.domain}} |
| 13 | message_id_header_text = ${if eq{0}{0}{a@b[c]}} |
| 14 | trusted_users = CALLER |
| 15 | |
| 16 | |
| 17 | # ----- ACL ----- |
| 18 | |
| 19 | begin acl |
| 20 | |
| 21 | check_recipient: |
| 22 | accept hosts = : |
| 23 | accept domains = +local_domains |
| 24 | deny message = relay not permitted |
| 25 | |
| 26 | check_data: |
| 27 | warn message = X-acl-message-linecount: $message_linecount |
| 28 | accept |
| 29 | |
| 30 | |
| 31 | # ----- Routers ----- |
| 32 | |
| 33 | begin routers |
| 34 | |
| 35 | fail_remote_domains: |
| 36 | driver = redirect |
| 37 | domains = ! +local_domains |
| 38 | data = :fail: unrouteable mail domain "$domain" |
| 39 | |
| 40 | localuser: |
| 41 | driver = accept |
| 42 | check_local_user |
| 43 | transport = local_delivery |
| 44 | headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid |
| 45 | |
| 46 | |
| 47 | # ----- Transports ----- |
| 48 | |
| 49 | begin transports |
| 50 | |
| 51 | local_delivery: |
| 52 | driver = appendfile |
| 53 | delivery_date_add |
| 54 | envelope_to_add |
| 55 | file = DIR/test-mail/$local_part |
| 56 | headers_add = "X-body-linecount: $body_linecount\n\ |
| 57 | X-message-linecount: $message_linecount\n\ |
| 58 | X-received-count: $received_count" |
| 59 | return_path_add |
| 60 | |
| 61 | # End |