services.prometheus.exporters.mail.configuration.servers
List of servers that should be probed.
Note: if your mailserver has rspamd(8) configured, it can happen that emails from this exporter are marked as spam.
It's possible to work around the issue with a config like this:
{
services.rspamd.locals."multimap.conf".text = ''
ALLOWLIST_PROMETHEUS {
filter = "email:domain:tld";
type = "from";
map = "${pkgs.writeText "allowmap" "domain.tld"}";
score = -100.0;
}
'';
}
- Type
list of (submodule)- Default
[ ]- Example
[ { name = "testserver"; server = "smtp.domain.tld"; port = 587; from = "exporteruser@domain.tld"; to = "exporteruser@domain.tld"; detectionDir = "/path/to/Maildir/new"; } ]- Declared
- <nixpkgs/nixos/modules/services/monitoring/prometheus/exporters.nix>