Commit | Line | Data |
---|---|---|
7e3ce68e | 1 | # Exim test configuration 0900 |
e027f545 | 2 | SERVER= |
fbbd45ff | 3 | SRV= |
6acd9fcf | 4 | LIST= |
0b20855c | 5 | ALLOW= |
7e3ce68e JH |
6 | |
7 | exim_path = EXIM_PATH | |
8 | keep_environment = | |
9 | host_lookup_order = bydns | |
10 | spool_directory = DIR/spool | |
11 | log_file_path = DIR/spool/log/SERVER%slog | |
12 | gecos_pattern = "" | |
13 | gecos_name = CALLER_NAME | |
14 | chunking_advertise_hosts = * | |
fbbd45ff | 15 | tls_advertise_hosts = ${if eq {SRV}{tls} {*}} |
7e3ce68e JH |
16 | |
17 | ||
18 | # ----- Main settings ----- | |
19 | ||
c7cb9a4a | 20 | primary_hostname = testhost.test.ex |
48f1c853 | 21 | domainlist local_domains = @ : test.ex |
7e3ce68e JH |
22 | |
23 | acl_smtp_rcpt = check_recipient | |
0b20855c | 24 | acl_smtp_data_prdr = check_prdr |
7e3ce68e | 25 | acl_smtp_data = check_data |
7e3ce68e JH |
26 | trusted_users = CALLER |
27 | queue_only | |
28 | smtp_receive_timeout = 2s | |
48f1c853 | 29 | log_selector = +received_recipients |
7e3ce68e | 30 | |
d29a84b5 | 31 | .ifdef _OPT_MAIN_TLS_CERTIFICATE |
e7621e83 JH |
32 | tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} |
33 | tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} | |
d29a84b5 | 34 | .endif |
7e3ce68e | 35 | |
0b20855c JH |
36 | ALLOW |
37 | ||
7e3ce68e JH |
38 | # ----- ACL ----- |
39 | ||
40 | begin acl | |
41 | ||
42 | check_recipient: | |
43 | accept hosts = : | |
44 | accept domains = +local_domains | |
45 | deny message = relay not permitted | |
46 | ||
0b20855c JH |
47 | check_prdr: |
48 | accept local_parts = good | |
49 | deny | |
50 | ||
7e3ce68e JH |
51 | check_data: |
52 | warn message = X-acl-message-linecount: $message_linecount | |
53 | accept | |
54 | ||
7e3ce68e JH |
55 | # ----- Routers ----- |
56 | ||
57 | begin routers | |
58 | ||
e027f545 JH |
59 | to_server: |
60 | driver = accept | |
61 | condition = ${if !eq {SERVER}{server}} | |
6acd9fcf | 62 | transport = remote_smtp${if eq {OPT}{dkim} {_dkim}} |
e027f545 JH |
63 | errors_to = "" |
64 | ||
7e3ce68e JH |
65 | fail_remote_domains: |
66 | driver = redirect | |
67 | domains = ! +local_domains | |
68 | data = :fail: unrouteable mail domain "$domain" | |
69 | ||
70 | localuser: | |
71 | driver = accept | |
72 | check_local_user | |
73 | transport = local_delivery | |
74 | headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid | |
75 | ||
76 | ||
77 | # ----- Transports ----- | |
78 | ||
79 | begin transports | |
80 | ||
81 | local_delivery: | |
82 | driver = appendfile | |
83 | delivery_date_add | |
84 | envelope_to_add | |
85 | file = DIR/test-mail/$local_part | |
86 | headers_add = "X-body-linecount: $body_linecount\n\ | |
87 | X-message-linecount: $message_linecount\n\ | |
88 | X-received-count: $received_count" | |
89 | return_path_add | |
90 | ||
e027f545 JH |
91 | remote_smtp: |
92 | driver = smtp | |
93 | hosts = 127.0.0.1 | |
94 | port = PORT_S | |
95 | allow_localhost | |
96 | command_timeout = 2s | |
97 | final_timeout = 2s | |
98 | ||
48f1c853 JH |
99 | remote_smtp_dkim: |
100 | driver = smtp | |
101 | hosts = 127.0.0.1 | |
102 | port = PORT_S | |
103 | allow_localhost | |
104 | command_timeout = 2s | |
105 | final_timeout = 2s | |
106 | ||
6acd9fcf | 107 | .ifdef OPT |
48f1c853 JH |
108 | dkim_domain = test.ex |
109 | dkim_selector = sel | |
110 | dkim_private_key = DIR/aux-fixed/dkim/dkim.private | |
111 | .ifndef HEADERS_MAXSIZE | |
6acd9fcf | 112 | dkim_sign_headers = LIST |
48f1c853 | 113 | .endif |
9960d1e5 | 114 | .endif |
48f1c853 | 115 | |
e027f545 JH |
116 | # ----- Retry ----- |
117 | ||
118 | begin retry | |
119 | * * F,30m,5m; | |
7e3ce68e | 120 | # End |