Closed brueckner closed 9 months ago
You are looking for this:
https://gitlab.roessner-net.de/croessner/verifyemail
Right? If so, I would close this PR ;-)
Well, not exactly (I think, unless I misunderstood the description). We're specifically looking for something to compare the domains, not the exact email address. However, this thing seems to be a more suited option for the verifyemail milter. Maybe it's worth porting?
Anyway, thanks for your work! :)
Sorry for the long delay. I have not done with the code for a very long time. Thanks for all your PRs!
Contrary to the current options (LDAP, SQL or file based) we just needed a way to compare the
From:
header domain with the envelope sender domain. In case of a mismatch (likebad@intentions.com
trying to send with aFrom:
address likesupport@apple.com
), the mail should be rejected.I added a new option
-A
or—sender-alignment
to the milter. Using the sender alignment option, you can run the milter without LDAP, SQL or a domain file. It will do the comparison and reject the mail in case of a mismatch betweenFrom:
header domain and envelope sender domain.We thought this may be helpful for other people, too. Happy about any suggestions or improvements!