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