[EMAIL PROTECTED] wrote:
> but when email comes is via smtp it just accepts the mail .  I am sure
> it has something to do with my ACL setup I am including my ldap setup
> file maybe someone can help me. 

Consider LDAP_LOOKUP_PEOPLE and LDAP_LOOKUP_GROUPS are marcos for your
LDAP lookups (user mailboxes and lists), a deny statement could look
like this (not tested!):

 deny message = recipient unknown 
      domains = +local_domains 
      !condition = \
      ${if or { {match {LDAP_LOOKUP_PEOPLE}{.+}}\
                {match {LDAP_LOOKUP_GROUPS}{.+}}\     
              }\   
              {1}{0}\ 
       }

Place it at the top of your RCPT-ACL. 

- oliver

>  
> 
> When i run 
> ./exim -bv [EMAIL PROTECTED]
> [EMAIL PROTECTED] failed to verify:
> User unknown
> 
> but when email comes is via smtp it just accepts the mail .  I am sure it 
> has something to do with my ACL setup I am including my ldap setup  file 
> maybe someone can help me. 
> 
> LDAP_USER_MAIL_RCPT = \
>   ldap://ldap.domain.com/o=people ,o=domain?uid,mailhost?sub?\
>   (&\
>  (|([EMAIL PROTECTED])([EMAIL PROTECTED]))\
>   )
> 
> 
> ldap_user:
>   driver = redirect
>   domains = domain.com
>   allow_fail
>   allow_defer
>   forbid_file
>   forbid_pipe
>   redirect_router = ldap_user_okay
>   data = ${lookup ldap {LDAP_USER_MAIL_RCPT}\
>     [EMAIL PROTECTED]:fail: User unknown}}
>  
> ldap_user_okay:
>   driver = manualroute
>   transport = remote_smtp
>   route_list =  domain.com ${extract{mailhost}{$address_data}}
> 
> Carinus


-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to