Testsuite: fix 0903
[exim.git] / test / confs / 0005
CommitLineData
afda344b
PH
1# Exim test configuration 0005
2
4fab92fb
HSHR
3.include DIR/aux-var/std_conf_prefix
4
afda344b
PH
5
6# ----- Main settings -----
7
8domainlist local_domains = @
9
10acl_smtp_rcpt = check_recipient
11acl_smtp_data = check_data
12message_id_header_domain = ${if eq{0}{0}{some.domain}}
13message_id_header_text = ${if eq{0}{0}{a@b[c]}}
14trusted_users = CALLER
15
16
17# ----- ACL -----
18
19begin acl
20
21check_recipient:
22 accept hosts = :
23 accept domains = +local_domains
24 deny message = relay not permitted
25
26check_data:
27 warn message = X-acl-message-linecount: $message_linecount
28 accept
29
30
31# ----- Routers -----
32
33begin routers
34
35fail_remote_domains:
36 driver = redirect
37 domains = ! +local_domains
38 data = :fail: unrouteable mail domain "$domain"
39
40localuser:
41 driver = accept
42 check_local_user
43 transport = local_delivery
44 headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
45
46
47# ----- Transports -----
48
49begin transports
50
51local_delivery:
52 driver = appendfile
53 delivery_date_add
54 envelope_to_add
55 file = DIR/test-mail/$local_part
56 headers_add = "X-body-linecount: $body_linecount\n\
57 X-message-linecount: $message_linecount\n\
58 X-received-count: $received_count"
59 return_path_add
60
61# End