Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. main.cf
  2. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  3.  
  4.  
  5. # Debian specific: Specifying a file name will cause the first
  6. # line of that file to be used as the name. The Debian default
  7. # is /etc/mailname.
  8. #myorigin = /etc/mailname
  9.  
  10. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  11. biff = no
  12.  
  13. # appending .domain is the MUA's job.
  14. append_dot_mydomain = no
  15.  
  16. # Uncomment the next line to generate "delayed mail" warnings
  17. delay_warning_time = 4h
  18.  
  19. readme_directory = no
  20.  
  21. # TLS parameters
  22. smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  23. smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  24. smtpd_use_tls=yes
  25. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  26. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  27.  
  28. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  29. # information on enabling SSL in the smtp client.
  30.  
  31. myhostname = tessa
  32. alias_maps = hash:/etc/aliases
  33. alias_database = hash:/etc/aliases
  34. myorigin = /etc/mailname
  35. mydestination = tessa, localhost.localdomain, localhost
  36. relayhost =
  37. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  38. mailbox_command = procmail -a "$EXTENSION"
  39. mailbox_size_limit = 0
  40. recipient_delimiter = +
  41. inet_interfaces = all
  42.  
  43.  
  44. virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
  45. virtual_gid_maps = static:5000
  46. virtual_mailbox_base = /mnt/raid/www_root/mail
  47. virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
  48. virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
  49. virtual_minimum_uid = 5000
  50. virtual_transport = virtual
  51. virtual_uid_maps = static:5000
  52.  
  53. broken_sasl_auth_clients = yes
  54. smtpd_recipient_restrictions =
  55. permit_mynetworks,
  56. permit_sasl_authenticated,
  57. reject_non_fqdn_hostname,
  58. reject_non_fqdn_sender,
  59. reject_non_fqdn_recipient,
  60. reject_unauth_destination,
  61. reject_unauth_pipelining,
  62. reject_invalid_hostname
  63. smtpd_sasl_auth_enable = yes
  64. smtpd_sasl_local_domain = $myhostname
  65. smtpd_sasl_security_options = noanonymous
  66.  
  67. mysql_virtual_alias_maps.cf
  68. user = postfix
  69. password = <mysql pass>
  70. hosts = localhost
  71. dbname = postfix
  72. query = SELECT goto FROM alias WHERE address = '%s'
  73.  
  74. mysql_virtual_domains_maps.cf
  75. user = mail
  76. password = <mysql pass>
  77. hosts = 127.0.0.1
  78. dbname = mail
  79. table = domain
  80. select_field = domain
  81. where_field = domain
  82. additional_conditions = and backupmx = '0' and active = '1'
  83.  
  84. mysql_virtual_mailbox_maps.cf
  85. user = mail
  86. password = <mysql pass>
  87. hosts = 127.0.0.1
  88. dbname = mail
  89. table = mailbox
  90. select_field = maildir
  91. where_field = username
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement