Re: How to enforce 'From:' message header field to match the sasl authenticated username

2016-04-04 Thread Tobias
Ah yes, you're right. I have yet to find any obvious way directly in Postfix to either force the From: header to be rewritten to MAIL FROM envelope, or to check this same header against the envelope or authenticated username. I had some ideas of possibly using cleanup, trivial-rewrite, canoni

Re: How to enforce 'From:' message header field to match the sasl authenticated username

2016-04-03 Thread Hamy
Hi, thank you for your response. But i don't think that any of those actually apply to my situation. they're all restrictions applied to 'MAIL FROM:' envelope, and as I've said earlier, I've already taken care of that and it works fine. what I'm talking about is the 'From:' field of the message

Re: How to enforce 'From:' message header field to match the sasl authenticated username

2016-04-03 Thread Tobias
On 2016-04-03 04:35, Hamy wrote: Hi I am using /smtpd_sender_login_maps/ on submission port to enforce the envelope 'mail from:' command, and its working as expected. the problem however is that the user can still use any arbitrary 'From:' header field that she wants and opendkim will happily

How to enforce 'From:' message header field to match the sasl authenticated username

2016-04-02 Thread Hamy
HiI am using smtpd_sender_login_maps on submission port to enforce the envelope 'mail from:' command, and its working as expected. the problem however is that the user can still use any arbitrary 'From:' header field that she wants and opendkim will happily sign it. I am looking for a way to enf