SHARE
TWEET

Postfix error 451 / unknown smtpd restriction

rmiddle Feb 17th, 2016 (edited) 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. maillog:
  2. Feb 17 10:39:34 ann200mail06 postfix/smtpd[28416]: connect from mail-yw0-f173.google.com[209.85.161.173]
  3. Feb 17 10:39:34 ann200mail06 postfix/smtpd[28416]: setting up TLS connection from mail-yw0-f173.google.com[209.85.161.173]
  4. Feb 17 10:39:34 ann200mail06 postfix/smtpd[28416]: Anonymous TLS connection established from mail-yw0-f173.google.com[209.85.161.173]: TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)
  5. Feb 17 10:39:35 ann200mail06 postfix/smtpd[28416]: warning: : "unknown smtpd restriction allow_abc_example"
  6. Feb 17 10:39:35 ann200mail06 postfix/smtpd[28416]: NOQUEUE: reject: RCPT from mail-yw0-f173.google.com[209.85.161.173]: 451 4.3.5 Server configuration error; from=<abc@gmail.com> to=<abc@example.com> proto=ESMTP helo=<mail-yw0-f173.google.com>
  7. Feb 17 10:39:35 ann200mail06 postfix/cleanup[29107]: 23E771B6676: message-id=<20160217153935.23E771B6676@ann200mail06.example.com>
  8. Feb 17 10:39:35 ann200mail06 postfix/smtpd[28416]: disconnect from mail-yw0-f173.google.com[209.85.161.173]
  9.  
  10. Main.cf:
  11. smtpd_restriction_classes = allow_abc_example
  12. allow_abc_example = check_sender_access
  13.     hash:/etc/postfix/allow_abc_example,
  14.     reject
  15.  
  16. # Now check who the message is for and confirm they should be sent to.
  17. smtpd_recipient_restrictions =
  18.         check_recipient_access pcre:/etc/postfix/sms_recipient_check.pcre,
  19.         pcre:/etc/postfix/bogus_email_address_list.pcre,
  20.         permit_mynetworks,
  21.         check_client_access hash:/etc/postfix/site_access,
  22.         permit_sasl_authenticated,
  23.         check_client_access hash:/etc/postfix/block_sites,
  24.         reject_unauth_destination
  25.         check_recipient_access hash:/etc/postfix/trusted-only
  26. #       If it gets this far it is premitted.
  27.  
  28. trusted-only:
  29. abc@example.com allow_abc_example
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top