OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Tomasz Papszun (tomek-postfix_at_lodz.tpsa.pl)
Date: Tue Feb 11 2003 - 16:01:15 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    On Tue, 11 Feb 2003 at 15:51:11 -0600, aaron martinez wrote:
    >
    > > # The mail_spool_directory parameter specifies the directory where
    > > # UNIX-style mailboxes are kept. The default setting depends on the
    > > # system type. Specify a name ending in / for maildir-style delivery.
    > > #
    > > #mail_spool_directory = /var/mail
    > > #mail_spool_directory = /var/spool/mail
    > >
    >
    > I tried this but i'm running into permission errors. When postfix tried to
    > create the user directory in the /var/spool/mail directory, it can't. Here
    > is my log.
    >
    > Feb 12 15:22:57 proficap01 postfix/local[862]: 42C213002C:
    > to=<phillocalhost.mhccom.com>, relay=local, delay=0, status=bounced
    > (maildir delivery failed: create
    > /var/spool/mail/phil/tmp/1045084977.862_0.proficap01.mhccom.com: Permission
    > denied)
    > Feb 12 16:22:57 proficap01 postfix/cleanup[861]: 47A703002A:
    > message-id=<20030212212257.47A703002Aproficap01.mhccom.com>
    > Feb 12 16:22:57 proficap01 postfix/nqmgr[810]: 47A703002A: from=<>,
    > size=2228, nrcpt=1 (queue active)
    > Feb 12 15:22:57 proficap01 postfix/local[862]: 47A703002A:
    > to=<postfixmhccom.com>, relay=local, delay=0, status=sent (maildir)
    >
    > If i manually create the user directory and then change the permissions and
    > ownership to the user, it works. Any way around this?

    Maybe:
    chgrp postfix /var/spool/mail
    chmod g+w /var/spool/mail

    I haven't tried it though. Also, I don't know whether there are some
    bad implications on security with such setup (of course if it works at
    all :-) ).

    -- 
     Tomasz Papszun   SysAdm  TP S.A. Lodz, Poland  | And it's only
     tomeklodz.tpsa.pl   http://www.lodz.tpsa.pl/   | ones and zeros.