Guest User

Untitled

a guest
Mar 30th, 2018
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  2.  
  3.  
  4. # Debian specific: Specifying a file name will cause the first
  5. # line of that file to be used as the name. The Debian default
  6. # is /etc/mailname.
  7. #myorigin = /etc/mailname
  8.  
  9. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  10. biff = no
  11.  
  12. # appending .domain is the MUA's job.
  13. append_dot_mydomain = no
  14.  
  15. # Uncomment the next line to generate "delayed mail" warnings
  16. #delay_warning_time = 4h
  17.  
  18. readme_directory = no
  19.  
  20. # TLS parameters
  21. smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  22. smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  23. smtpd_use_tls=yes
  24. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  25. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  26.  
  27. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  28. # information on enabling SSL in the smtp client.
  29.  
  30. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  31. myhostname = 8bazaar.com
  32. alias_maps = hash:/etc/aliases
  33. alias_database = hash:/etc/aliases
  34. #local_recipient_maps = unix:passwd.byname $alias_maps
  35. mydestination = localhost, localhost.localdomain
  36. #mydestination = $myhostname, 8bazaar.com, localhost.com, localhost
  37. relayhost = [smtp.zoho.com]:587
  38. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  39. mailbox_size_limit = 0
  40. recipient_delimiter = +
  41. inet_interfaces = all
  42. inet_protocols = all
  43.  
  44.  
  45. # sender-dependent sasl authentication
  46. smtp_sender_dependent_authentication = yes
  47. sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
  48.  
  49. relayhost = [smtp.zoho.com]:587
  50.  
  51. # Enable SASL authentication
  52. smtp_sasl_auth_enable = yes
  53. # Disallow methods that allow anonymous authentication
  54. smtp_sasl_security_options = noanonymous
  55. # Location of sasl_passwd
  56. smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
  57.  
  58. smtp_sasl_mechanism_filter = plain
  59.  
  60. # Enable STARTTLS encryption
  61. smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
  62. smtp_use_tls = yes
  63. smtp_tls_security_level = encrypt
  64.  
  65. compatibility_level = 2
  66.  
  67. # per-sender authentication
  68. support@8bazaar.com support@8bazaar.com:xxxxxxxxxxxx
  69. sales@8bazaar.com sales@8bazaar.com:xxxxxxxxxxxx
  70.  
  71. # default relayhost
  72. [smtp.zoho.com]:587 admin@8bazaar.com:xxxxxxxxxxxxxx
  73.  
  74. admin@8bazaar.com [smtp.zoho.com]:587
  75. sales@8bazaar.com [smtp.zoho.com]:587
  76. support@8bazaar.com [smtp.zoho.com]:587
  77.  
  78. Mar 30 15:19:39 8bazaar postfix/pickup[21589]: A168346F685: uid=1000 from=<bazaar>
  79. Mar 30 15:19:39 8bazaar postfix/cleanup[21596]: A168346F685: message-id=<20180330151939.A168346F685@8bazaar.com>
  80. Mar 30 15:19:39 8bazaar postfix/qmgr[21588]: A168346F685: from=<bazaar@8bazaar.com>, size=625, nrcpt=1 (queue active)
  81. Mar 30 15:19:42 8bazaar postfix/smtp[21598]: A168346F685: to=<admin@8bazaar.com>, relay=smtp.zoho.com[204.141.32.118]:587, delay=2.5, delays=0/0/1.7/0.82, dsn=5.0.0, status=bounced (host smtp.zoho.com[204.141.32.118] said: 553 Relaying disallowed as Sales <sales@8bazaar.com> (in reply to end of DATA command))
  82. Mar 30 15:19:42 8bazaar postfix/cleanup[21596]: 2C71046F686: message-id=<20180330151942.2C71046F686@8bazaar.com>
  83. Mar 30 15:19:42 8bazaar postfix/bounce[21623]: A168346F685: sender non-delivery notification: 2C71046F686
  84. Mar 30 15:19:42 8bazaar postfix/qmgr[21588]: 2C71046F686: from=<>, size=2654, nrcpt=1 (queue active)
  85. Mar 30 15:19:42 8bazaar postfix/qmgr[21588]: A168346F685: removed
Add Comment
Please, Sign In to add comment