Advertisement
Guest User

Untitled

a guest
May 24th, 2014
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 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 = MYDOMAIN
  32. alias_maps = hash:/etc/aliases
  33. alias_database = hash:/etc/aliases
  34. myorigin = /etc/mailname
  35. #mydestination = MYDOMAIN, localhost.MYDOMAIN, ubuntu-server, localhost.localdomain, localhost
  36. mydestination = localhost
  37. relayhost =
  38. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  39. mailbox_command = procmail -a "$EXTENSION"
  40. mailbox_size_limit = 0
  41. recipient_delimiter = +
  42. inet_interfaces = all
  43.  
  44. #######################
  45. #below added from arch wiki
  46.  
  47. virtual_alias_domains = MYDOMAIN
  48. virtual_alias_maps = proxy:mysql:/etc/postfix/virtual_alias_maps.cf
  49. virtual_mailbox_domains = proxy:mysql:/etc/postfix/virtual_domains_maps.cf
  50. virtual_mailbox_maps = proxy:mysql:/etc/postfix/virtual_mailbox_maps.cf
  51. virtual_mailbox_base = /home/vmail
  52. virtual_mailbox_limit = 512000000
  53. virtual_minimum_uid = 5000
  54. virtual_transport = virtual
  55. virtual_uid_maps = static:5000
  56. virtual_gid_maps = static:5000
  57. local_transport = virtual
  58. local_recipient_maps = $virtual_mailbox_maps
  59. transport_maps = hash:/etc/postfix/transport
  60.  
  61. smtpd_sasl_auth_enable = yes
  62. smtpd_sasl_type = dovecot
  63. smtpd_sasl_path = /var/run/dovecot/auth-client
  64. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  65. smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  66. smtpd_sasl_security_options = noanonymous
  67. smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
  68. smtpd_tls_auth_only = yes
  69. smtpd_tls_cert_file = /etc/ssl/private/server.crt
  70. smtpd_tls_key_file = /etc/ssl/private/server.key
  71. smtpd_sasl_local_domain = $mydomain
  72. broken_sasl_auth_clients = yes
  73. smtpd_tls_loglevel = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement