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