procmail
[Top] [All Lists]

procmail for root user

2005-09-26 01:29:06
Hi,

I use procmail for 'normal' users to catch e-mails based on contents 
of To: or Subject: field, whithout problems. Now I want to use it also 
for catching mails sent to the root user of my system.

Set it up iwhile being su, as for a normal user (see below).
(all config files are owned by 'root' and of group 'other')

But it seems the "|/usr/local/bin/procmail" in /.forward is completely 
ignored: any mails sent to root now vanish without a trace. (Nothing in 
the /.procmail/log file..)

I tried it on two different SUN Solaris 2.9 machines.

What is wrong ?

Thanks for any help

Pieter
-----
setup:
# cd /
# mkdir .procmail
# chmod 700 .procmail

# vi /.procmailrc
MAILDIR=/mail
PMDIR=/.procmail
LOGFILE=$PMDIR/log
INCLUDERC=$PMDIR/procmailrc
# chmod 600 .procmailrc

# vi /.procmail/procmailrc
:0:
* ^Subject:.*TEST123
!pieter(_dot_)donche(_at_)ua(_dot_)ac(_dot_)be
# chmod 600 .procmail/procmailrc

# vi /.forward
"|/home/local/bin/procmail"
# chmod 600 .forward

(tried also with redirecting to a folder 
or using "|exec /home/local/bin/procmail" in /.forward
or \root, "|exec /home/local/bin/procmail" to verify /.forward is working)


\_______________
/ Pieter Donche \____________________________________________
| ITC Manager                  e-mail 
Pieter(_dot_)Donche(_at_)ua(_dot_)ac(_dot_)be \
| Dept. Mathem. & Computer Science, University of Antwerp    |
| (UA) Middelheimlaan 1, B 2020 Antwerpen,      BELGIUM (EU) |
| room G1.16,      tel +32 03.265.3870, fax +32 03.265.3777  |
|____________________________________________________________|

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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