You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by asteddy <as...@tin.it> on 2007/05/23 18:03:27 UTC
Disable logging - Whitelist functionality
Hello,
I would like to know if I can disable spamassassin logging because I think it's slowing down.
I would also know if there is a way to say to spamassassin that whitelisted addresses don't need to pass all other rules.
If there was already a thred talking about these arguments please tell me where I can find it because I haven't found a searching engine in the mail archive and I have subscribed the list only now.
Thank you in advance.
Asteddy
Re: Disable logging - Whitelist functionality
Posted by Jari Fredriksson <ja...@iki.fi>.
asteddy wrote:
> Hello,
> I would like to know if I can disable spamassassin logging because I
> think it's slowing down.
> I would also know if there is a way to say to spamassassin that
> whitelisted addresses don't need to pass all other rules.
> If there was already a thred talking about these arguments please
> tell me where I can find it because I haven't found a searching
> engine in the mail archive and I have subscribed the list only now.
> Thank you in advance.
> Asteddy
I'm having my whitelist in a separate file, one address a row. Then I'm using maildrop so that it does not do spamassassin at all for those whitelisted sender addresses.
This snippet makes a lookup in the file and sets variable SCAN_SPAM to false it a match is found.
----------------------------------------------------------------------------------------------
SCAN_SPAM=1
if ( /^From:\s*(.*)/ && lookup( $MATCH1, "/usr/etc/maildrop_sender_whitelist", "D" ))
{
xfilter "reformail -a'X-Whitelisted: $MATCH1 in /usr/etc/maildrop_sender_whitelist'"
SCAN_SPAM=0
}
----------------------------------------------------------------------------------------------
I have other checks too, for example if the mail looks like a reply to spam which was sent in my name and stuff like that.
In the end of /etc/maildroprc is call spamassassin if it looks like the spam should checked.
----------------------------------------------------------------------------------------------
if ( $SCAN_SPAM > 0 )
{
xfilter "spamc -H -x -d spamd -u spam"
}
else
{
xfilter "reformail -a'X-Whitelisted: on pena because some reason earlier in /etc/maildroprc'"
}
----------------------------------------------------------------------------------------------