Merge pull request #31 from eqyiel/debug-option

Add debug option for verbose logging
This commit is contained in:
Robin Raymond 2017-11-15 07:52:16 +01:00 committed by GitHub
commit 5a851d837c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 2 deletions

View file

@ -256,6 +256,16 @@ in
'';
};
debug = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable verbose logging for mailserver related services. This
intended be used for development purposes only, you probably don't want
to enable this unless you're hacking on nixos-mailserver.
'';
};
};
imports = [

View file

@ -53,7 +53,12 @@ in
extraConfig = ''
#Extra Config
#mail_debug = yes
${lib.optionalString debug ''
mail_debug = yes
auth_debug = yes
verbose_ssl = yes
''}
mail_access_groups = ${vmailGroupName}
ssl = required

View file

@ -51,8 +51,8 @@ in
};
services.rmilter = {
inherit debug;
enable = true;
#debug = true;
postfix.enable = true;
rspamd = {
enable = true;