On Sun, 2018-03-25 at 19:18 +0200, Robert Schetterer wrote: > Am 25.03.2018 um 18:44 schrieb mate...@mailbox.org: > > 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 > > > > > > do want something like this ? > > https://github.com/croessner/vrfydmn > > > Best Regards > MfG Robert Schetterer >
Marvelous tool !!! ! It should does what I need. Thank you Robert ! -- Best regards, Mate200