Routers: make retry_use_local_part default true when any non-domain condition is...
[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
77 file = DIR/test-mail/$local_part
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
88 allow_localhost
89
90remote_smtp_dkim:
91 driver = smtp
92 hosts = 127.0.0.1
93 port = PORT_D
94 allow_localhost
95
96.ifdef OPT
97 dkim_domain = test.ex
98 dkim_selector = sel
99 dkim_private_key = DIR/aux-fixed/dkim/dkim.private
100.ifndef HEADERS_MAXSIZE
101 dkim_sign_headers = LIST
102.endif
103.endif
104
105# ----- Retry -----
106
107begin retry
108* * F,30m,5m;
109# End