Re: [Exim] LDAP verify during SMTP dialogue

Página Inicial
Delete this message
Reply to this message
Autor: Philipp Sacha
Data:  
Para: BlackHawk
CC: exim-users
Assunto: Re: [Exim] LDAP verify during SMTP dialogue
BlackHawk wrote:
> Hi all,
>
> i'm using exim 3.35 with director configuration to chech my Domino
> users:
>
> local_not_exist:
>         condition = "${if or {\
>         {!eq {${lookup ldap
> {ldap:///c=IT?mail?sub?(&(shortname=$local_part))} {$local_part}}}{}}\
>         {!eq {${lookup ldap
> {ldap:///c=IT?mail?sub?(&(mail=$local_part@$domain))}
> {$local_part@$domain}}}{}}\
>         }{0}{1}}"
>   driver = smartuser
>   transport = rcpt_not_found_autoreply

>
> I'm going to upgrade to 4.24... can i do this test during SMTP dialogue?
>
> Thanks
>
> Riccardo
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>


You can write the checks for recipients who reside in a ldap database
in an acl_smtp_rcpt section. I am using exim 4.22 with the following
section in my acl to check recpients:


   accept  domains   = +local_domains
           endpass
           message   = unknown user
           condition =  ${lookup ldap {ldap:///LDAP_BASE??sub?\
                                       (|(mail=$local_part@$domain)\


(mailalias=$local_part@$domain))\
                                      }{yes}{no}\
                         }
           verify    = recipient



Regards,
Philipp



--
Philipp Sacha mailto:psacha@blue-cable.net