diff --git a/Dockerfile b/Dockerfile index af6c4151..bbb90ea3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -163,6 +163,9 @@ RUN chmod 755 /etc/init.d/postgrey && \ # Copy PostSRSd Config COPY target/postsrsd/postsrsd /etc/default/postsrsd +# Copy shared ffdhe params +COPY target/shared/ffdhe4096.pem /etc/postfix/shared/ffdhe4096.pem + # Enables Amavis COPY target/amavis/conf.d/* /etc/amavis/conf.d/ RUN sed -i -r 's/#(@| \\%)bypass/\1bypass/g' /etc/amavis/conf.d/15-content_filter_mode && \ diff --git a/target/dovecot/10-ssl.conf b/target/dovecot/10-ssl.conf index 25213a90..7b4c4ec7 100644 --- a/target/dovecot/10-ssl.conf +++ b/target/dovecot/10-ssl.conf @@ -43,9 +43,8 @@ ssl_key = SET WARNING IN LOGS - # todo : remove dhe generation + # check ffdhe params are inchanged + repo_checksum=$(sha512sum "$(pwd)/target/shared/ffdhe4096.pem" | awk '{print $1}') + mozilla_checksum=$(curl https://ssl-config.mozilla.org/ffdhe4096.txt -s | sha512sum | awk '{print $1}') + assert_equal "$repo_checksum" "$mozilla_checksum" + run echo "$repo_checksum" + refute_output '' # checksum must not be empty + + # by default, ffdhe4096 should be used + docker_dovecot_checksum=$(docker exec mail sha512sum /etc/dovecot/dh.pem | awk '{print $1}') + docker_postfix_checksum=$(docker exec mail sha512sum /etc/postfix/dhparams.pem | awk '{print $1}') + assert_equal "$docker_dovecot_checksum" "$repo_checksum" + assert_equal "$docker_postfix_checksum" "$repo_checksum" } #