LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-03-2004, 01:25 PM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Rep: Reputation: 32
Installed Spamassassin, what now?


I'm running Slack9.1 as a mail and web server and things have been going quite nicely since moving from RedHat...

I've installed Spamassassin, not the easiest of tasks, but managed to get it intalled, but that is about it, I'm at a loss.

I need to know how to get it running, do I need to create an entry in /etc/rc.d ?

I have the following files:
spamassassin
spamd
spamc
all located here: /usr/bin/ (all executable)

I've ready that you run it from Procmail, but I am not 100% sure if I am using this, as there is no /etc/procmailrc file, nor is there any .procmailrc files for any of my users.

However, when I built my sendmail.cf file the sendmail.mc file contained the following 3 lines at the bottom of the configuration file:

MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

I'm however of the understanding that it if there is no procmail configuration files, either system wide or on a per user basis, then sendmail will deliver mail to the users default mail box.

All help and pointers would be greatly appreciated, as I am currently receiving in excess of 1000 SPAM e-mails per day and it is really getting beyond a joke.

Thanks in advance...
 
Old 10-03-2004, 01:53 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You need to start up spamd when the system starts. Then you need to call spamc from within your procmail script, or you can set up a Sendmail milter to call spamc whenever mail is received. This is useful in vhosting environments where users don't have home directories or procmail files, but not the easiest thing to get set up. For you, probably just running out of your .procmailrc will be fine. I found a nice guide with a lot of details for getting this all set up at http://www.stearns.org/doc/spamassas...p.current.html -- hopefully it will come in handy for you.
 
Old 10-03-2004, 05:45 PM   #3
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
Can't get spamd to start, no errors, it just sits there...
 
Old 10-11-2004, 09:21 AM   #4
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
got it working, for the benifit of others heres what I did.

Obviously get it downloaded and installed.

I added the following to each users .procmailrc file

:0 fw: spamc.lock
* < 256000
| /usr/bin/spamc -f

You can use a system wide .procmailrc file, which I think would reside in /etc/ but as I do not wish to have Spam Checking for all users, I opted to go for this method.
There are a few websites that explain the purpose of the above text file.

I added the following command to start the spamd (spamdaemon) in an /etc/rc.d file:
I chose to include this with the rc.sendmail file in order to start/stop/reset spamd with sendmail

/usr/bin/spamd -c -d (this starts the spam assassin daemon)

There is one more file I modfied for each applicable user, this is located at /home/USER/.spamassassin/user_prefs
Here you can adjust spamassassin to suit each users requirements.

All in all, I am finding my setup to suit my purposes, there are obviously other applicable files, but the steps mentioned above, were what caught me out.

Last edited by plisken; 10-11-2004 at 03:49 PM.
 
Old 10-11-2004, 11:01 AM   #5
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
If you want to use procmail thats fine but you can use spamassassin with about anything else out there (kmail,sylpheed,evolution and the likes) much easier.
 
Old 10-11-2004, 03:48 PM   #6
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
Wasn't really about choice, but rather, it seemed easier to me to do it this way. As I wised to do it on a per user basis, then it seemed only to be a matter of ading a .procmailrc to each users dir.

It is certainly making my life much, much easier...
 
Old 03-22-2005, 02:06 PM   #7
wpennington
Member
 
Registered: Oct 2002
Location: San Diego, CA
Distribution: Mandriva Corporate Desktop
Posts: 51

Rep: Reputation: 15
Quote:
Originally posted by crashmeister
If you want to use procmail thats fine but you can use spamassassin with about anything else out there (kmail,sylpheed,evolution and the likes) much easier.
I would like to use spamassassin with evolution, cannot find information on configuring spamassassin with Evolution 2.0 and would appreciate assistance in configuring spamassassin to work on only one system.

Mandrake 10.1
Evolution 2.0.3
Spamassassin 3.0

I have marked email as Junk, and it appears in the Junk folder for Evolution, but I am not sure that it is running correctly. I have go to /home/mydirectory/.spamassassin and I changed the default to 5 for filtering, and spamassassin is running. I ran the commands
spamassassin -D --lint < sample-spam.txt and spamassassin < sample-spam.txt
but there was no result for either command. I cannot find any configuration assistance for using spamassassin for junk mail as a stand-alone client for Evolution 2.0.

Thanks,
Walt
 
  


Reply



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
Ndiswrapper installed driver installed, hardware present, but modprobe doesn't likeit Flukey Linux - Hardware 1 04-14-2007 11:22 AM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 07:12 AM
Spamassassin bigdogg Fedora 2 04-30-2004 05:21 PM
SpamAssassin - Please Help! ScooterB Linux - Newbie 2 01-09-2004 09:10 AM
Spamassassin help iBool Linux - Software 6 07-22-2003 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:55 PM.

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
Open Source Consulting | Domain Registration