OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: aaron martinez (aaron_at_philngood.com)
Date: Tue Feb 11 2003 - 15:51:11 CST

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

    ----- Original Message -----
    From: "Tomasz Papszun" <tomek-postfixlodz.tpsa.pl>
    To: "aaron martinez" <aaronphilngood.com>
    Cc: <postfix-userspostfix.org>
    Sent: Tuesday, February 11, 2003 12:28 PM
    Subject: Re: /var/spool/mail/$userdir?

    > On Tue, 11 Feb 2003 at 12:19:43 -0600, aaron martinez wrote:
    > > Sorry for the HTML, it should be pllain text now
    > >
    > > Aaron
    >
    > Yes, there is.
    > But quoting all this HTML junk AGAIN was even worse idea of you :-( .
    > One time was one time too many.
    >
    > > > On Tue, 11 Feb 2003 at 12:03:46 -0600, aaron martinez wrote:
    > > >
    > > > This is a multi-part message in MIME format.
    > > >
    > > > I searched the archives for this..and found some stuff way back in
    2000 =
    > > > but never saw an answer that i could decipher.
    > > >
    > > > I just installed RH8 and have been using Postfix for some time now on
    a =
    > > > Mandrake box.
    > > > I'm wondering is there is a way to, instead of creating a /Maildir in
    =
    > > > each user's home directory, if i can send each user's mail to =
    > > > /var/spool/mail/$usernamedir. I use cyrus on this machine as well. =
    > > > None of my users need a home directory as none of them can log into
    the =
    > > > machine, so the /var/spool/mail format is much easier to backup. I do
    =
    > > > like the speed of the maildir format however, this outweighs the =
    > > > simplicity of having everything go to /var/spool/mail.
    > > >
    > > > I just want to know if this is possible editing the main.conf or =
    > > > master.cf
    >
    > [ A couple screenfuls of junk removed. ]
    >
    > This is described in sample-local.cf.gz:
    >
    > # 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
    >
    > Place it in main.cf.
    > Note: this is a different parameter than home_mailbox.
    >

    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?

    Aaron

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