[Mimedefang] relay_sender DISCARD

David F. Skoll dfs at roaringpenguin.com
Thu Jun 26 09:30:37 EDT 2003


On Thu, 26 Jun 2003, Du Plooy, Ernst wrote:

> I'm using filter_sender to successfully reject mail from certain
> senders.   I would however like to not reject, but silently discard
> these mail messages.  As far as I know the only values available in
> filter_sender are REJECT, CONTINUE, TEMPFAIL and
> ACCEPT_AND_NO_MORE_FILTERING. Could you possibly consider adding DISCARD
> to these options?

If you're going to accept and silently discard the message anyway, you
might as well do it in filter_end:

sub filter_end {
	if (should_discard_from($Sender)) {
		return action_discard();
	}
}

The other option, which is probably the most efficient of the lot, is to put
this in your access db:

	From:badsender at baddomain.net		DISCARD

Regards,

David.



More information about the MIMEDefang mailing list