Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-12-2004, 07:55 PM   #1
LQ Newbie
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
Where can I find out about setting up email/spamassassin?

Hi all!

I'm really new to Linux, but have worked with it and Unix in the past.

I need to setup a box that will act as a pop2/smtp mail server, and will use SpamAssassin to check incoming email for some accounts (opt-in).

After several failed attempts to get everything I think I need installed on Mandrake and Debian, I'm hoping that someone out there has written something to guide me through the maze. I'm not clear on what exactly I need to setup.

The idea is that incomming mail would be received by the mail server. Once received, it would send it through SpamAssassin to be checked/scored, and then put back into the mail server (or a second one on the same box) for the user to retrieve using Outlook Express or similar.

If anyone has been through a similar setup, I'd really appreciate your insight!


Old 02-12-2004, 08:06 PM   #2
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I do that with postfix as my MTA. I set it up with this guide:
Old 02-12-2004, 09:36 PM   #3
LQ Newbie
Registered: Feb 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks! I'll check that out
Old 03-04-2004, 01:25 PM   #4
Registered: Jun 2003
Location: Brussels, Belgium
Distribution: Ubuntu 6.10
Posts: 139

Rep: Reputation: 15
I have installed spamassassin on my Mandrake 9.2 and it finally works. But not easy.
I use fetchmail to retrieve my email from my ISP and postfix to deliver it to my local mailbox.
In between, I use procmail which call spamassassin to tag spam.
I use spamd / spamc which is more efficient than calling spamassassin directly.
It is possible also to add filtering rule in Evolution (your mail reader for example), but this is also very slow.

Please find herafter the content of my .procmailrc file :

# SpamAssassin sample procmailrc
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.

| spamc

# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped. This will re-add it.
* ^^rom[ ]
LOG="*** Dropped F off From_ header! Fixing up. "

:0 fhw
| sed -e '1s/^/F/'

and hereafter the configuration file for spamd:

# SpamAssassin config file for version 2.5x

# How many hits before a message is considered spam.
required_hits 1.5

# Whether to change the subject of suspected spam
rewrite_subject 1

# Text to prepend to subject if rewrite_subject is used
subject_tag *****SPAM*****

# Encapsulate spam in an attachment
report_safe 1

# Use terse version of the spam report
use_terse_report 0

# Enable the Bayes system
use_bayes 1

# Enable Bayes auto-learning
auto_learn 1

# Enable or disable network checks
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_languages all

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales all

Hope this can help,


Old 03-04-2004, 02:28 PM   #5
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Rep: Reputation: 30
Newbie advice

Kmail and Mozilla Thunderbird and the M2 mail client in Opera all have spam and junk busters included.

A a newbie it's wiser to use these.
Old 03-04-2004, 09:48 PM   #6
LQ Newbie
Registered: Feb 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Alas, doing the spam elimination on the client side, or specifying which client to use, isn't possible.

The howto mentioned by jtshaw really made it pretty easy


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
How To: Setup Spamassassin on RedHat Firewall with earthlink email? abcampa Linux - Software 2 08-23-2005 11:02 AM
Email and spam in different folders using spamassassin tensigh Linux - Software 3 08-11-2005 11:21 AM
ARRRRRRRGGHHH Email Relay with SpamAssassin Filtering... vallois Linux - Software 5 07-16-2004 12:47 PM
Can Spamassassin be tied to a particular users email? Pcghost Linux - Software 15 05-24-2004 07:41 AM
good email setup? fetchmail -> procmail -> spamassassin -> evolution xmnemonic Linux - Software 0 10-12-2003 05:33 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration