On 10 Jan 2006, at 10:42, Robin Bowes wrote:

What am I doing wrong?

Got it.

Several things really...

1. Use $validrcptto not %validrcptto
2. Don't specify the .cdb extension (can someone confirm how this works?
Does the code take the filename and append ".cdb" ?

Yes. It's a bit strange, and really screws with caching unfortunately. I wish we could just re-write it all - there have been a number of suggestions to do so.

3. (and this is the main problem) The config object is under $self->qp,
e.g.:

    # map to cdb file containing valid local email addresses
    my $validrcptto = $self->qp->config( 'validrcptto', 'map' )
      || return DECLINED;

Ah, I adding a proxy to allow $self->config() in trunk, hence why I wrote what I wrote.

Matt.

Reply via email to