services.spamassassin.config
NixOS option
The SpamAssassin local.cf config If you are using this configuration: add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_ Then you can Use this sieve filter: require ["fileinto", "reject", "envelope"]; if header :contains "X-Spam-Flag" "YES" { fileinto "spam"; } Or this procmail filter: :0: * ^X-Spam-Flag: YES /var/vpopmail/domains/lastlog.de/js/.maildir/.spam/new To filter your messages based on the additional mail headers added by spamassassin.
type: strings concatenated with "\n"Default
""
Example
declared in: nixos/modules/services/mail/spamassassin.nixView source on NixOS/nixpkgs →'' #rewrite_header Subject [***** SPAM _SCORE_ *****] required_score 5.0 use_bayes 1 bayes_auto_learn 1 add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_ ''