On Thu, Dec 19, 2002 at 01:13:17AM +0100, Mxsmanic wrote:
> What about appending directly to the mailbox file under /var/mail/$USER with
> the script?  It looks like the format of the file is very simple.  Why
> wouldn't that work?  I've tried writing to it, but I can't, at least not
> when the script runs from the aliases file (works fine when I run it myself,
> though).

mail.local(8) is probably what you want to use to do that.  However
your main problem will be getting sendmail to setuid() to the required
user before calling the mymail script.

        Cheers,

        Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
                                                      Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to