By default this includes private network subnets, but those should really use authentication instead, if they want to skip checks. Closes: #326
25 lines
593 B
Nix
25 lines
593 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
{
|
|
# Testing eval failures that result from stateVersion assertion is out of scope
|
|
mailserver.stateVersion = 999;
|
|
|
|
# Enable second CPU core
|
|
virtualisation.cores = lib.mkDefault 2;
|
|
|
|
services.rspamd = {
|
|
# Don't make tests block on DNS requests that will never succeed
|
|
locals."options.inc".text = ''
|
|
dns {
|
|
nameservers = ["127.0.0.1"];
|
|
timeout = 0.0s;
|
|
retransmits = 0;
|
|
}
|
|
'';
|
|
# Relax `local_addrs` definition to default for tests, so mail doesn't get flagged as spam
|
|
overrides."options.inc".enable = false;
|
|
};
|
|
}
|