On Sun, 23 Jan 2005, Michael C. Toren wrote:

> On Sat, Jan 22, 2005 at 01:53:35AM +0000, [EMAIL PROTECTED] wrote:
> >     I have a bit of a different plugin running that handles
> > pop-before-smtp by reading a list of recent IPs that have popped an
> > account, and if there is a match with the connecting IP, it sets a
> > transaction note:
> >
> > $transaction->notes( 'pop-b4-smtp', 1 ) ;
> >
> >     In the check_relay plugin, I added this to test, first thing:
> >
> > return OK if $transaction->notes( 'pop-b4-smtp' ) ;
>
> Any reason not to simply call "$connection->relay_client(1)" from your
> pop-before-smtp plugin?

        I'm working from what I 'THINK' I know from reading existing
plugins and creating my own. There doesn't seem to be any documentation
describing much of anything. (I don't have the latest release, and won't
until I get my new server built.)

        So, I don't know what to expect by making the call you suggest.
What is the information it provides and where does it get it from? The
pop-before-smtp plugin is the first one that runs, since it does some
other things with the IP address, which happen to include seeing if it's
on that relay list. Why read the list twice, eh? Just set a flag the first
time that the other plugin can read. But that's now what I'm doing -
reading it again in the check_relay plugin - because it works.

        It was suggested I look into $connection->notes() , which I
haven't done yet - so many things on the go, but I'll get around to it,
maybe today.

-- 
Roger Walker
"HIS Pain - OUR Gain"

Reply via email to