LinuxQuestions.org
Visit Jeremy's Blog.
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, 02:25 PM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/13.37/14/14.2 RH 6.2/7/EL6.5 SuSE 8.2/11.1
Posts: 483

Rep: Reputation: 30
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, 02:53 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,288

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, 06:45 PM   #3
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/13.37/14/14.2 RH 6.2/7/EL6.5 SuSE 8.2/11.1
Posts: 483

Original Poster
Rep: Reputation: 30
Can't get spamd to start, no errors, it just sits there...
 
Old 10-11-2004, 10:21 AM   #4
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/13.37/14/14.2 RH 6.2/7/EL6.5 SuSE 8.2/11.1
Posts: 483

Original Poster
Rep: Reputation: 30
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 04:49 PM.
 
Old 10-11-2004, 12:01 PM   #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, 04:48 PM   #6
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/13.37/14/14.2 RH 6.2/7/EL6.5 SuSE 8.2/11.1
Posts: 483

Original Poster
Rep: Reputation: 30
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, 03: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


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

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

All times are GMT -5. The time now is 04:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration