1# 2# Initialize. 3# 4#! ../bin/postmap smtpd_check_access 5#msg_verbose 1 6smtpd_delay_reject 0 7relay_domains porcupine.org 8client spike.porcupine.org 168.100.3.2 9# 10# Check MX access 11# 12helo_restrictions check_helo_mx_access,inline:{168.100.3.2=reject} 13helo www.porcupine.org 14helo example.tld 15helo foo@postfix.org 16sender_restrictions check_sender_mx_access,inline:{168.100.3.2=reject} 17mail foo@www.porcupine.org 18mail example.tld 19mail foo@postfix.org 20recipient_restrictions check_recipient_mx_access,inline:{168.100.3.2=reject} 21rcpt foo@www.porcupine.org 22rcpt foo@example.tld 23rcpt foo@postfix.org 24# 25# Check NS access 26# 27helo_restrictions check_helo_ns_access,inline:{168.100.3.75=reject} 28helo www.porcupine.org 29helo example.tld 30helo foo@maildaemon.org 31sender_restrictions check_sender_ns_access,inline:{168.100.3.75=reject} 32mail foo@www.porcupine.org 33mail example.tld 34mail foo@maildaemon.org 35recipient_restrictions check_recipient_ns_access,inline:{168.100.3.75=reject} 36rcpt foo@www.porcupine.org 37rcpt foo@example.tld 38rcpt foo@maildaemon.org 39# 40# Check A access 41# 42helo_restrictions check_helo_a_access,inline:{168.100.3.2=reject} 43helo spike.porcupine.org 44helo www.porcupine.org 45client_restrictions check_client_a_access,inline:{168.100.3.2=reject} 46client spike.porcupine.org 1.2.3.4 47client www.porcupine.org 1.2.3.4 48reverse_client_restrictions check_reverse_client_a_access,inline:{168.100.3.2=reject} 49client spike.porcupine.org 1.2.3.4 50client www.porcupine.org 1.2.3.4 51sender_restrictions check_sender_a_access,inline:{168.100.3.2=reject} 52mail foo@spike.porcupine.org 53mail foo@www.porcupine.org 54recipient_restrictions check_recipient_a_access,inline:{168.100.3.2=reject} 55rcpt foo@spike.porcupine.org 56rcpt foo@www.porcupine.org 57