summaryrefslogtreecommitdiffstats
path: root/src/smtpd/smtpd_error.in
blob: c894b874a2673c5f582a3a250eb752cbd5ccfe0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#
# Initialize
#
smtpd_delay_reject 0
#
# Test check_domain_access()
#
helo_restrictions fail:1_helo_access
# Expect: REJECT (temporary lookup failure)
helo foobar
#
# Test check_namadr_access()
#
client_restrictions fail:1_client_access
# Expect: REJECT (temporary lookup failure)
client foo.dunno.com 131.155.210.17
#
# Test check_mail_access()
#
sender_restrictions fail:1_sender_access
# Expect: REJECT (temporary lookup failure)
mail reject@dunno.domain
#
# Test check_rcpt_access()
#
recipient_restrictions fail:1_rcpt_access
# Expect: REJECT (temporary lookup failure)
rcpt reject@dunno.domain
# Expect: OK
rcpt postmaster
#
# Test mynetworks in generic_checks().
#
mynetworks fail:1_mynetworks
#
# Expect REJECT (temporary lookup failure)
#
recipient_restrictions permit_mynetworks
rcpt reject@dunno.domain
# 
# Test mynetworks. 
#
mynetworks 168.100.189.1/27
#
# Expect REJECT (server configuration error)
#
rcpt reject@dunno.domain
#
# check_sender_access specific
#
smtpd_null_access_lookup_key <> 
mail <>
#
# Test permit_tls_client_certs in generic_restrictions
#
relay_clientcerts fail:1_certs
fingerprint abcdef
recipient_restrictions permit_tls_clientcerts
rcpt reject@dunno.domain
#
# Test smtpd_check_rewrite().
#
local_header_rewrite_clients fail:1_rewrite
#
# Expect: REJECT (temporary lookup failure)
#
rewrite
#
# Test resolve_local()
#
mydestination example.com
recipient_restrictions reject_unauth_destination
rcpt user@example.com
mydestination fail:1_mydestination
rcpt user@example.com
#
# Test virtual alias lookup.
#
mydestination example.com
virtual_alias_maps fail:1_virtual
rcpt user@example.com