LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-11-2005, 12:22 PM   #1
samek
LQ Newbie
 
Registered: Jun 2004
Location: Slovenia
Distribution: Slackware && Gentoo
Posts: 11

Rep: Reputation: 0
procmail and forwarding


Hello,

I have set up spamassassin and now i want to forward spam with procmail but it doesn't work. I have created ~/.forward and ~/.procmailrc and still doesn't forward spam into /dev/null..

My ~/.procmailrc

Code:
MAILDIR=$HOME/Maildir/
DEFAULT=$HOME/Maildir/
LOGFILE=$HOME/Maildir/.mail.log

# Catch SPAM
:0:
* ^X-Spam-Flag: YES
* ^X-Spam-Level: \*\*\*\*\*
/dev/null
And ~/.forward

Code:
   
     "|IFS=' ' && exec /usr/bin/procmail || exit 75 #samek"
And i added a new line into /etc/postfix/main.cf:
mailbox_command = /usr/bin/procmail -a "$EXTENSION"

But it still doesn't work .. Does anyone know what i did wrong or i didn't do?
 
Old 09-11-2005, 03:15 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
don't know about postfix cause i use exim
but this works for me in .procmailrc
Code:
# Spam Assassin

:0fw
* < 256000
| spamassassin

:0
* ^X-Spam-Status: Yes
/dev/null
 
Old 09-12-2005, 07:53 AM   #3
samek
LQ Newbie
 
Registered: Jun 2004
Location: Slovenia
Distribution: Slackware && Gentoo
Posts: 11

Original Poster
Rep: Reputation: 0
ok thanks .. i'll try it
 
Old 09-12-2005, 08:18 AM   #4
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
You may want to look into this postfix configuration in main.cf:
Code:
header_checks = regexp:/etc/postfix/header_checks
Yves.
 
  


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: forwarding mail to remote mail account Cadmium Linux - Software 2 01-14-2010 01:05 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
Procmail forwarding loop jusme Linux - Software 10 02-28-2006 12:51 PM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
Forwarding messages to another server via procmail handsomeRob Linux - Software 5 01-18-2005 07:08 PM

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

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