[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Procmail battles



On Sat, 2006-05-13 at 14:48, Paul Michael Reilly wrote:

> LOGFILE=/root/procmail.log
> LOGABSTRACT=yes
> VERBOSE=1
> 
> and send mail to "root" then I actually see an abstract appended to
> /root/procmail.log which is consistent with the procmail man page in
> that it says $HOME/.procmailrc will get processed.  I leaped,
> incorrectly it would appear, to the conclusion that $HOME referred to
> the mail target.  It must be referring to the User running procmail,
> i.e. "root" on a stock Fedora Core system, which makes considerable
> sense.  This, I believe, is the crux of my battles.

$HOME is the expansion of the environment variable HOME, which
is set to the 6th field of the user's /etc/passwd file entry,
i.e. their home directory.  This happens in a straightforward
way during logins and is emulated in procmail runs. 

> So that raises the question: how does one configure mail (sendmail or
> otherwise) on a stock Fedora Core system so that ~User/.procmailrc
> will be processed for all User's on the system?

~user is expanded in a shell to the same thing as $HOME would be for
that user.  Sendmail should, by default, use procmail for everyone
which should then process their .procmailrc but it will not trust
files where the permissions allow write access by others.

-- 
  Les Mikesell
   lesmikesell gmail com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]