procmail
[Top] [All Lists]

Re: Procmail globel filter

2003-07-18 23:15:36
Hi Sean

First of all thanks for reply me back.

I am new in procmail configuration and I am learning about how to configure
procmail properly in various ways so that we can handle our mails
accordingly.

I get this example from the net. Any way I explain it to u what I am trying
to do.I want all coming emails to my server will be written to a file and
not delivered to the clients directly.I want to perform some operations on
all coming emails and then sent it to the recipients. I want to do it on all
my mail accounts so I need global filter. I read /etc/procmailrc will do it
.
Permissions for /etc/procmailrc is 644 and owner is root.

If you have understand what I want to do then Please help me out to write
down this filter. I will be really appreciate your kind co-operation.

thanks

Shahid Mahmood


----- Original Message -----
From: "Professional Software Engineering" 
<PSE-L(_at_)mail(_dot_)professional(_dot_)org>
To: <procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>
Sent: Friday, July 18, 2003 9:36 PM
Subject: Re: Procmail globel filter


At 12:23 2003-07-18 +0500, Shahid Mahmood wrote:
Let me explain it .. For example I want to putt a filter that will write
down any email sent from any user should be written in a file
/root/backupmail file.

SENT FROM isn't a function of procmail.  Procmail handles mail LOCALLY
DELIVERED TO.

here is my /etc/procmailrc file

PATH=usr/sbin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.


MAILDIR=/var/spool/mail      # You'd better make sure it exists

If you're specifying an absolute path in the message delivery, and not
including anything, then redefining this is meaningless.


LOGFILE=$MAILDIR/procmail.log

= /var/spool/mail/log

Probably not the best plage to cram a log - that's the MAILSPOOL
directory.  Let's hope you never have a user named log.

:0:
/root/backupmail

THAT will not produce a _Backup_ copy of anything - it'll be DELIVERY of
THE message

What are the perms on /etc/procmailrc ?

Have you tried this with VERBOSE=ON ?


In future posts to the procmail list, please try to avoid using fonts and
colours - plaintext is more likely to get you more responses.  Some
members, myself generally included, sometimes ignore such messages.  I
outright ignore messages which arrive as discrete file attachments for
that
matter.

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer:
<http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the
list.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail




_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>