Re: [exim] How to compare FROM header against SMTP accountau…

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Marcin Mirosław
Data:  
Para: exim-users
Asunto: Re: [exim] How to compare FROM header against SMTP accountauthenticated?
W dniu 2010-04-11 22:29, Sergio pisze:
> Hi all,
> first of all, sorry if this question has been asked before and hope you can
> guide on where to get this
>
> In my server SMTP has to be authenticated in order deliver emails. But I
> want to deny any SMTP deliver if the FROM is not the same as the account
> that has authenticated the deliver, is it possible?


(resended to maillist)
Hi,
I'm using acl like this:
acl_check_data:
[...]
deny
 authenticated   = *
 condition = ${if or {{ !eqi{$authenticated_id} {$sender_address} }\
   { !eqi{$authenticated_id} {${address:$header_From:}} }\
 }\
 }
 message         = Blad: nadawca jest inny niz uzytkownik. / You must
send as the ID you authenticate with.


Regards,

--
http://en.wikipedia.org/wiki/Katyn_massacre
http://edition.cnn.com/2010/WORLD/europe/04/10/poland.president.plane.crash.analysis/index.html?hpt=C1