1 # Exim test configuration 0014
4 host_lookup_order = bydns
5 primary_hostname = myhost.test.ex
6 rfc1413_query_timeout = 0s
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/%slog
10 gecos_name = CALLER_NAME
12 # ----- Main settings -----
14 domainlist local_domains = test.ex : myhost.test.ex
15 domainlist relay_domains = test.ex
17 acl_smtp_rcpt = check_recipient
19 trusted_users = CALLER
28 require verify = sender
29 accept domains = +local_domains
30 accept domains = +relay_domains
31 deny message = relay not permitted
38 *@*.one.two $1@one.two
40 *pqr@^qu(.*) 1=$1@zz$2
41 hhhh@h.h.h.h "${if eq {$h_to:}{x@y}{yes}{no}}@j.j.j"
43 ########################################################
44 # Fancy example of a supposed outgoing gateway rewrite #
45 ########################################################
47 # No rewrite unless domain is *.plc.example
49 ^(?>.*)(?<!\.plc\.example) *
51 # Handle root specially except envelope to
53 root@*.plc.example "admin@plc.example (root@$1)" whFq
55 # Failure in envelope sender is bad - should fail to verify
57 *@*.plc.example ${lookup{$local_part@$2}lsearch\
58 {DIR/aux-fixed/0014.usernames}\
59 {$value}{"$1@$2.plc.example-is-not-known"}}@plc.example Fq
61 # Use envelope for failing header sender
63 *@*.plc.example "${lookup{$local_part@$2}lsearch\
64 {DIR/aux-fixed/0014.usernames}{$value@plc.example}\
65 {$sender_address}}" fsrq
67 # Other failures => `unknown'
68 *@*.plc.example "${lookup{$local_part@$2}lsearch\
69 {DIR/aux-fixed/0014.usernames}{$value}{unknown}}@plc.example"
78 domains = *.plc.example
85 domains = ! +local_domains
87 data = :fail: Unrouteable mail domain "$domain"
93 transport = appendfile
96 # ----- Transports -----
102 file = DIR/test-mail/$local_part