SHARE
TWEET

Untitled

rmiddle Feb 17th, 2016 43 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
  30.  
  31. [root@ann200mail06 postfix]# postconf -n
  32. alias_database = hash:/etc/aliases
  33. alias_maps = hash:/etc/aliases
  34. always_bcc = auto_bcc_address@autobcc.autobcc
  35. broken_sasl_auth_clients = yes
  36. command_directory = /usr/sbin
  37. config_directory = /etc/postfix
  38. daemon_directory = /usr/libexec/postfix
  39. data_directory = /var/lib/postfix
  40. debug_peer_level = 2
  41. default_destination_concurrency_limit = 20
  42. default_privs = nobody
  43. header_checks = regexp:/etc/postfix/header_checks
  44. html_directory = no
  45. inet_interfaces = all
  46. inet_protocols = ipv4
  47. lmtp_destination_concurrency_limit = 200
  48. lmtp_destination_recipient_limit = 0
  49. lmtp_sasl_auth_enable = yes
  50. lmtp_sasl_password_maps = hash:/etc/postfix/lmtp_sasl_passwd
  51. lmtp_sasl_security_options =
  52. local_destination_concurrency_limit = 20
  53. local_destination_recipient_limit = 300
  54. mail_owner = postfix
  55. mailbox_size_limit = 0
  56. mailbox_transport = cyrus
  57. mailq_path = /usr/bin/mailq.postfix
  58. manpage_directory = /usr/share/man
  59. message_size_limit = 110240000
  60. mydestination = $myhostname, localhost.$mydomain, localhost
  61. mydomain = example.com
  62. myhostname = ann200mail06.example.com
  63. mynetworks = 192.168.0.0/16
  64. mynetworks_style = host
  65. newaliases_path = /usr/bin/newaliases.postfix
  66. queue_directory = /var/spool/postfix
  67. readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
  68. recipient_delimiter = +
  69. sample_directory = /usr/share/doc/postfix-2.6.6/samples
  70. sendmail_path = /usr/sbin/sendmail.postfix
  71. setgid_group = postdrop
  72. smtp_host_lookup = dns, native
  73. smtpd_restriction_classes = allow_other
  74. smtp_sasl_security_options = noanonymous
  75. smtpd_banner = $myhostname ESMTP $mail_name
  76. smtpd_recipient_restrictions = check_recipient_access pcre:/etc/postfix/sms_recipient_check.pcre,        pcre:/etc/postfix/bogus_email_address_list.pcre,       permit_mynetworks,        check_client_access hash:/etc/postfix/site_access,     permit_sasl_authenticated,        check_client_access hash:/etc/postfix/block_sites,    reject_unauth_destination        check_recipient_access hash:/etc/postfix/trusted-only
  77. smtpd_sasl_auth_enable = yes
  78. smtpd_sasl_authenticated_header = yes
  79. smtpd_sasl_local_domain = $myhostname
  80. smtpd_sasl_security_options = noanonymous
  81. smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
  82. smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access,        permit_mynetworks,        check_client_access hash:/etc/postfix/site_access,    permit_sasl_authenticated,       reject_unauth_destination
  83. smtpd_tls_CAfile = /etc/postfix/ssl/godaddy.crt
  84. smtpd_tls_auth_only = no
  85. smtpd_tls_cert_file = /etc/postfix/ssl/example_wildcard.crt
  86. smtpd_tls_key_file = /etc/postfix/ssl/example_wildcard.key
  87. smtpd_tls_loglevel = 1
  88. smtpd_tls_received_header = yes
  89. smtpd_tls_session_cache_timeout = 3600s
  90. smtpd_use_tls = yes
  91. tls_random_source = dev:/dev/urandom
  92. transport_maps = hash:/etc/postfix/transport,    hash:/etc/postfix/transport_avsquestionportal
  93. unknown_local_recipient_reject_code = 550
  94. virtual_alias_domains = ldap:/etc/postfix/ldap_virtual_alias_domains.cf,    ldap:/etc/postfix/ldap_virtual_alias_domains_nodns.cf,    hash:/etc/postfix/replica_domains
  95. virtual_alias_maps = hash:/etc/postfix/virtual,    ldap:/etc/postfix/ldap_virtual_alias_map.cf,    hash:/etc/postfix/virtual_avsquestionportal
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