SHARE
TWEET

Untitled

a guest Feb 20th, 2016 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. backend main.cf:
  2. alias_database = hash:/etc/aliases
  3. alias_maps = hash:/etc/aliases
  4. broken_sasl_auth_clients = yes
  5. command_directory = /usr/sbin
  6. config_directory = /etc/postfix
  7. content_filter = scan:127.0.0.1:10025
  8. daemon_directory = /usr/libexec/postfix
  9. data_directory = /var/lib/postfix
  10. debug_peer_level = 2
  11. html_directory = no
  12. inet_interfaces = all
  13. inet_protocols = ipv4
  14. luser_relay = /dev/null
  15. mail_owner = postfix
  16. mailbox_size_limit = 104857600
  17. mailq_path = /usr/bin/mailq.postfix
  18. manpage_directory = /usr/share/man
  19. message_size_limit = 52428800
  20. mydestination = $myhostname, localhost, proxy.mydomain.com
  21. mydomain = mydomain.com
  22. myhostname = mail.mydomain.com
  23. mynetworks = 168.100.189.0/28, 127.0.0.0/8, 192.168.0.0/24, 192.168.122.0/24
  24. myorigin = $myhostname
  25. newaliases_path = /usr/bin/newaliases.postfix
  26. proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
  27. queue_directory = /var/spool/postfix
  28. readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
  29. recipient_delimiter = +
  30. relayhost = proxy.mydomain.com
  31. sample_directory = /usr/share/doc/postfix-2.6.6/samples
  32. sendmail_path = /usr/sbin/sendmail.postfix
  33. setgid_group = postdrop
  34. smtp_sasl_auth_enable = yes
  35. smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
  36. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  37. smtpd_helo_required = yes
  38. smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, reject_non_fqdn_hostname
  39. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_policy_service unix:postgrey/socket
  40. smtpd_sasl_auth_enable = yes
  41. smtpd_sasl_authenticated_header = yes
  42. smtpd_sasl_local_domain =
  43. smtpd_sasl_path = private/auth
  44. smtpd_sasl_security_options = noanonymous
  45. smtpd_sasl_type = dovecot
  46. smtpd_tls_auth_only = yes
  47. smtpd_tls_cert_file = /etc/pki/dovecot/certs/mail.crt
  48. smtpd_tls_key_file = /etc/pki/dovecot/private/mail.key
  49. smtpd_tls_loglevel = 1
  50. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  51. smtpd_use_tls = yes
  52. unknown_local_recipient_reject_code = 550
  53. virtual_alias_maps = mysql:/etc/postfix/mysql-aliases.cf, mysql:/etc/postfix/mysql-email2email.cf
  54. virtual_gid_maps = static:5000
  55. virtual_mailbox_base = /home/vmail
  56. virtual_mailbox_domains = mysql:/etc/postfix/mysql-domains.cf
  57. virtual_mailbox_limit = 512000000
  58. virtual_mailbox_maps = mysql:/etc/postfix/mysql-users.cf
  59. virtual_uid_maps = static:5000
  60.  
  61.  
  62.  
  63.  
  64.  
  65. relayhost main.cf:
  66. alias_database = hash:/etc/aliases
  67. alias_maps = hash:/etc/aliases
  68. command_directory = /usr/sbin
  69. config_directory = /etc/postfix
  70. daemon_directory = /usr/libexec/postfix
  71. data_directory = /var/lib/postfix
  72. debug_peer_level = 2
  73. html_directory = no
  74. inet_interfaces = all
  75. inet_protocols = ipv4
  76. mail_owner = postfix
  77. mailq_path = /usr/bin/mailq.postfix
  78. manpage_directory = /usr/share/man
  79. mydestination = $myhostname, localhost
  80. mydomain = mydomain.com
  81. myhostname = proxy.mydomain.com
  82. mynetworks = 168.100.189.0/28, 127.0.0.0/8
  83. myorigin = $myhostname
  84. newaliases_path = /usr/bin/newaliases.postfix
  85. queue_directory = /var/spool/postfix
  86. readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
  87. sample_directory = /usr/share/doc/postfix-2.6.6/samples
  88. sendmail_path = /usr/sbin/sendmail.postfix
  89. setgid_group = postdrop
  90. unknown_local_recipient_reject_code = 550
  91.  
  92.  
  93.  
  94.  
  95.  
  96. maillog of backend:
  97.  
  98. Feb 20 20:43:49 server postfix/smtpd[30490]: connect from unknown[10.10.10.10]
  99. Feb 20 20:43:49 server postfix/smtp[30532]: warning: host mail.mydomain.com[xxx.xxx.xxx.xxx]:25 greeted me with my own hostname mail.mydomain.com
  100. Feb 20 20:43:49 server postfix/smtp[30532]: warning: host mail.mydomain.com[xxx.xxx.xxx.xxx]:25 replied to HELO/EHLO with my own hostname mail.mydomain.com
  101. Feb 20 20:43:49 server postfix/smtp[30532]: 6833E1820E19: to=<myuser@gmail.com>, relay=mail.mydomain.com[xxx.xxx.xxx.xxx]:25, delay=0.96, delays=0.12/0.03/0.81/0, dsn=5.4.6, status=bounced (mail for proxy.mydomain.com loops back to myself)
  102. Feb 20 20:43:49 server postfix/cleanup[30523]: 76C031820E1A: message-id=<20160220194349.76C031840E1A@mail.mydomain.com>
  103. Feb 20 20:43:49 server postfix/smtpd[30490]: disconnect from unknown[10.10.10.10]
  104. Feb 20 20:43:49 server postfix/qmgr[28632]: 76C031820E1A: from=<>, size=2697, nrcpt=1 (queue active)
  105. Feb 20 20:43:49 server postfix/bounce[30533]: 6833E1820E19: sender non-delivery notification: 76C031820E1A
  106. Feb 20 20:43:49 server postfix/qmgr[28632]: 6833E1820E19: removed
  107. Feb 20 20:43:49 server postfix/virtual[30534]: 76C031820E1A: to=<user@mydomain.com>, relay=virtual, delay=0.15, delays=0.06/0.02/0/0.07, dsn=2.0.0, status=sent (delivered to maildir)
  108. Feb 20 20:43:49 server postfix/qmgr[28632]: 76C031820E1A: removed
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