d9c939d582852d222efe5349b553e80105c3c33a
[exim.git] / test / confs / 0026
1 # Exim test configuration 0026
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
11 # ----- Main settings -----
12
13 domainlist local_domains = test.ex
14
15 acl_smtp_rcpt = accept
16 acl_smtp_data = acl_data
17
18 trusted_users = CALLER
19
20 # ------ ACLs ------
21
22 begin acl
23
24 acl_data:
25   deny     log_message = body contains trigger
26            condition = ${if match{$message_body}{trigger}{yes}{no}}
27   warn     logwrite = \$h_from: '$h_from:'
28   require  verify = header_syntax
29   warn     message = X-warning: this is a test warning
30   accept   senders = ! :
31   accept   verify = header_sender
32
33
34 # ------ Routers ------
35
36 begin routers
37
38 r1:
39   driver = dnslookup
40   domains = ! +local_domains
41   transport = dev_null
42   no_more
43
44 r2:
45   driver = accept
46   local_parts = userx : postmaster
47   transport = local_delivery
48
49
50 # ------ Transports ------
51
52 begin transports
53
54 dev_null:
55   driver = appendfile
56   file = /dev/null
57   user = CALLER
58
59 local_delivery:
60   driver = appendfile
61   file = DIR/test-mail/$local_part
62   user = CALLER
63
64 # End