On Fri, 16 Apr 2004, Jeff Waugh wrote:
> <quote who="David">
>
> > I want to send mail for an alias into a file thus:
> >
> > /etc/aliases:
> > foo: /home/david/foo/foomail
> >
> > but I get a permission problem with it. The mail bounces with a permission
> > denied message, even if I make /home/david/foo world writable.
> > If I send foo's mail to /tmp/foomail it works exactly as I would like it,
> > but creating a file owned by "nobody".
> >
> > Is there anyway to give "david" ownership of /home/david/foo/foomail?
>
> What you mean with "foo: /dir/file" really is "put mail into file". But what
> you really mean to say is "pipe mail into command", which is different. Like
> this:
>
> foo: |/usr/bin/procmail
No.. what I really mean is BOTH... two seperate exercises.
Quoting from man aliases:
/file/name
Mail is appended to /file/name.
which works fine for /tmp/ but not for /home/xxx/
In any case, the resulting file belongs has permissions thus:
-rw------- 1 nobody david 442 Apr 16 11:06 test
and I would like to make it something more useful.
Apart from that, I'm messing around with a piped command from
/etc/aliases but finding the permissions really confusing. Is there a
write up on this subject somewhere? I think the two problems are related.
Thanks
David
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html