mailnix/tests/common/server.nix
Thomas Preisner f5bf117314 tests: rspamd: Fix sieve tests
Currently, the sieve tests only check whether the sieve scripts were
invoked. However, they could still fail due to wrong permissions, etc.
This commit enables additional logging output for dovecot2 and refines
the sieve tests to check for error messages.
2025-08-12 09:38:36 +02:00

17 lines
393 B
Nix

{lib, ...}: {
imports = [./../../mailsystem];
config = {
virtualisation.memorySize = 1024;
mailsystem = {
enable = true;
certificateScheme = "selfsigned";
};
# Enable more verbose logging (required for, e.g., sieve testing)
services.dovecot2.extraConfig = lib.mkAfter ''
mail_debug = yes
auth_debug = yes
verbose_ssl = yes
'';
};
}