* David W. Tamkin <dattier(_at_)ripco(_dot_)com> [20011105 17:40]: writing on
the subject 'Re: procmailrc without $HOME'
| Apparently I did have it all wrong; no big surprise when it comes to
| administrative stuff, with which I have no experience.
|
| | 1. Procmail will not automatically read rcfile code from files in
| | /etc/procmailrcs/. You have to send procmail there with an INCLUDERC or
| | SWITCHRC assignment; usually that's done in /etc/procmailrc rather than in
| | ~/.procmailrc.
|
| | 2. If /etc/procmailrc has told procmail to SWITCHRC to an rcfile in
| | /etc/procmailrcs/, and procmail gets to the end of the rcfile in
| | /etc/procmailrcs/ without final delivery, procmail will go to
| | ~/.procmailrc.
|
| It seems that /etc/procmailrcs/somefile has special meaning only when it is
| the command-line argument to procmail's -m option. Since -m turns off the
| automatic reading of /etc/procmailrc and of $HOME/.procmailrc, there are no
| conflicts of precedence.
|
| | 3. If procmail is running setuid root as the LDA and is sent off to
| | process a file in /etc/procmailrcs/, it will ... setuid to the owner of
| | the link (hard or soft) by which the file in /etc/procmailrcs/ is called
| | and setgid to that user's logon group.
|
| Let me try again: if procmail is running setuid root (even if invoked from a
| .forward file or a shell prompt) and -m /etc/procmailrcs/something is
| specified on its command line, it will setuid to the owner of the link, and
| I still guess that it would setgid to that user's logon group (rather than
| the group of the link).
Hello David,
That was a really neat go at it. I think it's now left for us to do the tricky
work of testing these things. Since I have many boxes around me, I can afford
to do the tests.
Now just a final question: Is it possible to handle an mail alias with procmail
-m rcfile? This is a situation where the file in /etc/procmailrcs/. is either
owned by root or nobody. This goes against the grain of having either a
~/.procmailrc
or /etc/procmailrcs/$username.
tia
-Wash
--
/"\
Odhiambo Washington \ / ASCII Ribbon Campaign
Wananchi Online Ltd., X Against HTML Mail,
PO Box 10286, / \ HTML News Too, and
00100 NAIROBI, KE. MS WORD docs.
++
It is not whether your words or actions are tough or gentle; it is the spirit
behind your actions and words that announces your inner state.
-Ching Ning Chu
pgpVQw61vwI9V.pgp
Description: PGP signature