Simplify Postfix configuration

This commit is contained in:
Disassembler 2017-12-19 11:01:37 +01:00
parent 5477e36dec
commit 1a5ad7ba15
2 changed files with 2 additions and 7 deletions

View File

@ -27,7 +27,7 @@ cp ${SOURCE_DIR}/etc/issue.template /etc/issue.template
cp ${SOURCE_DIR}/sbin/issue-gen /sbin/issue-gen
# Configure Postfix
# cp ${SOURCE_DIR}/etc/postfix/main.cf /etc/postfix/main.cf
cp ${SOURCE_DIR}/etc/postfix/main.cf /etc/postfix/main.cf
# Create a self-signed certificate
mkdir /etc/ssl/private

View File

@ -3,11 +3,6 @@ biff = no
compatibility_level = 2
inet_interfaces = loopback-only
inet_protocols = ipv4
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
recipient_delimiter = +
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls=yes
mynetworks = 127.0.0.0/8 172.17.0.0/24
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls=yes