LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-15-2009, 11:29 PM   #1
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 522

Rep: Reputation: 31
Procmail archive emails


Hi All,


i want to archive all sent emails using procmail, for this i have created /etc/procmailrc file, which is causing loop and due to this cpu utilization is 100%, can any one correct me on this.

Code:
LOGFILE=/var/log/procmail.log
PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
:0
* ^From.*contoso.com
{
 :0 c
! backup@contoso.com

:0fw
| /usr/bin/spamassassin

}
 
Old 06-16-2009, 05:13 PM   #2
archangel_617b
Member
 
Registered: Sep 2003
Location: GMT -08:00
Distribution: Ubuntu, RHEL/CentOS, Fedora
Posts: 234

Rep: Reputation: 42
You probably have to do something to break the loop like this:

Code:
* ^From: betty@flintstone.net
* !^X-Loop: beenherebefore
	| formail -A "X-Loop: beenherebefore" | \
            $SENDMAIL -oi barney@flintstone.org
(from http://handsonhowto.com/pmail102.html)

You're piping the message into spamassassin it looks like, right? So spamassassin is probably resending / reprocessing the message once it's done... Not sure though.

- Arch
 
  


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
Can I use Courier (IMAP) to archive emails? neocookie Linux - Server 2 10-02-2007 08:32 AM
software to archive emails ? sunpascal Linux - Software 1 04-16-2006 06:58 PM
postfix/procmail doesn't deliver emails! eisman Ubuntu 1 05-18-2005 10:21 AM
How to backup/archive evolution emails? subaruwrx Linux - Software 4 10-25-2004 08:25 AM
SpamAssassin/Procmail to del blacklisted emails tomac Linux - General 1 07-11-2004 03:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:35 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
Open Source Consulting | Domain Registration