1 # Exim test configuration 0014
3 .include DIR/aux-var/std_conf_prefix
5 primary_hostname = myhost.test.ex
7 # ----- Main settings -----
9 domainlist local_domains = test.ex : myhost.test.ex
10 domainlist relay_domains = test.ex
12 acl_smtp_rcpt = check_recipient
14 trusted_users = CALLER
23 require verify = sender
24 accept domains = +local_domains
25 accept domains = +relay_domains
26 deny message = relay not permitted
33 *@*.one.two $1@one.two
35 *pqr@^qu(.*) 1=$1@zz$2
36 hhhh@h.h.h.h "${if eq {$h_to:}{x@y}{yes}{no}}@j.j.j"
38 ########################################################
39 # Fancy example of a supposed outgoing gateway rewrite #
40 ########################################################
42 # No rewrite unless domain is *.plc.example
44 ^(?>.*)(?<!\.plc\.example) *
46 # Handle root specially except envelope to
48 root@*.plc.example "admin@plc.example (root@$1)" whFq
50 # Failure in envelope sender is bad - should fail to verify
52 *@*.plc.example ${lookup{$local_part@$2}lsearch\
53 {DIR/aux-fixed/0014.usernames}\
54 {$value}{"$1@$2.plc.example-is-not-known"}}@plc.example Fq
56 # Use envelope for failing header sender
58 *@*.plc.example "${lookup{$local_part@$2}lsearch\
59 {DIR/aux-fixed/0014.usernames}{$value@plc.example}\
60 {$sender_address}}" fsrq
62 # Other failures => `unknown'
63 *@*.plc.example "${lookup{$local_part@$2}lsearch\
64 {DIR/aux-fixed/0014.usernames}{$value}{unknown}}@plc.example"
73 domains = *.plc.example
80 domains = ! +local_domains
82 data = :fail: Unrouteable mail domain "$domain"
88 transport = appendfile
91 # ----- Transports -----
97 file = DIR/test-mail/${bless:$local_part}