New plugin for bounce validation #3444
Replies: 6 comments 16 replies
-
Interesting addition, thanks! We have been fighting fake bounces as well with custom plugins of our own. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Thanks for all of the suggestions! I'm working on a PR for the bounce plugin, merging my code. |
Beta Was this translation helpful? Give feedback.
-
If the secret phrase is set to the default, should I log a warning? And maybe skip adding the verification header? |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions