Re: [exim] CDB lookups to verify addresses

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Matthew Byng-Maddick
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] CDB lookups to verify addresses
On Thu, Oct 05, 2006 at 10:47:18AM +0100, Alex_Clark@??? wrote:
[create the cdb file]
> This then creates a cdb file with entries in the format, e.g.
> +10,4:Alex_Clark->mail
>
> I want to then do a lookup on this when the recipient's address is
> verified. I've modified a part of ACL (which is pretty much the default
> Exim ACL config) by adding the two bottom lines, as below:
>
> accept    local_parts   = postmaster
>         domain          = +relay_to_domains
>         verify          = recipient
>         acl                     = cdb{/usr/exim/jlpcdb/jlp.cdb}{$value}

>
> ...but it's not doing anything with the bit I've added, so the lookup
> obviously isn't going to plan. It just accepts it if the domain is in the
> +relay_to_domains as it did before I made any changes. How does it need to
> be phrased to perform the verification?


It wouldn't.

verify = recipient runs the destination address through the routers (with
the verify bit set), so what you actually need to be doing is causing
the CDB to be searched at routing time. Without knowing more about how
your configuration works, this is difficult to provide example code for.

Cheers

MBM

-- 
Matthew Byng-Maddick          <mbm@???>           http://colondot.net/
                      (Please use this address to reply)