Solved

spamassassin, 3.2.5, webmin

Posted on 2008-10-08
4
1,712 Views
Last Modified: 2013-12-17
I am running Webmin, sendmail and spamassassin 3.2.5 (referred to as SA from now on) on a Fedora 8 box. Just for clarity, I am using the latest Horde Groupware to view my mail, but I do not think(?) that affects my question.

I am very comfortable with the command line, webmin is a convenience.

The question is, how to get SA filtering my mail properly? All I want SA to do is set the mail header as spam, and also rewrite the mail subject line to the default '****SPAM****', and let hoard filter (ingo) take care of moving it to the correct place in the user's mail folders.

Here is a list of information/observations:

- I have procmail set up to forward mail to SA with: "Feed to program /usr/bin/spamassassin"
- For testing, I have (via webmin) set the "Hits above which a message is considered spam" option to '2' instead of the default '5'.
- I have been sending spam mail to SA for learning via spamassassin -r and also tried sa-learn --spam (user)
- No subject lines for are being rewritten.
- The spamd daemon is running
- I have Bayesian filtering enabled, but the sa-update command (also the included webmin sa-update cron job) times out.

I am glad to provide any further necessary information. Can the experts help?
0
Comment
Question by:admash
  • 2
  • 2
4 Comments
 
LVL 36

Expert Comment

by:grblades
Comment Utility
I dont recommend the use of procmail for spam filtering. If you are using spamassassin then you are far better off using something like 'spamass-milter' http://savannah.nongnu.org/projects/spamass-milt/

With spamassassin you need to be carefull of which user spamassassin is running as. If you manually run sa-learn then often the files it creates can be owned by the wrong user. Personally I prefer to configure spamassassin to put all the data in a mysql database which avoids these problems. See http://wiki.mailscanner.info/doku.php?id=documentation:anti_spam:spamassassin:bayes:sql

A spam threshold of 2 is very low and I expect you will get a significant amount of false positives.

Personally I run MailScanner for spam filtering and virus scanning. You can use the MailWatch web interface with it aswell which enables you to perform a lot of analysis.
See my site at http://www.gbnetwork.co.uk/mailscanner
0
 

Author Comment

by:admash
Comment Utility
I installed mailscanner, and am currently working through the MailScanner.conf. With default options (including required settings) so far no mail has been filtered except the test I sent via telnet.

In my sendmail m4, I have:

Mailer       MAILER(procmail)dnl

Could this be causing the problem? Should I remove this? How can I do it safely?
0
 
LVL 36

Expert Comment

by:grblades
Comment Utility
I normally use MailScanner with postfix so I am not familiar with using it with sendmail.
There is a mailscanner mailing list which is very active. If you post there people will help you with your sendmail configuration.
0
 

Accepted Solution

by:
admash earned 0 total points
Comment Utility
The problem turned out to be that I was using the wrong code in procmail to forward messages to spamassassin. The correct line was:

Feed to program /usr/bin/spamc

not

Feed to program /usr/bin/spamassassin

In addition, Webmin was not saving my /etc/mail/spamassassin/local.cf correctly. I edited it manually to add:

rewrite_header Subject [SPAM]

restarted the sendmail and spamassassin services and all is working well.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
Easy CSR creation in Exchange 2007,2010 and 2013
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now