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