# # Initialize. # #! ../bin/postmap smtpd_check_access #msg_verbose 1 smtpd_delay_reject 0 mynetworks 127.0.0.0/8,168.100.189.0/28 relay_domains porcupine.org maps_rbl_domains dnsbltest.porcupine.org rbl_reply_maps hash:smtpd_check_access helo foobar # # RBL # mail sname@sdomain recipient_restrictions reject_maps_rbl client spike.porcupine.org 168.100.189.2 rcpt rname@rdomain client foo 127.0.0.2 rcpt rname@rdomain # recipient_restrictions reject_rbl_client,dnsbltest.porcupine.org client spike.porcupine.org 168.100.189.2 rcpt rname@rdomain client foo 127.0.0.2 rcpt rname@rdomain recipient_restrictions reject_rbl_client,dnsbltest.porcupine.org=127.0.0.2 client foo 127.0.0.2 rcpt rname@rdomain client foo 127.0.0.1 rcpt rname@rdomain # # RHSBL sender domain name # recipient_restrictions reject_rhsbl_sender,dsn.rfc-ignorant.org client spike.porcupine.org 168.100.189.2 mail sname@example.tld rcpt rname@rdomain mail sname@sdomain rcpt rname@rdomain # # RHSBL client domain name # recipient_restrictions reject_rhsbl_client,dsn.rfc-ignorant.org client example.tld 1.2.3.4 mail sname@sdomain rcpt rname@rdomain # # RHSBL recipient domain name # recipient_restrictions reject_rhsbl_recipient,dsn.rfc-ignorant.org client spike.porcupine.org 168.100.189.2 mail sname@sdomain rcpt rname@rdomain rcpt rname@example.tld # # RHSBL helo domain name # recipient_restrictions reject_rhsbl_helo,abuse.rfc-ignorant.org helo example.tld mail sname@sdomain rcpt rname@rdomain # # Check MX access # helo_restrictions check_helo_mx_access,hash:smtpd_check_access #helo verisign-wildcard.com helo verisign.com helo example.tld sender_restrictions check_sender_mx_access,hash:smtpd_check_access mail foo@pls.net.au #mail foo@verisign-wildcard.com mail foo@verisign.com recipient_restrictions check_recipient_mx_access,hash:smtpd_check_access #rcpt foo@verisign-wildcard.com rcpt foo@verisign.com rcpt foo@1.2.3.porcupine.org # # Check NS access # helo_restrictions check_helo_ns_access,hash:smtpd_check_access helo email-publisher.com helo ns1.topica.com #helo verisign-wildcard.com helo example.tld sender_restrictions check_sender_ns_access,hash:smtpd_check_access mail foo@email-publisher.com mail foo@ns1.topica.com #mail foo@verisign-wildcard.com recipient_restrictions check_recipient_ns_access,hash:smtpd_check_access rcpt foo@email-publisher.com rcpt foo@ns1.topica.com #rcpt foo@verisign-wildcard.com rcpt foo@1.2.3.porcupine.org