SUMMARY: prog Mailer run as given User ... ?

From: Jochen Bern (bern@penthesilea.uni-trier.de)
Date: Tue Oct 15 1996 - 11:00:29 CDT


X-Body-Checksum-Md5: d738893253895c42a0673c1f2d98aae7
Precedence: bulk

Original Question:
> This sounds like the idiotic Question of the Year, but I haven't been
> able to figure it out:
> I need to have sendmail (8.7.5 on 2.4 with smrsh - yes, I know 8.8 is
> out) pipe Mail to a specific Address into an Executable running *as a
> given (nonprivileged) User*.
> Situation in more Detail: Incoming Mails to this Address get preprocessed
> and the Result stored as single Files (hence no '/' Alias possible) into
> a Spool Dir. I don't trust the queueing Routine (hence not setuid root
> and using chown) nor the dequeueing / Execution Routine (hence requiring
> a special nonprivileged User) Admin-wise.

Answer:
Well, it seems as if going through that User's .forward (rather than
having centralized Control from /etc/mail/aliases) is the only Way to
do it. :-{ Or using a .procmailrc, for that Matter. Since I needed
a this-Purpose-only Userid and a Directory Structure anyway, I went
with .forward. Luckily, .forward doesn't need to be owned by that User.

Thanks to:
John Stoffel <jfs@jfs.fluent.com>
                                                                J. Bern

-- 
  /\  /""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\
 /  \/ bern@uni-trier.de    (Size Limit!)   | P.O. Box 1203 | Ham:  \/\
/ J. \ bern@ti.uni-trier.de (SUNAttachm.OK) | D-54202 Trier | DD0KZ /  \
\Bern/ No Finger etc.; Use Mail (Subj. "##" for Autoreply List) and \  /
 \  /\ WWW. /\/
  \/  \____________________________________________________________/



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:13 CDT