Skip to content

Commit

Permalink
dovecot2: added ssl_dh using security.dhparams
Browse files Browse the repository at this point in the history
  • Loading branch information
qknight committed Apr 25, 2018
1 parent 4c7635e commit 0d914ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/services/email/nixcloud-email.nix
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,13 @@ in {
email = null;
reload = [ "postfix.service" "dovecot2.service" ];
};
# https://github.com/nixcloud/nixcloud-webservices/issues/21
security.dhparams = {
enable = true;
params = {
dovecot2 = 4096;
};
};
})

# FIXME: when using nixcloud DNS we want the pubkey during nix evaluation time to generate
Expand Down Expand Up @@ -437,6 +444,8 @@ in {
];

extraConfig = ''
# https://github.com/nixcloud/nixcloud-webservices/issues/21
ssl_dh = </var/lib/dhparams/dovecot2.pem
mail_home = /var/lib/virtualMail/%d/users/%n/
passdb {
Expand Down

0 comments on commit 0d914ec

Please sign in to comment.