I've written an Avalon block wrapper to go around the DNS code,
effectively making a DNS Server block.  I put this in the conf file at
the same level as the JamesMailServer block (right after it), and
created a simple log service by basically cutting and pasting.

Now the question is, how do I get access to that block from my mailet
within the JamesMailServer.  The DNS server upon init sets itself as
"DNS_SERVER", and then I try to the component for that in my mailet, and
I can't find it.  I've tried to look for similar cases in the code, but
couldn't figure it out.

Assuming I can get this working, that'll mean I can remove
SmartTransport as that code gets pushed into the DNS Server block and
some into RemoteDelivery servlet.  Makes the code even easier, and more
in step with the Avalon framework.  Also it's nice because then other
parts of the system can make DNS lookup calls (like validating a
sender's domain to reduce spam), and whatever else people can come up. 
Also wrote a RelayLimit match that works nicely.  Getting close to the
basic pieces to make JAMES not open for relaying and spammers.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/>
Problems?:           [EMAIL PROTECTED]

Reply via email to