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