LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-25-2007, 12:20 PM   #1
bigbadbo
Member
 
Registered: Nov 2006
Location: Nottingham - UK
Distribution: SuSe 10.1, Fedora Core 5
Posts: 30

Rep: Reputation: 15
HELP I cant locate procmailrc to invoke spam assassin with procmail


Hello their guys

was just wondering if anyone could help me

I have just freshly installed Fedora Core 5, and SpamAssassin 3.2.3

However i wish to invoke this with procmail 3.22, but i am having trouble locating the procmailrc file that some books / tutorials instructs me to do so.

I have performed a file search and it cannot find it

i have looked in various directory's but still nothing.

can someone please advise on this?

ohh and i do have procmail on my system, its located in the /usr/bin directory

regards
Kai

Last edited by bigbadbo; 11-25-2007 at 12:35 PM.
 
Old 11-25-2007, 01:17 PM   #2
slackbat
Member
 
Registered: Dec 2005
Location: Mid-West-Wales
Distribution: Slackware 14.2_64_multilib - Salix 14.2 - devuan
Posts: 137

Rep: Reputation: 27
Smile

Hi there,

It maybe that you need to make procmailrc yourself.

Do you have procmail installed?

If you make the procmailrc file, procmailrc will go into /etc. In this location it is system wide. Or you can have a .procmailrc file in the home directory. The choice is yours.
 
Old 11-25-2007, 06:04 PM   #3
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
Post

Quote:
Originally Posted by slackbat View Post
Hi there,

It maybe that you need to make procmailrc yourself.

Do you have procmail installed?

If you make the procmailrc file, procmailrc will go into /etc. In this location it is system wide. Or you can have a .procmailrc file in the home directory. The choice is yours.
*** Important note, be sure to have everything installed and configured.

sudo /sbin/chkconfig spamassassin on
sudo /sbin/service spamassassin start

If you are using for instance evolution email client, go to the plugin's and be sure to check this item.
 
Old 11-26-2007, 04:21 AM   #4
bigbadbo
Member
 
Registered: Nov 2006
Location: Nottingham - UK
Distribution: SuSe 10.1, Fedora Core 5
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rhbegin View Post
*** Important note, be sure to have everything installed and configured.

sudo /sbin/chkconfig spamassassin on
sudo /sbin/service spamassassin start

If you are using for instance evolution email client, go to the plugin's and be sure to check this item.
Hi there

i got the following message when i executed these commands:

Starting spamd [OK]

so i guess everything is installed and configured

And in my plug-ins for evolution the "SpamAssassin junk plug-in" is checked

can anyone point me into the direction to write my own procmailrc file to invoke it with spam assassin?

regards
Kai
 
Old 11-26-2007, 06:30 AM   #5
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
Quote:
Originally Posted by bigbadbo View Post
Hi there

i got the following message when i executed these commands:

Starting spamd [OK]

so i guess everything is installed and configured

And in my plug-ins for evolution the "SpamAssassin junk plug-in" is checked

can anyone point me into the direction to write my own procmailrc file to invoke it with spam assassin?

regards
Kai
Are you running Evolution email client?
 
Old 11-26-2007, 10:53 AM   #6
bigbadbo
Member
 
Registered: Nov 2006
Location: Nottingham - UK
Distribution: SuSe 10.1, Fedora Core 5
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rhbegin View Post
Are you running Evolution email client?
Yes im running Evolution

regards
Kai
 
Old 11-26-2007, 07:31 PM   #7
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
Quote:
Originally Posted by bigbadbo View Post
Yes im running Evolution

regards
Kai
I think you should be set now, if all of the services are running you should be could to go.

The procmail setting, I do not have one in my profile and I am not sure if it is necessary I could be wrong?
 
Old 11-26-2007, 08:52 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
The ~/.procmailrc file is for incoming mail - it is separate to what you send/read with Evolution. Here is an example of what you could put in it (from the SpamAssassin docs):
Code:
MAILDIR=$HOME/mail
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
#
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
#
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#
:0fw: spamassassin.lock
* < 256000
| spamassassin

# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
almost-certainly-spam

# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0:
* ^X-Spam-Status: Yes
probably-spam

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

  :0 fhw
  | sed -e '1s/^/F/'
}
 
Old 11-27-2007, 08:56 AM   #9
bigbadbo
Member
 
Registered: Nov 2006
Location: Nottingham - UK
Distribution: SuSe 10.1, Fedora Core 5
Posts: 30

Original Poster
Rep: Reputation: 15
HI Guys

got it all working now thanks :-)

regards
Kai
 
  


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
procmail: cant find .forward and.procmailrc files Chiragrs Linux - Server 1 05-18-2007 04:48 AM
Procmail- .procmailrc and .forward files Chiragrs Linux - Server 2 05-17-2007 04:37 PM
Spam Assassin help Trizon Linux - Software 2 01-31-2006 03:25 PM
Spam Assassin korozion Linux - Software 1 03-10-2005 09:45 PM
What other anti-spam for Linux that can be used, other than Spam assassin? johnportiz Linux - Software 6 01-27-2004 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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