diff --git a/Dockerfile b/Dockerfile index 91483e6f..5743d79e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -103,6 +103,7 @@ RUN sed -i 's/START_DAEMON=no/START_DAEMON=yes/g' /etc/default/fetchmail # Configures Postfix COPY target/postfix/main.cf target/postfix/master.cf /etc/postfix/ RUN echo "" > /etc/aliases +RUN openssl dhparam -out /etc/postfix/dhparams.pem 2048 # Configuring Logs RUN sed -i -r "/^#?compress/c\compress\ncopytruncate" /etc/logrotate.conf && \ diff --git a/target/postfix/main.cf b/target/postfix/main.cf index c94b093b..0a79adc7 100644 --- a/target/postfix/main.cf +++ b/target/postfix/main.cf @@ -6,11 +6,11 @@ append_dot_mydomain = no readme_directory = no # Basic configuration -# myhostname = +# myhostname = alias_maps = texthash:/etc/aliases alias_database = texthash:/etc/aliases -mydestination = -relayhost = +mydestination = +relayhost = mynetworks = 127.0.0.0/8 [::1]/128 [fe80::]/64 mailbox_size_limit = 0 recipient_delimiter = + @@ -33,6 +33,7 @@ smtp_tls_protocols=!SSLv2,!SSLv3 smtpd_tls_mandatory_ciphers = high smtpd_tls_mandatory_protocols = !SSLv2,!SSLv3 smtpd_tls_exclude_ciphers = aNULL, LOW, EXP, MEDIUM, ADH, AECDH, MD5, DSS, ECDSA, CAMELLIA128, 3DES, CAMELLIA256, RSA+AES, eNULL +smtpd_tls_dh1024_param_file = /etc/postfix/dhparams.pem smtpd_tls_CApath = /etc/ssl/certs smtp_tls_CApath = /etc/ssl/certs