Advertisement
Guest User

main.cf

a guest
Nov 9th, 2013
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. myorigin = /etc/mailname
  2. myhostname = mail.mydomain.com
  3.  
  4. mydomain = mydomain.com
  5. mydestination = $mydomain, $myhostname, localhost
  6.  
  7. smtpd_banner = $myhostname ESMTP $mail_name (PDP-11)
  8. biff = no
  9.  
  10. # appending .domain is the MUA's job.
  11. append_dot_mydomain = no
  12.  
  13. # Uncomment the next line to generate "delayed mail" warnings
  14. # delay_warning_time = 4h
  15. queue_run_delay = 300
  16.  
  17. readme_directory = /usr/share/doc/postfix
  18.  
  19. # TLS settings
  20. smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  21. smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  22. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  23. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  24. smtpd_tls_security_level = may
  25.  
  26. # Client auth
  27. smtpd_sasl_type = dovecot
  28. smtpd_sasl_path = private/auth
  29. smtpd_sasl_auth_enable = yes
  30.  
  31. broken_sasl_auth_clients = yes
  32. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  33.  
  34. # Smarthost
  35. relayhost = [mail.provider.com]:587
  36.  
  37. # Smarthost auth
  38. smtp_sasl_auth_enable = yes
  39. smtp_sasl_security_options = noanonymous
  40. smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
  41.  
  42. alias_maps = hash:/etc/aliases
  43. alias_database = hash:/etc/aliases
  44.  
  45. mynetworks = 127.0.0.0/8 192.168.0.0/24
  46.  
  47. mailbox_command = /usr/lib/dovecot/deliver
  48.  
  49. mailbox_size_limit = 0
  50. recipient_delimiter = +
  51. inet_interfaces = all
  52.  
  53. inet_protocols = ipv4
  54. html_directory = /usr/share/doc/postfix/html
  55.  
  56. # Transport Maps
  57. transport_maps = hash:/etc/postfix/transport
  58.  
  59. # Aliases
  60. sender_canonical_maps = hash:/etc/postfix/sender_canonical
  61.  
  62. local_recipient_maps =
  63.  
  64. # Spam and virus filter
  65. content_filter = smtp-amavis:[127.0.0.1]:10024
  66. receive_override_options = no_address_mappings
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement