On Fri, 24 Sep 2004, Troy Carpenter wrote:

> 1. Turn on filter_relay and filter_recipient checking.
> 2. In filter_relay() I do the following:
>    * Check to see if the connecting relay is local. If so, accept with no
>      further processing.
>    * Check to see if the connecting relay is one of my known relays...
>      that is, is it my backup MX, or my ISP's relay (I don't want to
>      blindly accept SPAMs originating from others on my ISP).  If this
>      condition is met, then I set a RELAY flag for later use.

Don't do that.  Your filter will suffer random and unpredictable failures.
See the section  "GLOBAL VARIABLE LIFETIME" in the mimedefang-filter man
page.

> 4. In filter_begin(), I first check the RELAY flag.

See comment above.

--
David.
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to