mox/smtpserver
Mechiel Lukkien 73bfc58453
fix handling of reputation for messages that were moved out of the rejects mailbox
the idea of the rejects mailbox is to show messages that were rejected.  you can
look there, and if you see a message that should have been delivered, you can
move it to your inbox or archive.  next time a deliver attempt by that user is
attempted, they should be accepted, because you corrected the reject.  but that
wasn't happening, because the reputation-calculation is per-delivery mailbox
(e.g. Inbox) and we look at MailboxOrigID when calculating the reputation. and
that was set to the Rejects mailbox id, so the message wasn't considered. the
same applies to moving messages from Rejects to Junk (to train your filter).

we now keep track of a MailboxDestinedID, that is set to the mailbox that we
would have delivered to if we would not have rejected the message. then, when a
message is moved out of the Rejects mailbox, we change MailboxOrigID to
MailboxDestinedID. this essentially makes the message look like it was
delivered normally.
2023-03-03 13:19:27 +01:00
..
alignment.go mox! 2023-01-30 14:27:06 +01:00
analyze.go fix handling of reputation for messages that were moved out of the rejects mailbox 2023-03-03 13:19:27 +01:00
authresults.go mox! 2023-01-30 14:27:06 +01:00
authresults_test.go mox! 2023-01-30 14:27:06 +01:00
dnsbl.go mox! 2023-01-30 14:27:06 +01:00
dsn.go consistently use log.Check for logging errors that "should not happen", don't influence application flow 2023-02-16 13:22:00 +01:00
error.go mox! 2023-01-30 14:27:06 +01:00
fuzz_test.go mox! 2023-01-30 14:27:06 +01:00
limitwriter.go mox! 2023-01-30 14:27:06 +01:00
mx.go mox! 2023-01-30 14:27:06 +01:00
parse.go add scram-sha-256 for smtp 2023-01-31 00:22:26 +01:00
parse_test.go mox! 2023-01-30 14:27:06 +01:00
rejects.go mox! 2023-01-30 14:27:06 +01:00
reputation.go improve training of junk filter 2023-02-11 23:00:12 +01:00
reputation_test.go improve training of junk filter 2023-02-11 23:00:12 +01:00
server.go change mox to start as root, bind to network sockets, then drop to regular unprivileged mox user 2023-02-27 12:19:55 +01:00
server_test.go improve training of junk filter 2023-02-11 23:00:12 +01:00