Merge branch 'master' into 4.next
[exim.git] / test / confs / 0901
CommitLineData
f4630439
JH
1# Exim test configuration 0901
2SERVER=
3SRV=
4LIST=
5ALLOW=
6
7exim_path = EXIM_PATH
8keep_environment =
9host_lookup_order = bydns
10spool_directory = DIR/spool
11log_file_path = DIR/spool/log/SERVER%slog
12gecos_pattern = ""
13gecos_name = CALLER_NAME
14chunking_advertise_hosts = *
15tls_advertise_hosts = ${if eq {SRV}{tls} {*}}
16
17pipelining_advertise_hosts = :
18
19# ----- Main settings -----
20
21primary_hostname = testhost.test.ex
22domainlist local_domains = @ : test.ex
23
24acl_smtp_rcpt = check_recipient
25acl_smtp_data_prdr = check_prdr
26acl_smtp_data = check_data
27trusted_users = CALLER
28queue_only
29smtp_receive_timeout = 2s
30log_selector = +received_recipients
31
32.ifdef _OPT_MAIN_TLS_CERTIFICATE
33tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
34tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
35.endif
36
37ALLOW
38
39# ----- ACL -----
40
41begin acl
42
43check_recipient:
44 accept hosts = :
45 accept domains = +local_domains
46 deny message = relay not permitted
47
48check_prdr:
49 accept local_parts = good
50 deny
51
52check_data:
53 warn message = X-acl-message-linecount: $message_linecount
54 accept
55
56# ----- Routers -----
57
58begin routers
59
60to_server:
61 driver = accept
62 condition = ${if !eq {SERVER}{server}}
63 transport = remote_smtp${if eq {OPT}{dkim} {_dkim}}
64 errors_to = ""
65
66fail_remote_domains:
67 driver = redirect
68 domains = ! +local_domains
69 data = :fail: unrouteable mail domain "$domain"
70
71localuser:
72 driver = accept
73 check_local_user
74 transport = local_delivery
75 headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
76
77
78# ----- Transports -----
79
80begin transports
81
82local_delivery:
83 driver = appendfile
84 delivery_date_add
85 envelope_to_add
86 file = DIR/test-mail/$local_part
87 headers_add = "X-body-linecount: $body_linecount\n\
88 X-message-linecount: $message_linecount\n\
89 X-received-count: $received_count"
90 return_path_add
91
92remote_smtp:
93 driver = smtp
94 hosts = 127.0.0.1
95 port = PORT_S
96 allow_localhost
97 command_timeout = 2s
98 final_timeout = 2s
99
100remote_smtp_dkim:
101 driver = smtp
102 hosts = 127.0.0.1
103 port = PORT_S
104 allow_localhost
105 command_timeout = 2s
106 final_timeout = 2s
107
108.ifdef OPT
109 dkim_domain = test.ex
110 dkim_selector = sel
111 dkim_private_key = DIR/aux-fixed/dkim/dkim.private
112.ifndef HEADERS_MAXSIZE
113 dkim_sign_headers = LIST
114.endif
115.endif
116
117# ----- Retry -----
118
119begin retry
120* * F,30m,5m;
121# End