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