Yes, thanks to all who answered.
Apparently in Linux, there is no need to have the /usr/bin/procmail
in the .forward file at all, because sendmail is already using it as
the local delivery agent in sendmail.cf
sendmail.cf itself has a "O DefaultUser: 1:1" setting which
forces it to user bin when calling a piped program in the .forward
if the .forward belongs to root. Doesn't happen for normal users.
So taking procmail out of the .forward makes everything work
properly because sendmail can deliver as root freely.
Thanks to all who helped.
Homer
------------------------------------------------------------------------
Homer Wilson Smith Clear Air, Clear Water, Art Matrix - Lightlink
(607) 277-0959 A Green Earth and Peace. Internet Access, Ithaca NY
homer(_at_)lightlink(_dot_)com Is that too much to ask?
http://www.lightlink.com
On Fri, 28 Jul 2000, John Summerfield wrote:
Procmail goes directly for the file /var/spool/mail/root where by
default all mail comes to rest when it is delivered, but only in each
users individual file.
I have two accounts setup, root in /root and jes in /home/jes
Each has the following forward
.forward = "| exec /usr/bin/procmail"
Neither has .procmailrc
Mail sent to jes(_at_)romance(_dot_)lightlink(_dot_)com is delivered to
/var/spool/mail/jes
Mail sent to root(_at_)romance(_dot_)lightlink(_dot_)com is delivered to
/var/spool/mail/bin
On my SunOS system, running the same version of procmail,
mail sent to root is delivered properly to root and not bin.
You don't mention your distro... afaik most|all invoke procmail directly from
sendmail. Check your /etc/sendmail.cf
Don't you get the delivery you want without ~/.forward?
here's how procmail looks here:
[summer(_at_)possum summer]$ dir -l /usr/bin/procmail
-rwsr-sr-x 1 root mail 76432 Feb 8 04:51 /usr/bin/procmail
[summer(_at_)possum summer]$
Standard RHL 6.1 (in this respect).
_______________________________________________
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