Hello everyone !

I'm trying to achieve a simple thing. Then user logins via SASL and sends mail, 
I want postfix to check that SASL login
is identical to MAIL FROM filed.

As I can see, I can do that with 'reject_sender_login_mismatch', but usage of 
this option implies usage of
'smtpd_sender_login_maps'. 
The problem is that I use MS AD as user list provider, so firstly, I thought 
about some tricky filter to achieve this,
but I can't think up something workable. Second option is to create some hash 
'file' and fill it with maps, but truly
speaking I don't want to do this because it's a manual work. Of course, I may 
do some script to download info from AD
and put it to the file. However, maybe another options exist too ?

I don't need user to be able to write as another user, so simple variable 
comparison like '$sasl_user == $mail_from'
would be a prefect match.


Thanks in advance. 
-- 
Best regards,
Mate200

Reply via email to