Solved

spamassassin, 3.2.5, webmin

Posted on 2008-10-08
4
1,726 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
ID: 22677127
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
ID: 22691774
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
ID: 22692959
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
ID: 22744743
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …

920 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

14 Experts available now in Live!

Get 1:1 Help Now