Merge branch 'v2.1-bugfixes'
This commit is contained in:
commit
22caa012d6
2 changed files with 8 additions and 4 deletions
|
@ -125,7 +125,7 @@ in
|
||||||
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
|
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
|
||||||
|
|
||||||
# quota
|
# quota
|
||||||
smtpd_recipient_restrictions = check_policy_service inet:mailstore.example.com:12340
|
smtpd_recipient_restrictions = check_policy_service inet:localhost:12340
|
||||||
|
|
||||||
# TLS settings, inspired by https://github.com/jeaye/nix-files
|
# TLS settings, inspired by https://github.com/jeaye/nix-files
|
||||||
# Submission by mail clients is handled in submissionOptions
|
# Submission by mail clients is handled in submissionOptions
|
||||||
|
|
|
@ -41,9 +41,13 @@ let
|
||||||
createDhParameterFile =
|
createDhParameterFile =
|
||||||
''
|
''
|
||||||
# Create a dh parameter file
|
# Create a dh parameter file
|
||||||
${pkgs.openssl}/bin/openssl \
|
if [ ! -f "''${cfg.certificateDirectory}/dh.pem" ]
|
||||||
dhparam ${builtins.toString cfg.dhParamBitLength} \
|
then
|
||||||
> "${cfg.certificateDirectory}/dh.pem"
|
mkdir -p "${cfg.certificateDirectory}"
|
||||||
|
${pkgs.openssl}/bin/openssl \
|
||||||
|
dhparam ${builtins.toString cfg.dhParamBitLength} \
|
||||||
|
> "${cfg.certificateDirectory}/dh.pem"
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
createDomainDkimCert = dom:
|
createDomainDkimCert = dom:
|
||||||
|
|
Loading…
Reference in a new issue