Guest User

Untitled

a guest
May 5th, 2014
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. ##################
  2. # Default settings
  3. ##################
  4. biff = no
  5. append_dot_mydomain = no
  6. readme_directory = no
  7. smtpd_banner = $myhostname ESMTP $mail_name
  8.  
  9. ################
  10. # TLS parameters
  11. ################
  12. smtpd_sasl_auth_enable = yes
  13. broken_sasl_auth_clients = yes
  14. smtpd_sasl_authenticated_header = yes
  15. smtpd_use_tls = yes
  16. smtpd_tls_cert_file = /etc/ssl/self-signed/server.pem
  17. smtpd_tls_key_file = $smtpd_tls_cert_file
  18.  
  19. ###############
  20. # Main settings
  21. ###############
  22. myhostname = mail.gorix.com.ar
  23. alias_maps = hash:/etc/aliases
  24. alias_database = hash:/etc/aliases
  25. myorigin = $mydomain
  26. mydestination =
  27. mynetworks = 127.0.0.0/8
  28. mailbox_size_limit = 0
  29. recipient_delimiter = +
  30. inet_interfaces = all
  31.  
  32. ##################
  33. # Relayhost
  34. ##################
  35. smtp_sasl_auth_enable = yes
  36. smtp_sasl_security_options = noanonymous
  37. smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd
  38. smtp_tls_CAfile = /etc/postfix/cacert.pem
  39. smtp_use_tls = yes
  40. relayhost = mail.relayhost.com.ar
  41.  
  42. ##################
  43. # Virtual Settings
  44. ##################
  45. virtual_mailbox_base = /home/vmail
  46. virtual_transport = virtual
  47. virtual_alias_maps = mysql:/etc/postfix/sql/virtual_alias_maps.cf
  48. virtual_mailbox_domains = mysql:/etc/postfix/sql/virtual_domains_maps.cf
  49. virtual_mailbox_maps = mysql:/etc/postfix/sql/virtual_mailbox_maps.cf
  50. virtual_minimum_uid = 5000
  51. virtual_uid_maps = static:5000
  52. virtual_gid_maps = static:5000
  53.  
  54. # Domains for which we are a secondary MX
  55. relay_domains = mysql:/etc/postfix/sql/relay_domains_maps.cf
  56.  
  57. ##################
  58. # Sasl
  59. ##################
  60. smtpd_sender_restrictions =
  61. permit_mynetworks
  62. permit_sasl_authenticated
  63. permit_tls_clientcerts
  64.  
  65. ##################
  66. # NO open relay
  67. ##################
  68. smtpd_recipient_restrictions =
  69. permit_mynetworks
  70. permit_sasl_authenticated
  71. reject_unauth_destination
  72. reject_unlisted_recipient
  73. reject_unverified_recipient
  74.  
  75. ##################
  76. # Blocking certain attachments
  77. ##################
  78. header_checks = regexp:/etc/postfix/header_checks
  79. mime_header_checks = regexp:/etc/postfix/mime_header_checks
  80. message_size_limit = 20480000
  81.  
  82. ##################
  83. # RBL Lists
  84. ##################
  85. smtpd_recipient_restrictions =
  86. permit_mynetworks
  87. permit_sasl_authenticated
  88. reject_unauth_destination
  89. reject_unlisted_recipient
  90. reject_unverified_recipient
  91. reject_rbl_client zen.spamhaus.org
Advertisement
Add Comment
Please, Sign In to add comment