help! : procmail & .forward files

help! : procmail & .forward files

Post by Jonathan Ryland » Fri, 28 May 1999 04:00:00



I'm trying to configure a .forward file to redirect emails into the
procmail program.

I looked at the mail filtering faq at:

http://www.faqs.org/faqs/mail/filtering-faq/

and the tutorial (section 2.2) which suggests a .forward file,
consisting of:

"|IFS=' ' && exec /usr/local/procmail -f- || exit 75 #username"

I checked that procmail was in that location, and set my username.
I then created the .procmailrc, ~/.procmail folders and then
~/procmail/rc.testing files:

.procmailrc
========

#Set on when debugging
VERBOSE=off

#Replace `mail' with your mail directory (Pine uses mail, Elm uses Mail)

MAILDIR=$HOME/mail

#Directory for storing procmail log and rc files
PMDIR=$HOME/.procmail

LOGFILE=$PMDIR/log
INCLUDERC=$PMDIR/rc.testing
INCLUDERC=$PMDIR/rc.maillists

~/procmail/rc.testing
==============

:0:
* ^Subject:.*test
IN.testing

After sending messages with and without test in their subject, no email
appeared in IN.testing or in my inbox.

Does anybody know why either procmail doesn't recieve the messages or
why (if it does), it doesn't do anything with them?

Regards,

Jonathan Rylands

(comp1)

 
 
 

help! : procmail & .forward files

Post by Ken Pizzi » Sun, 30 May 1999 04:00:00


On Thu, 27 May 1999 17:33:08 +0100,


>I'm trying to configure a .forward file to redirect emails into the
>procmail program.
...
>and the tutorial (section 2.2) which suggests a .forward file,
>consisting of:

>"|IFS=' ' && exec /usr/local/procmail -f- || exit 75 #username"
>I checked that procmail was in that location, and set my username.
>I then created the .procmailrc, ~/.procmail folders and then
>~/procmail/rc.testing files:
...
>After sending messages with and without test in their subject, no email
>appeared in IN.testing or in my inbox.

>Does anybody know why either procmail doesn't recieve the messages or
>why (if it does), it doesn't do anything with them?

One possibility is that some mail-delivery software will balk if
it discovers too-wide permissions on control files.  Check that
the permissions on:
  $HOME
  $HOME/.forward
  $HOME/.procmailrc
  $HOME/.procmail
  $HOME/.procmail/rc.*
do not grant write permission to group or other.

Additionally, you might want to double-check that the .forward
file is being interpreted.  Try using a .forward file which
does a simple redirect to some other account (either an
account of yours on another machine or the account of a
cooperating confederate).  If that works, check to see that
deliver-to-a-pipe is working on your system with a .forward
like:
  "|cat >>/your/home/directory/testpipe"
and see if the "testpipe" file is being written to.

                --Ken Pizzini

 
 
 

1. mail forward problem in RH71 with procmail or .forward

I edited ~/.forward as


Not working.

So I did some research...
Seems sendmail 8.11.6 with RH71 is using procmail not mail for local
delivery thing.  So it not reading .forward.

So I edited ~./procmailrc

:0c

still no forwarding.

I wondering if sendmail 8.11.6 on RH71 disabled forwarding for security
and spam reason?

I did the following too

# ln -s  /usr/bin/procmail /etc/smrsh

according to redhat faq

/ming

2. NetBSD1-4 and more than 2 IDE drives :)

3. ip-forwarding && dns-forwarding

4. Qestion (stupid maybe)

5. Procmail & Mail2News Help Needed

6. File and Directory Permissions

7. HELP with Procmail & Easy ELM Question please....

8. StorEdge 4mm DDS-2 Autoloader manual?

9. forward first N bytes w/procmail?

10. Mail forwarding with procmail

11. procmail: forwarding huge messages elsewhere

12. Forward Mail / Procmail

13. Forward and procmail