[Mimedefang] Reject vs Drop and MX

David F. Skoll dfs at roaringpenguin.com
Fri Sep 24 11:52:33 EDT 2004


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.



More information about the MIMEDefang mailing list