Merge pull request #31 from eqyiel/debug-option
Add debug option for verbose logging
This commit is contained in:
commit
5a851d837c
3 changed files with 17 additions and 2 deletions
10
default.nix
10
default.nix
|
@ -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 = [
|
imports = [
|
||||||
|
|
|
@ -53,7 +53,12 @@ in
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
#Extra Config
|
#Extra Config
|
||||||
#mail_debug = yes
|
${lib.optionalString debug ''
|
||||||
|
mail_debug = yes
|
||||||
|
auth_debug = yes
|
||||||
|
verbose_ssl = yes
|
||||||
|
''}
|
||||||
|
|
||||||
mail_access_groups = ${vmailGroupName}
|
mail_access_groups = ${vmailGroupName}
|
||||||
ssl = required
|
ssl = required
|
||||||
|
|
||||||
|
|
|
@ -51,8 +51,8 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
services.rmilter = {
|
services.rmilter = {
|
||||||
|
inherit debug;
|
||||||
enable = true;
|
enable = true;
|
||||||
#debug = true;
|
|
||||||
postfix.enable = true;
|
postfix.enable = true;
|
||||||
rspamd = {
|
rspamd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue