Re: [EXIM] External address validation

Top Pagina
Delete this message
Reply to this message
Auteur: Philip Hazel
Datum:  
Aan: Al Fisher
CC: exim-users
Onderwerp: Re: [EXIM] External address validation
On Wed, 23 Jun 1999, Al Fisher wrote:

> I'm using an external database to validate incoming email addresses. I
> currently do it in sendmail like this:
>
> Mmymailer,     P=/usr/local/bin/procmail, F=lsDFMA5:/|@qSnE9, S=10/30,
> R=20/40,
>                 T=DNS/RFC822/X-Unix,
>                 A=procmail -t -f $g -m MYUSER=$u@$h /etc/procmailrc $h $g $u

>
> .. with a system-wide procmail recipe which calls another program which then
> validates the address using Oracle etc etc. I can do this easily becase I
> have the envelope address in the MYUSER variable.
>
> I'm pretty new to exim and I'm very impressed, particularly with its address
> re-writing capabilities, but I can't work out how to do this & I'm in a bit
> of a hurry. Any pointers in the right direction would be much appreciated.


Set receiver_verify; that passes incoming addresses through the
directors and routers. For special verification, you can set verify_only
on directors (or routers) and then get them to do what you want. For a
bespoke program, you would have to set up a smartuser director which
calls a Perl script in, say, the expansion of the new_address option.

However, if you can access your Oracle via LDAP, then you can just set
up an aliasfile director that does a direct LDAP lookup for
verification. Also check out no_more.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



--
*** Exim information can be found at http://www.exim.org/ ***