Re: [Exim] Using ACLs to verify RCPT TO

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nico Erfurth
Dátum:  
Címzett: ISP List
CC: exim-users
Tárgy: Re: [Exim] Using ACLs to verify RCPT TO
ISP List wrote:

> So, what I would like exim to do is to be able to do a LDAP or SQL lookup
> during the SMTP negotiation phase (following the RCPT TO) to determine if
> the recipient address is valid or not. Based on my research, using exim
> 4.x's ACL facility seems to be the best approach, but I'm a little unclear
> on the proper syntax as the manual does not give any examples when using
> LDAP or SQL. Should I be using the "recipients = <address list>"
> condition, or make up a custom "condition = " of my own?
>
> Any pointers would be much appreciated.


deny message = Our domain, but user unknown
      domains = +localdomains
      !recipients = mysql;select 1 from users where \
                           email='$local_part@$domain'


This should work when you place it in a strategic good way in your
rcpt-acl (before any RBL-checks, etc.)

Nico