Use single-bit fields for global flags
[exim.git] / test / confs / 0900
... / ...
CommitLineData
1# Exim test configuration 0900
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.ifdef _HAVE_REQTLS
17tls_advertise_requiretls = :
18.endif
19
20
21# ----- Main settings -----
22
23primary_hostname = testhost.test.ex
24domainlist local_domains = @ : test.ex
25
26acl_smtp_rcpt = check_recipient
27acl_smtp_data_prdr = check_prdr
28acl_smtp_data = check_data
29trusted_users = CALLER
30queue_only
31smtp_receive_timeout = 2s
32
33.ifdef _HAVE_DKIM
34log_selector = +received_recipients +dkim_verbose
35.else
36log_selector = +received_recipients
37.endif
38
39.ifdef _OPT_MAIN_TLS_CERTIFICATE
40tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
41tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
42.endif
43
44ALLOW
45
46# ----- ACL -----
47
48begin acl
49
50check_recipient:
51 accept hosts = :
52 accept domains = +local_domains
53 deny message = relay not permitted
54
55check_prdr:
56 accept local_parts = good
57 deny
58
59check_data:
60 warn message = X-acl-message-linecount: $message_linecount
61 accept
62
63# ----- Routers -----
64
65begin routers
66
67to_server:
68 driver = accept
69 condition = ${if !eq {SERVER}{server}}
70 transport = remote_smtp${if eq {SRV}{dkim} {_dkim}}
71 errors_to = ""
72
73fail_remote_domains:
74 driver = redirect
75 domains = ! +local_domains
76 data = :fail: unrouteable mail domain "$domain"
77
78localuser:
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
87begin transports
88
89local_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
99remote_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
107remote_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
115.ifdef SRV
116 dkim_domain = test.ex
117 dkim_selector = sel
118 dkim_private_key = DIR/aux-fixed/dkim/dkim.private
119.ifndef HEADERS_MAXSIZE
120 dkim_sign_headers = LIST
121.endif
122.endif
123
124# ----- Retry -----
125
126begin retry
127* * F,30m,5m;
128# End