>>> # >>> # Initialize. >>> # >>> #! ../bin/postmap smtpd_check_access >>> #msg_verbose 1 >>> smtpd_delay_reject 0 OK >>> relay_domains porcupine.org OK >>> client spike.porcupine.org 168.100.189.2 OK >>> # >>> # Check MX access >>> # >>> helo_restrictions check_helo_mx_access,inline:{168.100.189.2=reject} OK >>> helo www.porcupine.org ./smtpd_check: : reject: HELO from spike.porcupine.org[168.100.189.2]: 554 5.7.1 : Helo command rejected: Access denied; proto=SMTP helo= 554 5.7.1 : Helo command rejected: Access denied >>> helo example.tld ./smtpd_check: warning: Unable to look up MX host example.tld for Helo command example.tld: hostname nor servname provided, or not known OK >>> helo foo@postfix.org OK >>> sender_restrictions check_sender_mx_access,inline:{168.100.189.2=reject} OK >>> mail foo@www.porcupine.org ./smtpd_check: : reject: MAIL from spike.porcupine.org[168.100.189.2]: 554 5.7.1 : Sender address rejected: Access denied; from= proto=SMTP helo= 554 5.7.1 : Sender address rejected: Access denied >>> mail example.tld ./smtpd_check: warning: Unable to look up MX host example.tld for Sender address example.tld: hostname nor servname provided, or not known OK >>> mail foo@postfix.org OK >>> recipient_restrictions check_recipient_mx_access,inline:{168.100.189.2=reject} OK >>> rcpt foo@www.porcupine.org ./smtpd_check: : reject: RCPT from spike.porcupine.org[168.100.189.2]: 554 5.7.1 : Recipient address rejected: Access denied; from= to= proto=SMTP helo= 554 5.7.1 : Recipient address rejected: Access denied >>> rcpt foo@example.tld ./smtpd_check: warning: Unable to look up MX host example.tld for Recipient address foo@example.tld: hostname nor servname provided, or not known OK >>> rcpt foo@postfix.org OK >>> # >>> # Check NS access >>> # >>> helo_restrictions check_helo_ns_access,inline:{168.100.1.2=reject} OK >>> helo www.porcupine.org ./smtpd_check: : reject: HELO from spike.porcupine.org[168.100.189.2]: 554 5.7.1 : Helo command rejected: Access denied; from= proto=SMTP helo= 554 5.7.1 : Helo command rejected: Access denied >>> helo example.tld ./smtpd_check: warning: Unable to look up NS host for example.tld: Host not found OK >>> helo foo@postfix.org ./smtpd_check: : reject: HELO from spike.porcupine.org[168.100.189.2]: 554 5.7.1 : Helo command rejected: Access denied; from= proto=SMTP helo= 554 5.7.1 : Helo command rejected: Access denied >>> sender_restrictions check_sender_ns_access,inline:{168.100.1.2=reject} OK >>> mail foo@www.porcupine.org ./smtpd_check: : reject: MAIL from spike.porcupine.org[168.100.189.2]: 554 5.7.1 : Sender address rejected: Access denied; from= proto=SMTP helo= 554 5.7.1 : Sender address rejected: Access denied >>> mail example.tld ./smtpd_check: warning: Unable to look up NS host for example.tld: Host not found OK >>> mail foo@postfix.org ./smtpd_check: : reject: MAIL from spike.porcupine.org[168.100.189.2]: 554 5.7.1 : Sender address rejected: Access denied; from= proto=SMTP helo= 554 5.7.1 : Sender address rejected: Access denied >>> recipient_restrictions check_recipient_ns_access,inline:{168.100.1.2=reject} OK >>> rcpt foo@www.porcupine.org ./smtpd_check: : reject: RCPT from spike.porcupine.org[168.100.189.2]: 554 5.7.1 : Recipient address rejected: Access denied; from= to= proto=SMTP helo= 554 5.7.1 : Recipient address rejected: Access denied >>> rcpt foo@example.tld ./smtpd_check: warning: Unable to look up NS host for foo@example.tld: Host not found OK >>> rcpt foo@postfix.org ./smtpd_check: : reject: RCPT from spike.porcupine.org[168.100.189.2]: 554 5.7.1 : Recipient address rejected: Access denied; from= to= proto=SMTP helo= 554 5.7.1 : Recipient address rejected: Access denied >>> # >>> # Check A access >>> # >>> helo_restrictions check_helo_a_access,inline:{168.100.189.2=reject} OK >>> helo spike.porcupine.org ./smtpd_check: : reject: HELO from spike.porcupine.org[168.100.189.2]: 554 5.7.1 : Helo command rejected: Access denied; from= proto=SMTP helo= 554 5.7.1 : Helo command rejected: Access denied >>> helo www.porcupine.org OK >>> client_restrictions check_client_a_access,inline:{168.100.189.2=reject} OK >>> client spike.porcupine.org 1.2.3.4 ./smtpd_check: : reject: CONNECT from spike.porcupine.org[1.2.3.4]: 554 5.7.1 : Client host rejected: Access denied; from= proto=SMTP helo= 554 5.7.1 : Client host rejected: Access denied >>> client www.porcupine.org 1.2.3.4 OK >>> reverse_client_restrictions check_reverse_client_a_access,inline:{168.100.189.2=reject} bad command >>> client spike.porcupine.org 1.2.3.4 ./smtpd_check: : reject: CONNECT from spike.porcupine.org[1.2.3.4]: 554 5.7.1 : Client host rejected: Access denied; from= proto=SMTP helo= 554 5.7.1 : Client host rejected: Access denied >>> client www.porcupine.org 1.2.3.4 OK >>> sender_restrictions check_sender_a_access,inline:{168.100.189.2=reject} OK >>> mail foo@spike.porcupine.org ./smtpd_check: : reject: MAIL from www.porcupine.org[1.2.3.4]: 554 5.7.1 : Sender address rejected: Access denied; from= proto=SMTP helo= 554 5.7.1 : Sender address rejected: Access denied >>> mail foo@www.porcupine.org OK >>> recipient_restrictions check_recipient_a_access,inline:{168.100.189.2=reject} OK >>> rcpt foo@spike.porcupine.org ./smtpd_check: : reject: RCPT from www.porcupine.org[1.2.3.4]: 554 5.7.1 : Recipient address rejected: Access denied; from= to= proto=SMTP helo= 554 5.7.1 : Recipient address rejected: Access denied >>> rcpt foo@www.porcupine.org OK