OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: .forward & alias operation

From: Wietse Venema (wietseporcupine.org)
Date: Wed May 28 2003 - 09:12:24 CDT


Ken Gillett:
> I've found that attempting to append to the mailbox file from an alias
> is a problem with permissions etc, whereas a .forward in the user's
> home directory can utilise that user's permissions and the message does
> get appended to the file, but there's still an error:
>
> "warning: unable to create lock file /var/spool/mail/ken.lock:
> Permission denied"
>
> yet the message IS appended so the process CAN write to files in that
> directory. Why can it not create this file? Does it matter? How can I
> eliminate this error?

You have a /var/mail that requires group write privileges.
One workaround is to chmod 1777.

        Wietse
>
> On Tuesday, May 27, 2003, at 07:47 pm, Wietse Venema wrote:
>
> > Postfix does not recognize \user as special. The feature is also
> > subject to abuse because it allows OTHER users to control where
> > YOUR mail is delivered.
>
> To be honest I don't see why you say that. It is all controlled by the
> aliases file and local .forward files in either case so why is
> Sendmail's use of the backslash so awful? In fact it seems to me to be
> a rather more elegant solution to allowing manual prevention of mail
> loops than the convoluted approach I am now having to take with
> Postfix, which in all other respects is a much cleaner more elegant
> application than Sendmail.
>
> > To do this with Postfix,
> >
> > /etc/postfix/main.cf:
> > recipient_delimiter = +
> >
> > /etc/aliases:
> > keng: ken+foo
> >
> > ~ken/.forward+foo:
> > "|some command that appends to ken's local mailbox"
> > /pathname/of/mailbox
>
> I've noticed another oddity. The timestamps on maillog entries are
> correct for postfix/local, but the pickup, cleanup and nqmgr are some 3
> hours out. I did correct the time after booting and first running
> Postfix, but, time is now correct and I've re-started Postfix, but
> these lines are still being created wrong. Where's it getting this time
> from?
>
>
>
> Ken G i l l e t t
>
> _/_/_/_/_/_/_/_/_/
>
>
>