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