match envelope sender header against internal from header - postfix
by vincix from LinuxQuestions.org on (#51T14)
Hello,
I've been trying to find a way of forcing postfix to match the internal mail header sender (FROM:) against the envelope sender (MAIL FROM:), but I haven't been really successful. I have found a solution, which I've yet to test it fully, but I have some doubts about it, because I have to compile all sorts of things and so on, and so forth (https://github.com/magcks/milterfrom).
In any case, can this be achieved in a conventional way, as it were?
To be more clear: I'm trying to either rewrite the internal header so that it matches the envelope header or to reject emails whose internal headers don't match the mail from header.
I'm already using login maps (smtpd_sender_login_maps), so that authenticated users can use certain e-mail addresses in the envelope sender.
I've heard someone saying that you could do that with opendkim itself, that it could actually rewrite the headers, not only check them (http://manpages.ubuntu.com/manpages/...im.conf.5.html). In the man pages it says though that the feature is experimental. I guess because opendkim is used rather to check receving e-mails not outgoing ones.
Any ideas?
Thanks!


I've been trying to find a way of forcing postfix to match the internal mail header sender (FROM:) against the envelope sender (MAIL FROM:), but I haven't been really successful. I have found a solution, which I've yet to test it fully, but I have some doubts about it, because I have to compile all sorts of things and so on, and so forth (https://github.com/magcks/milterfrom).
In any case, can this be achieved in a conventional way, as it were?
To be more clear: I'm trying to either rewrite the internal header so that it matches the envelope header or to reject emails whose internal headers don't match the mail from header.
I'm already using login maps (smtpd_sender_login_maps), so that authenticated users can use certain e-mail addresses in the envelope sender.
I've heard someone saying that you could do that with opendkim itself, that it could actually rewrite the headers, not only check them (http://manpages.ubuntu.com/manpages/...im.conf.5.html). In the man pages it says though that the feature is experimental. I guess because opendkim is used rather to check receving e-mails not outgoing ones.
Any ideas?
Thanks!