xref: /netbsd-src/external/ibm-public/postfix/dist/src/smtpd/smtpd_exp.in (revision 48fb7bfab72acd4281a53bbee5ccf3f809019e75)
1#
2# Initialize.
3#
4#! ../bin/postmap smtpd_check_access
5#msg_verbose 1
6smtpd_delay_reject 0
7mynetworks 127.0.0.0/8,168.100.189.0/28
8relay_domains porcupine.org
9maps_rbl_domains dnsbltest.porcupine.org
10rbl_reply_maps hash:smtpd_check_access
11helo foobar
12#
13# RBL
14#
15mail sname@sdomain
16recipient_restrictions reject_maps_rbl
17client spike.porcupine.org 168.100.189.2
18rcpt rname@rdomain
19client foo 127.0.0.2
20rcpt rname@rdomain
21#
22recipient_restrictions reject_rbl_client,dnsbltest.porcupine.org
23client spike.porcupine.org 168.100.189.2
24rcpt rname@rdomain
25client foo 127.0.0.2
26rcpt rname@rdomain
27recipient_restrictions reject_rbl_client,dnsbltest.porcupine.org=127.0.0.2
28client foo 127.0.0.2
29rcpt rname@rdomain
30client foo 127.0.0.1
31rcpt rname@rdomain
32#
33# RHSBL sender domain name
34#
35recipient_restrictions reject_rhsbl_sender,dsn.rfc-ignorant.org
36client spike.porcupine.org 168.100.189.2
37mail sname@example.tld
38rcpt rname@rdomain
39mail sname@sdomain
40rcpt rname@rdomain
41#
42# RHSBL client domain name
43#
44recipient_restrictions reject_rhsbl_client,dsn.rfc-ignorant.org
45client example.tld 1.2.3.4
46mail sname@sdomain
47rcpt rname@rdomain
48#
49# RHSBL recipient domain name
50#
51recipient_restrictions reject_rhsbl_recipient,dsn.rfc-ignorant.org
52client spike.porcupine.org 168.100.189.2
53mail sname@sdomain
54rcpt rname@rdomain
55rcpt rname@example.tld
56#
57# RHSBL helo domain name
58#
59recipient_restrictions reject_rhsbl_helo,abuse.rfc-ignorant.org
60helo example.tld
61mail sname@sdomain
62rcpt rname@rdomain
63#
64# Check MX access
65#
66helo_restrictions check_helo_mx_access,hash:smtpd_check_access
67#helo verisign-wildcard.com
68helo verisign.com
69helo example.tld
70sender_restrictions check_sender_mx_access,hash:smtpd_check_access
71mail foo@pls.net.au
72#mail foo@verisign-wildcard.com
73mail foo@verisign.com
74recipient_restrictions check_recipient_mx_access,hash:smtpd_check_access
75#rcpt foo@verisign-wildcard.com
76rcpt foo@verisign.com
77rcpt foo@1.2.3.porcupine.org
78#
79# Check NS access
80#
81helo_restrictions check_helo_ns_access,hash:smtpd_check_access
82helo email-publisher.com
83helo ns1.topica.com
84#helo verisign-wildcard.com
85helo example.tld
86sender_restrictions check_sender_ns_access,hash:smtpd_check_access
87mail foo@email-publisher.com
88mail foo@ns1.topica.com
89#mail foo@verisign-wildcard.com
90recipient_restrictions check_recipient_ns_access,hash:smtpd_check_access
91rcpt foo@email-publisher.com
92rcpt foo@ns1.topica.com
93#rcpt foo@verisign-wildcard.com
94rcpt foo@1.2.3.porcupine.org
95