Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # See /usr/share/postfix/main.cf.dist for a commented, more complete version
- myhostname = mydomain.on.a.dyndns.provider
- # Debian specific: Specifying a file name will cause the first
- # line of that file to be used as the name. The Debian default
- # is /etc/mailname.
- myorigin = /etc/mailname
- mydestination =
- mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
- mailbox_size_limit = 0
- recipient_delimiter = +
- inet_interfaces = all
- relay_domains = $mydestination
- alias_maps = hash:/etc/aliases
- alias_database = hash:/etc/aliases
- smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
- # appending .domain is the MUA's job.
- append_dot_mydomain = no
- message_size_limit = 40000000
- notify_classes = bounce, resource, software, delay, policy
- show_user_unknown_table_name = no
- virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
- virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
- virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql
- -email2email.cf
- virtual_transport = lmtp:unix:private/dovecot-lmtp
- # TLS parameters
- smtpd_tls_cert_file = /etc/letsencrypt/live/mydomain/cert.pem
- smtpd_tls_key_file = /etc/letsencrypt/live/mydomain/privkey.pem
- smtpd_use_tls = yes
- smtpd_tls_auth_only = yes
- smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
- smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
- smtpd_tls_security_level = may
- smtpd_tls_protocols = !SSLv2, !SSLv3
- # SASL settings
- smtpd_sasl_type = dovecot
- smtpd_sasl_path = private/auth
- smtpd_sasl_auth_enable = yes
- # Relay over Google settings
- relayhost = smtp.gmail.com:587
- smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement