Commit | Line | Data |
---|---|---|
328c5688 JH |
1 | # Exim test configuration 0906 |
2 | SERVER= | |
3 | ||
4 | exim_path = EXIM_PATH | |
5 | keep_environment = | |
6 | host_lookup_order = bydns | |
7 | spool_directory = DIR/spool | |
8 | log_file_path = DIR/spool/log/SERVER%slog | |
9 | gecos_pattern = "" | |
10 | gecos_name = CALLER_NAME | |
11 | chunking_advertise_hosts = * | |
12 | tls_advertise_hosts = ${if eq {SRV}{tls} {*}} | |
ee8b8090 JH |
13 | .ifdef _HAVE_PIPE_CONNECT |
14 | pipelining_connect_advertise_hosts = | |
15 | .endif | |
328c5688 JH |
16 | |
17 | # ----- Main settings ----- | |
18 | ||
19 | spool_wireformat = true | |
20 | ||
21 | primary_hostname = testhost.test.ex | |
22 | domainlist local_domains = @ : test.ex | |
23 | ||
014de25a | 24 | acl_smtp_rcpt = acl_r |
2c47372f JH |
25 | |
26 | .ifdef _HAVE_DKIM | |
27 | log_selector = +received_recipients +dkim_verbose | |
28 | .else | |
328c5688 | 29 | log_selector = +received_recipients |
2c47372f JH |
30 | .endif |
31 | ||
328c5688 JH |
32 | |
33 | .ifdef _OPT_MAIN_TLS_CERTIFICATE | |
34 | tls_certificate = DIR/aux-fixed/cert1 | |
35 | tls_privatekey = DIR/aux-fixed/cert1 | |
36 | .endif | |
37 | ||
1c3c17d1 JH |
38 | queue_run_in_order = true |
39 | ||
328c5688 JH |
40 | # ----- ACL ----- |
41 | ||
014de25a JH |
42 | begin acl |
43 | acl_r: | |
44 | accept condition = ${if != {$received_port}{PORT_S}} | |
45 | control = queue_only | |
46 | accept | |
47 | ||
328c5688 JH |
48 | # ----- Routers ----- |
49 | ||
50 | begin routers | |
51 | ||
52 | to_server: | |
53 | driver = accept | |
54 | condition = ${if = {$received_port}{PORT_S}} | |
55 | transport = remote_smtp${if eq {OPT}{dkim} {_dkim}} | |
56 | errors_to = "" | |
57 | ||
58 | fail_remote_domains: | |
59 | driver = redirect | |
60 | domains = ! +local_domains | |
61 | data = :fail: unrouteable mail domain "$domain" | |
62 | ||
63 | localuser: | |
64 | driver = accept | |
65 | transport = local_delivery | |
66 | ||
67 | ||
68 | # ----- Transports ----- | |
69 | ||
70 | begin transports | |
71 | ||
72 | local_delivery: | |
73 | driver = appendfile | |
74 | file = DIR/test-mail/$local_part | |
75 | headers_add = "X-body-linecount: $body_linecount\n\ | |
76 | X-message-linecount: $message_linecount\n\ | |
77 | X-received-count: $received_count" | |
78 | return_path_add | |
79 | user = CALLER | |
80 | ||
81 | remote_smtp: | |
82 | driver = smtp | |
83 | hosts = 127.0.0.1 | |
84 | port = PORT_D | |
85 | allow_localhost | |
86 | ||
87 | remote_smtp_dkim: | |
88 | driver = smtp | |
89 | hosts = 127.0.0.1 | |
90 | port = PORT_D | |
91 | allow_localhost | |
92 | ||
93 | .ifdef OPT | |
94 | dkim_domain = test.ex | |
95 | dkim_selector = sel | |
96 | dkim_private_key = DIR/aux-fixed/dkim/dkim.private | |
97 | .ifndef HEADERS_MAXSIZE | |
98 | dkim_sign_headers = LIST | |
99 | .endif | |
100 | .endif | |
101 | ||
102 | # ----- Retry ----- | |
103 | ||
104 | begin retry | |
105 | * * F,30m,5m; | |
106 | # End |