spamassassin, 3.2.5, webmin

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?
admashAsked:
Who is Participating?
 
admashConnect With a Mentor Author Commented:
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
 
grbladesCommented:
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
 
admashAuthor Commented:
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
 
grbladesCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.