LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-27-2007, 06:53 AM   #1
activeq
Member
 
Registered: Jul 2006
Location: Balen, Belgium
Distribution: Suse 10, Centos, Open Solaris
Posts: 76

Rep: Reputation: 15
spamassassin and blacklist/whitelist


hi,

I have a qmailserver running configured via the qmailrocks.org howto. The only thing I changed in the setup is using simscan instead of qmailscanner for better performance and additional spamsettings as in http://opensourceheaven.net/?page_id=98#comment-3730

The last thing I would like to implement is a black- and whitelist.

I checked the spamassassin website but there're all talking about ~/.spamassassin/user_prefs file which is located in the users home dir. Because I use vpopmail and users are virtual (no entry in /etc/passwd), I can't set this setting.

I also tried to add an entry in my local.cf, but that didn't work either.
blacklist_from *@hotmail.com

So I'm a bit stuck now in my last 'to-do list'.

Any help is appreciated.
 
Old 04-27-2007, 07:40 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
I know of two websites which offer custom spamassassin rulesets, which will take care of most spam:
http://wiki.apache.org/spamassassin/CustomRulesets
http://www.rulesemporium.com/

Then edit file /etc/mail/spamassassin/v310.pre, and enable this:
Quote:
# WhitelistSubject - Whitelist/Blacklist certain subject regular expressions
#
loadplugin Mail::SpamAssassin::Plugin::WhiteListSubject
by removing the leading # from the second line.
 
Old 04-27-2007, 08:06 AM   #3
activeq
Member
 
Registered: Jul 2006
Location: Balen, Belgium
Distribution: Suse 10, Centos, Open Solaris
Posts: 76

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bigrigdriver
I know of two websites which offer custom spamassassin rulesets, which will take care of most spam:
http://wiki.apache.org/spamassassin/CustomRulesets
http://www.rulesemporium.com/

Then edit file /etc/mail/spamassassin/v310.pre, and enable this:


by removing the leading # from the second line.
Thanks for the reply.

I already have some custom rulesets. (See below)
qmail2:/etc/mail/spamassassin # dir
total 6690
drwxr-xr-x 2 root root 416 Apr 27 10:31 .
drwxr-xr-x 3 root root 80 Apr 23 14:40 ..
-rw-r--r-- 1 root root 56238 Jun 2 2005 99_FVGT_Tripwire.cf
-rw-r--r-- 1 root root 22546 Jun 25 2005 backhair.cf
-rw-r--r-- 1 root root 109810 Jun 22 2005 bogus-virus-warnings.cf
-rw-r--r-- 1 root root 23422 Jun 25 2005 chickenpox.cf
-rw-r--r-- 1 root root 561 Nov 20 18:17 csma.cf
-rw-r--r-- 1 root root 935 Sep 9 2005 init.pre
-rw-r--r-- 1 root root 1213 Apr 27 10:31 local.cf
-rw-r--r-- 1 root root 449 Apr 23 16:48 local.cf.old
-rw-r--r-- 1 root root 2172 Jan 9 14:56 mime_validate.cf
-rw-r--r-- 1 root root 4883 May 25 2004 random.current.cf
-rw-r--r-- 1 root root 6597455 Apr 21 08:58 sa-blacklist.current.uri.cf
qmail2:/etc/mail/spamassassin #


As you can see, I don't have a v310.pre file. Can I also enable this in local.cf?
Or can I simply vi whitelist.cf and blacklist.cf and add an entry in local.cf to the path of those 2 files?
 
  


Reply


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
?Odd bug. modprobe.blacklist~ behaves as modprobe.blacklist arubin Slackware 1 11-05-2006 08:08 PM
Blacklist all, whitelist two countries daiver Linux - Security 4 04-30-2006 11:41 PM
spamassassin blacklist stomach Linux - Software 1 02-08-2006 05:37 PM
Spamassassin 3 whitelist ignored gquiring Linux - Software 0 10-04-2004 09:11 AM
spamassassin blacklist updates. Retrox Linux - Security 2 05-15-2004 11:32 AM


All times are GMT -5. The time now is 03:18 AM.

Main Menu
Advertisement
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