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