haraka / Haraka

A fast, highly extensible, and event driven SMTP server
https://haraka.github.io
MIT License
5.11k stars 660 forks source link

Adding spam complaints, abuse and list-unsubscribe, click tracking #3380

Closed ravivgolov closed 1 month ago

ravivgolov commented 5 months ago

Hello,

I have already searched, but I haven't found any way to integrate incoming email tracking, spam complaints, abuse reports, list-unsubscribe requests, and click tracking for security. Since Haraka is mainly good at spam filtering, these additional features can enhance the spam filter's effectiveness by over 300%.

If there is any solution, I would pay to integrate this into Haraka,

Thank you.

piboistudios commented 3 months ago

Haraka itself is just an SMTP server, so most of the things here mentioned are out of scope, except list unsubscribe, if I'm not mistaken. Click-tracking for sent e-mails will always be difficult because most vendors will remove any external references from the email and replace them with cached versions, so when the recipient receives the email and hits what would have been a reference to a click-tracking URL, it will actually be a cached version stored on the recipient mail server side, and thus won't notify you when the link is actually clicked, only when the mail is actually processed (which may or may not have anything to do with interaction on the recipient side).

baudehlo commented 3 months ago

I once built something like this using the body filter plugin technology (that's what I wrote it for originally). Basically it would remember the email contents and then add a link to mark it as spam. It didn't work that well, but I didn't spend a lot of time on it.

The problem is this sort of thing needs to be part of the email client, not the SMTP server.

In short: Non-trivial, you can make it work, good luck.

On Sat, Aug 3, 2024 at 11:34 AM Gabriel Hayes @.***> wrote:

Haraka itself is just an SMTP server, so most of the things here mentioned are out of scope, except list unsubscribe, if I'm not mistaken. Click-tracking for sent e-mails will always be difficult because most vendors will remove any external references from the email and replace them with cached versions, so when the recipient receives the email and hits what would have been a reference to a click-tracking URL, it will actually be a cached version stored on the recipient mail server side, and thus won't notify you when the link is actually clicked, only when the mail is actually processed (which may or may not have anything to do with interaction on the recipient side).

— Reply to this email directly, view it on GitHub https://github.com/haraka/Haraka/issues/3380#issuecomment-2266822249, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFBWY2SO5YLM7YROIJNYPDZPT2A7AVCNFSM6AAAAABKG2GX5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRWHAZDEMRUHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>