Support wire-format spoolfiles
[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
17
18# ----- Main settings -----
19
20primary_hostname = testhost.test.ex
21domainlist local_domains = @ : test.ex
22
23acl_smtp_rcpt = check_recipient
24acl_smtp_data_prdr = check_prdr
25acl_smtp_data = check_data
26trusted_users = CALLER
27queue_only
28smtp_receive_timeout = 2s
29log_selector = +received_recipients
30
31.ifdef _OPT_MAIN_TLS_CERTIFICATE
32tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
33tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
34.endif
35
36ALLOW
37
38# ----- ACL -----
39
40begin acl
41
42check_recipient:
43 accept hosts = :
44 accept domains = +local_domains
45 deny message = relay not permitted
46
47check_prdr:
48 accept local_parts = good
49 deny
50
51check_data:
52 warn message = X-acl-message-linecount: $message_linecount
53 accept
54
55# ----- Routers -----
56
57begin routers
58
59to_server:
60 driver = accept
61 condition = ${if !eq {SERVER}{server}}
62 transport = remote_smtp${if eq {OPT}{dkim} {_dkim}}
63 errors_to = ""
64
65fail_remote_domains:
66 driver = redirect
67 domains = ! +local_domains
68 data = :fail: unrouteable mail domain "$domain"
69
70localuser:
71 driver = accept
72 check_local_user
73 transport = local_delivery
74 headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
75
76
77# ----- Transports -----
78
79begin transports
80
81local_delivery:
82 driver = appendfile
83 delivery_date_add
84 envelope_to_add
85 file = DIR/test-mail/$local_part
86 headers_add = "X-body-linecount: $body_linecount\n\
87 X-message-linecount: $message_linecount\n\
88 X-received-count: $received_count"
89 return_path_add
90
91remote_smtp:
92 driver = smtp
93 hosts = 127.0.0.1
94 port = PORT_S
95 allow_localhost
96 command_timeout = 2s
97 final_timeout = 2s
98
99remote_smtp_dkim:
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
107.ifdef OPT
108 dkim_domain = test.ex
109 dkim_selector = sel
110 dkim_private_key = DIR/aux-fixed/dkim/dkim.private
111.ifndef HEADERS_MAXSIZE
112 dkim_sign_headers = LIST
113.endif
114.endif
115
116# ----- Retry -----
117
118begin retry
119* * F,30m,5m;
120# End