LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-12-2004, 01:12 PM   #1
broxtor
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Debian Squeeze AMD64
Posts: 94

Rep: Reputation: 16
spamassassin tags spam while procmail isn't running


Hi,

I have a weird problem with my procmail and spamassassin.
What I'm trying to do is filter out my spam by means of spamassassin. In order to accomplish this I have created a rule in my procmailrc that pipes the messages to spammassassin. I'm using the default rules that come with the spamassassin package. The problem I'm facing is that the spam gets tagged as spam, but procmail isn't forwarding it to the right mailbox. I also don't get any records in my procmail logfile. In order to do some debugging I commented the lines out in my procmailrc that should pipe the messages through spammassassin. The weird thing is that all the spam messages I get still are tagged as spam by spammassassin. Even when I kill procmail this happens. Does anyone have an idea what's happening here?

Below are my config files:

fetchmailrc:
poll my.isp.com port 110 protocol pop3 username "myaccountname" password "mypassword" is me@mybox.home
mda "usr/bin/procmail -d %T"

That works fine.

procmailrc:
# variables
SHELL=/usr/bin/sh
MAILDIR=/var/spool/mail
LOGFILE=/${MAILDIR}/procmail.log
LOG="--- Logging ${LOGFILE} for ${LOGNAME}, "
VERBOSE=on

# rules for spamassasin
DROPPRIVS=yes

#All mail smaller then 256kb goes to spamassassin
:0fw:spamassassin.lock
* <256000
| spamassassin

# Score higher than 15 is almost certainly spam
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
almost-certainly-spam

# All mail tagged as spam goes to "probably-spam"
:0:
* ^X-Spam-Status: Yes
probably-spam
 
Old 10-13-2004, 02:57 PM   #2
broxtor
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Debian Squeeze AMD64
Posts: 94

Original Poster
Rep: Reputation: 16
I finally found the solutions. For the ones who have the same problem:

In the /etc/sysconfig/postfix is a line that says:

POSTFIX_MDA="procmail"

In my case this was set to local. That way, procmail doesn't do anything.
 
  


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
Spamassassin and procmail zamri Linux - Networking 2 07-16-2005 06:40 AM
procmail and spam -- do not send out of office auto replay to spam draix Linux - Software 0 12-30-2004 08:35 AM
fetchmail procmail spamassassin VincentB Linux - Software 4 08-24-2004 01:35 PM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 07:12 AM
SpamAssassin tags, but won't redirect LeechBot Linux - Software 4 09-14-2003 02:12 PM


All times are GMT -5. The time now is 05:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration