2015-03-31 15:27:54 +00:00
|
|
|
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
|
|
|
|
|
|
|
|
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
|
|
|
|
biff = no
|
|
|
|
append_dot_mydomain = no
|
|
|
|
readme_directory = no
|
|
|
|
|
2015-03-31 20:21:56 +00:00
|
|
|
# Basic configuration
|
2015-08-19 08:13:56 +00:00
|
|
|
# myhostname =
|
2015-03-31 15:27:54 +00:00
|
|
|
alias_maps = hash:/etc/aliases
|
|
|
|
alias_database = hash:/etc/aliases
|
2015-10-18 19:02:46 +00:00
|
|
|
mydestination =
|
2015-03-31 15:27:54 +00:00
|
|
|
relayhost =
|
2015-10-18 13:23:10 +00:00
|
|
|
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 172.17.0.0/16
|
2015-03-31 15:27:54 +00:00
|
|
|
mailbox_size_limit = 0
|
|
|
|
recipient_delimiter = +
|
|
|
|
inet_interfaces = all
|
|
|
|
inet_protocols = all
|
|
|
|
|
2015-03-31 20:21:56 +00:00
|
|
|
# TLS parameters
|
|
|
|
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
|
|
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
|
2015-08-18 18:43:42 +00:00
|
|
|
#smtpd_tls_CAfile=
|
|
|
|
#smtp_tls_CAfile=
|
2015-03-31 20:21:56 +00:00
|
|
|
smtpd_tls_security_level = may
|
|
|
|
smtpd_use_tls=yes
|
2015-03-31 15:27:54 +00:00
|
|
|
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
|
|
|
|
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
|
|
|
|
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
|
|
|
|
smtpd_sender_restrictions = permit_mynetworks
|
2015-03-31 20:21:56 +00:00
|
|
|
smtp_tls_security_level = may
|
|
|
|
|
|
|
|
# SASL
|
2015-03-31 15:27:54 +00:00
|
|
|
smtpd_sasl_auth_enable = yes
|
|
|
|
smtpd_sasl_path = smtpd
|
|
|
|
smtpd_sasl_type = cyrus
|
|
|
|
smtpd_sasl_security_options = noanonymous, noplaintext
|
|
|
|
smtpd_sasl_local_domain = $myhostname
|
2015-03-31 20:21:56 +00:00
|
|
|
cyrus_sasl_config_path = /etc/postfix/sasl
|
|
|
|
broken_sasl_auth_clients = yes
|
2015-03-31 15:27:54 +00:00
|
|
|
|
2015-03-31 20:21:56 +00:00
|
|
|
# Mail directory
|
2015-03-31 15:27:54 +00:00
|
|
|
virtual_mailbox_base = /var/mail
|
|
|
|
virtual_mailbox_domains = /etc/postfix/vhost
|
|
|
|
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
|
|
|
|
virtual_alias_maps = hash:/etc/postfix/virtual
|
|
|
|
virtual_uid_maps = static:5000
|
|
|
|
virtual_gid_maps = static:5000
|
|
|
|
|
|
|
|
# Additional option for filtering
|
|
|
|
content_filter = smtp-amavis:[127.0.0.1]:10024
|
|
|
|
|