a4eb1b1db3f468140451dbac06b9b68b50c521bd
[users/jgh/exim.git] / test / confs / 0029
1 # Exim test configuration 0029
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 primary_hostname = myhost.test.ex
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 acl_smtp_rcpt = check_rcpt
15
16
17 # ------ ACL ------
18
19 begin acl
20
21 check_rcpt:
22   require  verify = sender
23            verify = sender=\
24                     ${if eq {${domain:$sender_address}}{test.ex}\
25                     {${local_part:$sender_address}@abc.test.ex}\
26                     {$sender_address}}
27   accept
28
29
30 # ------ Routers ------
31
32 begin routers
33
34 r1:
35   driver = accept
36   domains = test.ex : xyz.test.ex
37   transport = t1
38
39 r2:
40   driver = accept
41   domains = abc.test.ex
42   local_parts = ok
43   transport = t1
44
45
46 # ------ Transports ------
47
48 begin transports
49
50 t1:
51   driver = appendfile
52   file = /dev/null
53
54 # End