Advertisement
Guest User

main.cf

a guest
Mar 17th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. myorigin = /etc/mailname
  2. smtpd_banner = $myhostname ESMTP $mail_name
  3. biff = no
  4. append_dot_mydomain = no
  5. readme_directory = no
  6. mydestination =
  7. relayhost =
  8. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  9. mynetworks_style = host
  10. mailbox_size_limit = 0
  11. virtual_mailbox_limit = 0
  12. recipient_delimiter = +
  13. inet_interfaces = all
  14. message_size_limit = 0
  15.  
  16. # SMTP Authentication (SASL)
  17.  
  18. smtpd_sasl_auth_enable = yes
  19. broken_sasl_auth_clients = yes
  20. smtpd_sasl_security_options = noanonymous
  21. smtpd_sasl_local_domain =
  22.  
  23. # Encrypted transfer (SSL/TLS)
  24.  
  25. smtp_use_tls = yes
  26. smtpd_use_tls = yes
  27. smtpd_tls_cert_file = /etc/ssl/private/mail.romeomikefox.co.uk.crt
  28. smtpd_tls_key_file = /etc/ssl/private/mail.romeomikefox.co.uk.key
  29. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  30. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  31.  
  32. # Basic SPAM prevention
  33.  
  34. smtpd_helo_required = yes
  35. smtpd_delay_reject = yes
  36. disable_vrfy_command = yes
  37. smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, permit
  38. smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
  39.  
  40. # Force incoming mail to go through Amavis
  41.  
  42. content_filter = amavis:[127.0.0.1]:10024
  43. receive_override_options = no_address_mappings
  44.  
  45. # Virtual user mappings
  46.  
  47. alias_maps = hash:/etc/aliases
  48. alias_database = hash:/etc/aliases
  49. virtual_mailbox_base = /var/spool/mail/virtual
  50. virtual_mailbox_maps = mysql:/etc/postfix/maps/user.cf
  51. virtual_uid_maps = static:5000
  52. virtual_gid_maps = static:5000
  53. virtual_alias_maps = mysql:/etc/postfix/maps/alias.cf
  54. virtual_mailbox_domains = mysql:/etc/postfix/maps/domain.cf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement