procmail
[Top] [All Lists]

(no subject)

2001-01-04 01:36:30
Dear all: 

I am having some trouble getting procmail to work with sendmail.
I have followed many instructions, both in the manpages and in several
web pages, to no avail.
Basically I have set up a ~/.forward file with either one of these
lines:
"|/usr/bin/procmail -f-" or
"|IFS=' '&&p=/usr/bin/procmail&&test -f $p&&exec $p -f-||exit 75#fernan"

I have a .procmailrc file that is working, as tested using 'procmail -m
procmailrc' using test messages. However when i send test messages to
my local account through sendmail nothing happens. Mail is not even
delivered to my DEFAULT box (as appears in the procmail recipe, see
below).

After sending these test messages to myself i get these returned
messages:
   ----- The following addresses had permanent fatal errors -----
"|/usr/bin/procmail -f-"
    (expanded from: <fernan(_at_)iib(_dot_)unsam(_dot_)edu(_dot_)ar>)

   ----- Transcript of session follows -----
sh: procmail not available for sendmail programs
554 "|/usr/bin/procmail -f-"... Service unavailable


or 


   ----- The following addresses had permanent fatal errors -----
"|IFS=' '&&p=/usr/bin/procmail&&test -f $p&&exec $p -f- -t||exit
75#fernan"
    (expanded from: <fernan(_at_)iib(_dot_)unsam(_dot_)edu(_dot_)ar>)

   ----- Transcript of session follows -----
sh: cannot use & in command
554 "|IFS=' '&&p=/usr/bin/procmail&&test -f $p&&exec $p -f- -t||exit
75#fernan"... Service unavailable



My .procmailrc looks like this:

# make procmail run verbosely and log everyting
VERBOSE=on
LOGABSTRACT=all

# define the shell
SHELL=/bin/sh

# define the path, just in case
PATH=/usr/bin:/usr/local/bin

# The default location for mail folders
MAILDIR=$HOME/mail

# It's ALWAYS a good idea to have a logfile
LOGFILE=$HOME/procmail.logfile

# make sure DEFAULT has a value when invoking
# Procmail with a "-m" parameter and testing rcfiles.
DEFAULT=/home/fernan/mail/inbox

#####################################
# Filtering rules and recipes below #
#####################################

:0
*^Sender:\ (_dot_)*owner-freebsd-questions(_at_)FreeBSD(_dot_)ORG
freebsd-questions

:0
*^From:\ (_dot_)*pgsql-general-owner(_at_)hub(_dot_)org
pgsql

:0
*^Subject:\ .*test
tests


Privileges are set like this:
forward    is -rw-r--r--
procmailrc is -rw-r--r--
~/mail      is drwx------
~/          is drwx--x--x
/var/spool/mail/fernan is -rwxrw----, but neither -rw------- nor
-rw-rw---- works.


Also, in sendmail.cf I have these lines:
# are group-writable :include: and .forward files (un)trustworthy?
#O UnsafeGroupWrites

# Forward file search path
O ForwardPath=$z/.forward.$w:$z/.forward

Apparently sendmail is not piping through procmail ...
Do you share the same diagnostic? Where should I look now?


Thanks in advance for your help,

Fernan

-- 

# --------------------------------------------------------- #
#                                            _              #
#   Fernan Aguero            |              / \             #
#   Bioinformatics           |       ASCII  \ /  against    #
#   IIB-UNSAM                |      ribbon   /   HTML       #
#   fernan(_at_)iib(_dot_)unsam(_dot_)edu(_dot_)ar  |    campaign  / \  email   
   #
#   ICQ 100325972            |             /   \            #
#                                                           #
# --------------------------------------------------------- #

_______________________________________________
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>