nixos-mailserver/mail-server
Maximilian Bosch bd99079363 mail-server/dovecot: also learn spam/ham on APPEND
The current configuration doesn't work when moving spam from the INBOX
to Junk on a local maildir and then syncing the result to the IMAP
server with `mbsync(1)`. This is because `mbsync(1)` doesn't support a
mvoe-detection[1] (i.e. an IMAP MOVE which subsequently causes a Sieve
COPY according to RFC6851 which then triggers report{h,sp}am.sieve), but
instead sends `APPEND` (and removes the message in the src mailbox after
that).

Tested on my own mailserver that this fixes spam learning.

This doesn't work the other way round though because `APPEND` doesn't
have an origin. However, learning mails as spam happens more often than
learning spam as ham, so this is IMHO still useful.

[1] https://sourceforge.net/p/isync/mailman/isync-devel/thread/87y2p1tihz.fsf%40ericabrahamsen.net/#msg37030483
2023-05-23 19:49:59 +00:00
..
dovecot Remove use of the deprecated string type 2019-09-22 13:32:37 +00:00
borgbackup.nix fix conditions for enabling services 2018-05-22 23:18:55 +02:00
clamav.nix Remove non longer supported configurations (<21.05) 2021-07-24 09:57:44 +02:00
common.nix Do not hardcode paths to acme certificates 2020-11-30 19:49:48 +00:00
debug.nix Set mailserver.policydSPFExtraConfig in a debug module 2020-12-23 09:39:55 +01:00
dovecot.nix mail-server/dovecot: also learn spam/ham on APPEND 2023-05-23 19:49:59 +00:00
environment.nix Move from rmilter to rspamd #25 2018-06-29 21:36:34 +09:30
kresd.nix kresd: no need to explicitly set nameserver 2021-06-03 05:58:42 +00:00
monit.nix fix conditions for enabling services 2018-05-22 23:18:55 +02:00
networking.nix Make opening ports in the firewall optional 2021-02-09 21:09:36 +01:00
nginx.nix acme: Switch from postRun to reloadServices to fix hangs. Fixes #232 2022-05-24 20:11:52 +00:00
opendkim.nix opendkim: make public key world-readable 2023-05-14 07:11:48 +00:00
post-upgrade-check.nix fix conditions for enabling services 2018-05-22 23:18:55 +02:00
postfix.nix Ensure locally-delivered mails have the X-Original-To header 2021-08-11 12:20:16 +00:00
rsnapshot.nix fix conditions for enabling services 2018-05-22 23:18:55 +02:00
rspamd.nix rspamd: allow configuring dmarc reporting 2022-11-27 20:34:38 +00:00
systemd.nix Move indexDir option to the mailserver scope 2021-04-07 22:22:38 +02:00
users.nix Make vmail_user a system user 2021-04-18 15:41:05 +02:00