[Mimedefang] Mimedefang before blacklist?

David F. Skoll dfs at roaringpenguin.com
Thu Jan 30 11:28:00 EST 2003


On Thu, 30 Jan 2003, Shawn Button wrote:

> is there a way to tell mime
> defang to not bother to scan a certain sender, to instead just silently
> discard the message?

Make sure mimedefang has the "-s" option and put this in your filter:

	sub filter_sender {
	    my($sender, $ip, $name, $helo) = @_;
	    if ($sender eq '<big at boss.com>') {
		return('REJECT', 'Viruses unwanted...');
	    }
	    return('CONTINUE', 'OK');
	}

Alternatively, put this in your Sendmail access map:

	From:big at boss.com		554 Viruses unwanted

The access map is more efficient.

--
David.



More information about the MIMEDefang mailing list