If you wanted to whitelist you could go:
MAILFROM WHITELIST IS [EMAIL PROTECTED]
MAILFROM WHITELIST ENDSWITH @domain.com
 
If you wanted to just add negative weight.
MAILFROM 0 IS [EMAIL PROTECTED]
MAILFROM 0 ENDSWITH @domain.com
 
The tofile:
ALLRECIPS 0 CONTAINS [EMAIL PROTECTED]
(You can use the IS, but the syntax is pretty harsh)
 
Now that said. I wouldn't whitelist on the MAILFROM, that is too easily forged.
It would be better to whitelist on a REVDNS or an REMOTEIP.
REVDNS -30 ENDSWITH .domain.com
REMOTEIP -30 IS 192.168.0.0
REMOTEIP -30 CIDR 192.168.0.0/24
----- Original Message -----
Sent: Monday, January 23, 2006 10:57 AM
Subject: [Declude.JunkMail] Filter Syntax

I am setting up a filter to whitelist some domains.  Currently, we have them directly in the global.cfg file but there is getting to be too many, so I am wanting to use a file to do the job and then assign a negative weight to it.  I thought I had it but I can't seem to get the file to fire.  We are using declude junkmail pro 3.0.5
 
In Declude I have:
mywhitelist      filter     c:/location/mywhitelist.txt      x     -30    0
 
In the text file, I have:
MAILFROM   0   IS   [EMAIL PROTECTED]
<and>
MAILFROM   0   IS   @domain.com
 
I would also like to set up a whitelist to text file:
RECIP   0  IS [EMAIL PROTECTED]
 
Any suggestions on how to make this work would be appreciated.
 
Chris Martin

Reply via email to