LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-13-2004, 11:43 PM   #1
ooorah
LQ Newbie
 
Registered: Oct 2004
Location: Clarksville, MD
Distribution: CentOS5
Posts: 23

Rep: Reputation: 15
Spam Assassin and Fedora 9 mail/Sendmail


I'm using the Fedora 9 installation mail/Sendmail... How do I configure Spam Assassin to work in this configuration? The Redhat site gives a nice set of instructions if I was using Procmail. But I couldn't find anything for my set up...Spam Assassin is running...
 
Old 10-14-2004, 04:13 AM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
i think the idea would be to use procmail as the MDA for sendmail
have no idea how to do that however
configuring sendmail seems like casting some weird wichcraft spell
(who thought that stuff up anyway?)
 
Old 10-15-2004, 09:42 PM   #3
ooorah
LQ Newbie
 
Registered: Oct 2004
Location: Clarksville, MD
Distribution: CentOS5
Posts: 23

Original Poster
Rep: Reputation: 15
Any idea who might know or where I could find out?
 
Old 10-16-2004, 12:01 AM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
if you are just using fetchmail to get your mail you can call procmail straight from there and bypass sendmail with this line:at the bottom of your ~/.fetchmailrc file
Code:
 mda "/usr/bin/procmail -f %F -d %T";
for sendmail
i think all you need to use is this macro in the .mc file
(as i said earlier i dodn't use sendmail so i am out on a linb here)
FEATURE(`local_procmail', `/usr/bin/procmail')

(adjust path)



you can find tutorials around on the net for using m4 on a .mc file to create a new .cf file for sendmail
make sure you are using instructions for your version of sendmail
and back up the old .cf before you try a new one so you don't loose it
first stop sendmail
if i remember correctly redhat uses the file
/etc/mail/sendmail.mc
you put the macro in there
then after backing up the /etc/mail/sendmail.cf file
run:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
then restart sendmail
either way you get it going
now you need a ~/.procmailrc file
this one is mine it puts my spam in a mail file $HOME/mail/spam
you can put it anywhere or if you are running an imap server and have some folders or whatever
and i'm not running spammassassin as a daemon !
not sure if t's the same or what.

Code:
:0fw:spamassassin.lock
| spamassassin :0e

  EXITCODE=$?
:0:
* ^X-Spam-Flag: Yes
$HOME/mail/spam
 
  


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
spam assassin Cap'n Skyler Fedora 1 09-14-2005 07:04 PM
Spam Assassin & sendmail paul_mat Slackware 2 03-19-2005 09:38 PM
Spam Assassin korozion Linux - Software 1 03-10-2005 10:45 PM
something about spam assassin aneedz Linux - Software 0 04-01-2004 04:59 AM
What other anti-spam for Linux that can be used, other than Spam assassin? johnportiz Linux - Software 6 01-27-2004 04:17 AM


All times are GMT -5. The time now is 12:36 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