Merge branch 'master'
[exim.git] / test / confs / 0021
CommitLineData
afda344b
PH
1# Exim test configuration 0021
2
3SERVER=
715ab376 4BR=
afda344b
PH
5
6exim_path = EXIM_PATH
bc3c7bb7 7keep_environment =
afda344b
PH
8host_lookup_order = bydns
9primary_hostname = myhost.test.ex
afda344b
PH
10spool_directory = DIR/spool
11log_file_path = DIR/spool/log/SERVER%slog
12gecos_pattern = ""
13gecos_name = CALLER_NAME
23f3dc67 14tls_advertise_hosts =
afda344b
PH
15
16# ----- Main settings -----
17
18addresslist ok_senders = ok@somewhere : ok@test1 : ok@test3
19domainlist ok_sender_domains = somewhere : test1 : test3
20
21acl_not_smtp = not_smtp_${if eq{$sender_address}{}\
22 {test1}{${domain:$sender_address}}}
23
24acl_smtp_connect = connect
25acl_smtp_helo = helo
26acl_smtp_mail = mail
27acl_smtp_rcpt = rcpt
28
715ab376
PH
29BR
30
afda344b
PH
31qualify_domain = test.ex
32trusted_users = CALLER
33
34
35# ----- ACLs -----
36
37begin acl
38
39not_smtp_test1:
40 accept senders = : ok@test1
41 verify = sender
42 deny message = don't like sender $sender_address
43
44not_smtp_test2:
45 accept hosts = 1.2.3.4
46
47not_smtp_test3:
48 accept verify = reverse_host_lookup
49
50not_smtp_test4:
51 accept verify = certificate
52
53connect:
54 deny hosts = : 10.9.8.7
55 drop log_message = forcibly dropped
56 hosts = 10.9.8.9
57 accept logwrite = $sender_host_address accepted by connect ACL
58
59helo:
60 warn message = xxx: can't add this header
61 log_message = This warning is from a HELO ACL (command $smtp_command)
62 accept condition = ${if eq{$smtp_command_argument}{a.b.c}{yes}{no}}
63
64mail:
65 warn message = added header line
66 senders = ok@test3
67 accept senders = ok@test1 : ok@test3
68 verify = sender
ca86f471 69 logwrite = :main,reject: mail accepted "$smtp_command" "$smtp_command_argument"
afda344b
PH
70
71rcpt:
72 accept senders = +ok_senders
73 sender_domains = +ok_sender_domains
74 logwrite = :panic: rcpt accepted
75
76# ----- Routers -----
77
78begin routers
79
80accept:
81 driver = accept
82 local_parts = !bad
83 transport = appendfile
84
85# ----- Transports -----
86
87begin transports
88
89appendfile:
90 driver = appendfile
91 file = DIR/test-mail/$local_part
92 user = CALLER
93
94# End