LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-15-2009, 02:15 PM   #1
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 6/7, Vista, XP , WIN7, Server 03/08
Posts: 1,287

Rep: Reputation: 97
amavisd-new / spamassassin whitelist issue


I have a few emails that keep getting tagged by amavisd and spamassassin as spam that are legit emails. I have added the users and their domains where applicable to both the spamassassin whitelist and to softwhitelisting in amavis, neither seems to have an effect the same users keep getting tagged as spam. does anyone have any ideas why this would be happening. I restart amavisd and spamasasin after making changes.
 
Old 10-15-2009, 05:22 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,908

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
How did you add the recipients you want to whitelist? For spamassassin you have to use in local.cf:
Code:
whitelist_from user@domain.com other-user@other-domain.com
To see if it takes effect use:
Code:
spamassassin -t < mail.txt
Here is what I get when I use the gtube test file using a "from:" address that is whitelisted:
Quote:
pts rule name description

-100 USER_IN_WHITELIST From: address is in the user's white-list
-0.0 NO_RELAYS Informational: message was not relayed via SMTP
1000 GTUBE BODY: Generic Test for Unsolicited Bulk Email
For amavisd, you have to add the whitelisted recipients in a file defined in the whitelist_sender directive.
 
Old 10-16-2009, 11:55 AM   #3
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 6/7, Vista, XP , WIN7, Server 03/08
Posts: 1,287

Original Poster
Rep: Reputation: 97
In the spamassassin file I have *@domain.com for whole domain whitelisting, unless I have the syntax wrong, as far as my soft whitelisting in amavis it is exactly the same syntax as the examples.
 
Old 10-18-2009, 03:15 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,908

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Did you run a test to see if the whitelisted recipients get a -100 score?
You can run:
Code:
spamassassin -D --lint
to check for syntax errors.
Btw you don't need to use both programs whitelisting options. For me just adding the recipients in spamassassin's local.cf works.
 
Old 10-19-2009, 07:51 AM   #5
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 6/7, Vista, XP , WIN7, Server 03/08
Posts: 1,287

Original Poster
Rep: Reputation: 97
How do I test the email again, export it as as eml then I forget what code to run to test it. Is it the spamassassin -D --lint email.eml?
 
Old 10-19-2009, 08:15 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,908

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
No you should export it as txt, or use the sample-spam.txt that comes with spamassassin. If you don't have it create a test.txt with the following content:
Code:
From: Sender <sender@example.net>
To: Recipient <recipient@example.net>
Subject: Test spam mail (GTUBE)

XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X
and run:
Code:
 spamassassin -t < test.txt
Regarding the lint option, that is used to check rules, you should run just
Code:
spamassassin -D --lint

Last edited by bathory; 10-19-2009 at 09:10 AM.
 
  


Reply

Tags
spam, spamassassin, whitelist


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SpamAssassin enquiry - how to clear the whitelist database bigbadbo Linux - Server 2 12-15-2010 01:35 AM
Spamassassin Whitelist carlosinfl Linux - Server 1 01-28-2008 10:02 PM
spamassassin whitelist icechong Linux - Server 3 08-10-2007 09:01 AM
spamassassin and blacklist/whitelist activeq Linux - Software 2 04-27-2007 07:06 AM
Spamassassin 3 whitelist ignored gquiring Linux - Software 0 10-04-2004 08:11 AM


All times are GMT -5. The time now is 06:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration