Advertisement
Guest User

Untitled

a guest
Mar 16th, 2016
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. ## General Postfix configuration
  2. # should be the default domain from your provider eg. "server100.provider.tld"
  3. mydomain = hodel.me
  4.  
  5. # should be different from $mydomain eg. "mail.$mydomain"
  6. myhostname = mail.$mydomain
  7.  
  8. mydestination = $myhostname,
  9. $mydomain,
  10. localhost.$myhostname,
  11. localhost.$mydomain,
  12. localhost
  13. mynetworks = 127.0.0.0/8
  14. inet_interfaces = all
  15. append_dot_mydomain = no
  16. biff = no
  17.  
  18. # Postfix performance settings
  19. default_destination_concurrency_limit = 20
  20. local_destination_concurrency_limit = 2
  21.  
  22. # SMTPD Settings
  23. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  24. smtpd_helo_required = yes
  25. smtpd_recipient_restrictions = permit_mynetworks,
  26. permit_sasl_authenticated,
  27. reject_unauth_destination,
  28. reject_unauth_pipelining,
  29. reject_non_fqdn_recipient
  30. smtpd_sender_restrictions = permit_mynetworks,
  31. reject_sender_login_mismatch,
  32. permit_sasl_authenticated,
  33. reject_unknown_helo_hostname,
  34. reject_unknown_recipient_domain,
  35. reject_unknown_sender_domain
  36. smtpd_client_restrictions = permit_mynetworks,
  37. permit_sasl_authenticated,
  38. reject_unknown_client_hostname
  39.  
  40. # Postfix 2.10 requires this option. Postfix < 2.10 ignores this.
  41. # The option is intentionally left empty.
  42. smtpd_relay_restrictions =
  43.  
  44. # Maximum size of Message in bytes (50MB)
  45. message_size_limit = 52428800
  46.  
  47. ## SASL Auth Settings
  48. smtpd_sasl_auth_enable = yes
  49. smtpd_sasl_local_domain = $myhostname
  50. broken_sasl_auth_clients = yes
  51.  
  52. # Virtual delivery settings
  53. virtual_mailbox_base = /var/customers/mail/
  54. virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
  55. virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
  56. virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
  57. smtpd_sender_login_maps = mysql:/etc/postfix/mysql-virtual_sender_permissions.cf
  58. virtual_uid_maps = static:2000
  59. virtual_gid_maps = static:2000
  60.  
  61. # Local delivery settings
  62. local_transport = local
  63. alias_maps = $alias_database
  64.  
  65. # Default Mailbox size, is set to 0 which means unlimited!
  66. mailbox_size_limit = 0
  67. virtual_mailbox_limit = 0
  68.  
  69. ### TLS settings
  70. ###
  71. ## TLS for outgoing mails from the server to another server
  72. #smtp_tls_security_level = may
  73. #smtp_tls_note_starttls_offer = yes
  74. ## TLS for email client
  75. #smtpd_tls_security_level = may
  76. #smtpd_tls_cert_file = /etc/ssl/server/hodel.me.pem
  77. #smtpd_tls_key_file = $smtpd_tls_cert_file
  78. #smtpd_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
  79. #smtpd_tls_loglevel = 1
  80. #smtpd_tls_received_header = yes
  81.  
  82. debugger_command =
  83. PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
  84. ddd $daemon_directory/$process_name $process_id & sleep 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement