Add Postfix configuration, restrict to IPv4, related to #121

This commit is contained in:
Disassembler 2017-10-14 12:07:15 +02:00
parent 0fdc256b29
commit 4fcaf89aa8
2 changed files with 19 additions and 0 deletions

View File

@ -71,6 +71,12 @@ echo postfix postfix/relayhost string "" | debconf-set-selections
# Install packages
apt-get -y --no-install-recommends install postfix
# Configure Postfix
cp ${SOURCE_DIR}/basic/etc/postfix/main.cf /etc/postfix/main.cf
# Restart services
systemctl restart postfix
#####
# LXC

13
basic/etc/postfix/main.cf Normal file
View File

@ -0,0 +1,13 @@
append_dot_mydomain = no
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
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls=yes