Skip to content

Rspamd trainer

services.rspamd-trainer.enable

Whether to enable Spam/ham trainer for rspamd. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/mail/rspamd-trainer.nix

services.rspamd-trainer.secrets

A list of files containing the various secrets. Should be in the format expected by systemd's EnvironmentFile directory. For the IMAP account password use PASSWORD = mypassword.

Type: list of path

Default

[ ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/mail/rspamd-trainer.nix

services.rspamd-trainer.settings

IMAP authentication configuration for rspamd-trainer. For supplying the IMAP password, use the secrets option.

Type: TOML value

Default

{ }

Example

{HOST = "localhost";USERNAME = "spam@example.com";INBOXPREFIX = "INBOX/";}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/mail/rspamd-trainer.nix