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