I have just enabled plus-addressing with my instance of hMailServer. Now, whenever I sign up for an online service, I can easily provide a unique email address for that service. This is part spam-prevention and part curiosity. If the unique email address I provide starts being spammed, I can simply turn it off and know exactly where my address was leaked from.
Now, the problem arises in that some incoming spam emails do not specify a To:
header, making it impossible (without reading the SMTP logs) to find out which email address is the intended recipient.
I know that hMail supports scripted extensions for mail processing (See OnAcceptMessage for example).
So then, with hMailServer; In the case where the incoming mail is from an unauthenticated sender, is it possible to add the parameter of the SMTP command RCPT TO:
as a header to the incoming email?