Article 51T14 match envelope sender header against internal from header - postfix

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!latest?d=yIl2AUoC8zA latest?i=PYAv4cbRCf4:mMvISUCgrRQ:F7zBnMy latest?i=PYAv4cbRCf4:mMvISUCgrRQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=PYAv4cbRCf4:mMvISUCgrRQ:gIN9vFwPYAv4cbRCf4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments