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