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