1 # Exim test configuration 0014
5 host_lookup_order = bydns
6 primary_hostname = myhost.test.ex
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/%slog
10 gecos_name = CALLER_NAME
13 # ----- Main settings -----
15 domainlist local_domains = test.ex : myhost.test.ex
16 domainlist relay_domains = test.ex
18 acl_smtp_rcpt = check_recipient
20 trusted_users = CALLER
29 require verify = sender
30 accept domains = +local_domains
31 accept domains = +relay_domains
32 deny message = relay not permitted
39 *@*.one.two $1@one.two
41 *pqr@^qu(.*) 1=$1@zz$2
42 hhhh@h.h.h.h "${if eq {$h_to:}{x@y}{yes}{no}}@j.j.j"
44 ########################################################
45 # Fancy example of a supposed outgoing gateway rewrite #
46 ########################################################
48 # No rewrite unless domain is *.plc.example
50 ^(?>.*)(?<!\.plc\.example) *
52 # Handle root specially except envelope to
54 root@*.plc.example "admin@plc.example (root@$1)" whFq
56 # Failure in envelope sender is bad - should fail to verify
58 *@*.plc.example ${lookup{$local_part@$2}lsearch\
59 {DIR/aux-fixed/0014.usernames}\
60 {$value}{"$1@$2.plc.example-is-not-known"}}@plc.example Fq
62 # Use envelope for failing header sender
64 *@*.plc.example "${lookup{$local_part@$2}lsearch\
65 {DIR/aux-fixed/0014.usernames}{$value@plc.example}\
66 {$sender_address}}" fsrq
68 # Other failures => `unknown'
69 *@*.plc.example "${lookup{$local_part@$2}lsearch\
70 {DIR/aux-fixed/0014.usernames}{$value}{unknown}}@plc.example"
79 domains = *.plc.example
86 domains = ! +local_domains
88 data = :fail: Unrouteable mail domain "$domain"
94 transport = appendfile
97 # ----- Transports -----
103 file = DIR/test-mail/$local_part