[Mimedefang] Adding Domains to Whitelist

David F. Skoll dfs at roaringpenguin.com
Mon Jul 1 19:15:49 EDT 2002

On Mon, 1 Jul 2002, dave shepherd wrote:

> Which is the proper format for adding entire domains to the whitelist?

There are two approaches:

1) Add the domain to the SpamAssassin config file, typically

2) Do the checks in MIMEDefang's filter itself:

$Whitelist = 0;
if ($Sender =~ /\@gooddomain\.com>?$/i or
    $Sender =~ /\@other-good-domain\.net>?$/i) {
    $Whitelist = 1;

# Don't do SpamAssassin checks if $Whitelist
if (!$Whitelist) {
	# ... do spam checks

The way you do it is up to you, though there is one subtle difference:
SpamAssassin uses the contents of the From: field, whereas $Sender is set
from the SMTP "MAIL FROM:" command.


More information about the MIMEDefang mailing list