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