New plugin for bounce validation #3444
Replies: 8 comments 19 replies
|
Interesting addition, thanks! We have been fighting fake bounces as well with custom plugins of our own. |
|
I like this, it seems like a good idea. About the header name, why did you settle on X-Null-Hash? Im mostly asking because RFC 6648 wants to deprecate using X- headers. I'm thinking something more like |
|
I had the same problem. My idea was to create a plugin header_storage that can store any data in an encrypted header (aes-256-cbc). It is useful for authenticating the email source, or storing internal metadata like counters to prevent internal loops. |
|
At the risk if bike shedding, does anyone else have thoughts about the name Null Hash? (If nobody else pipes up, then I defer to @lnedry's choice) The term null hash conveys nothing at all to me. If I were reading through email headers, I'd have no clue what a Potential Names• X-Null-Hash I include BV only because I've seen it used in RFC conversations on email working groups, so there is a precedence for it. |
|
Thanks for all of the suggestions! I'm working on a PR for the bounce plugin, merging my code. |
|
If the secret phrase is set to the default, should I log a warning? And maybe skip adding the verification header? |
|
Is there an easy way to detect if an email is inbound or outbound? I don't want to add a hash header to an inbound email. Nor do I want to validate an outbound mail. Is checking connection.relaying good enough? |
|
I'm almost done with merging my code with the bounce plugin but I've found a few things that are questionable. Instead of creating a bounce PR for all of my changes, I'll first make a couple small PRs to make sure these minor fixes are acceptable. I guess at this point we can close this discussion. |
Uh oh!
There was an error while loading. Please reload this page.
I wrote a plugin that I would like to contribute to Haraka. It adds a unique header to outbound emails which the bounce plugin can then use to verify that a bounce is legitimate. The header is an MD5 hash of the From, Date, and Message-ID headers plus a secret phrase.
https://github.com/lnedry/haraka-plugin-null_hash
If we can get this added to Haraka, I will create a PR for the bounce plugin to check for this header.
I've been using this plugin in my production servers for about six months without any issues.
All reactions