5 mynetworks 127.0.0.0/8,168.100.189.0/28
6 relay_domains porcupine.org
7 smtpd_null_access_lookup_key <>
9 # Test check_domain_access()
11 helo_restrictions hash:./smtpd_check_access
19 # Test check_namadr_access(), domain part
21 client_restrictions hash:./smtpd_check_access
23 client foo.dunno.com 131.155.210.17
25 client bar.dunno.com 131.155.210.17
27 client bar.dunno.com 131.155.210.19
29 # Test check_namadr_access(), address part
32 client bar.duno.com 131.155.210.17
34 client bar.duno.com 131.155.210.19
36 client bar.duno.com 44.33.22.11
38 client bar.duno.com 44.33.22.55
40 client bar.duno.com 44.33.44.33
42 # Test check_mail_access()
44 sender_restrictions hash:./smtpd_check_access
46 mail reject@dunno.domain
50 mail anyone@dunno.domain
52 mail bad-sender@dunno.domain
54 # Again, with a domain that rejects by default
57 mail reject@reject.domain
61 mail anyone@reject.domain
63 mail good-sender@reject.domain
65 # Again, with a domain that accepts by default
74 mail bad-sender@ok.domain
76 # Test check_mail_access()
78 recipient_restrictions hash:./smtpd_check_access
80 rcpt reject@dunno.domain
83 rcpt reject+ext@dunno.domain
89 rcpt ok+ext@dunno.domain
92 rcpt anyone@dunno.domain
94 rcpt bad-sender@dunno.domain
96 # Again, with a domain that rejects by default
99 rcpt reject@reject.domain
101 rcpt ok@reject.domain
103 rcpt anyone@reject.domain
105 rcpt good-sender@reject.domain
107 # Again, with a domain that accepts by default
110 rcpt reject@ok.domain
114 rcpt anyone@ok.domain
116 rcpt bad-sender@ok.domain
118 # check_sender_access specific