OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: How do I use maildir style inboxes out of $(HOME)?

From: Andreas Vinsander (andreas.vinsanderteligent.se)
Date: Fri Sep 19 2003 - 20:58:19 CDT


Victor Duchovni said:
> On Fri, 19 Sep 2003, Andreas Vinsander wrote:
>
>> Hi!
>> I have had a hard time "googling" for how to make postfix deliver mail
>> for my local users to a maildir style inbox like
>> /var/spool/mail/<user>/
>>
>
> Read the description of "mail_spool_directory" in sample-local.cf.
>
> --
> Viktor.

Thnx Viktor, a really fast answer!

When enabling mail_spool_directory=/var/spool/maildirs/ I get the
following log.

Sep 20 02:51:32 [postfix/local] CB20C17B5A: to=<xxxxxxxxxxx.xx>,
relay=local, delay=0, status=bounced (maildir delivery failed: create
/var/spool/maildirs/xxxxx/tmp/1064019092.P5043.xxxxx.xxxxxxxx: Permission
denied)

What I can see from a 'ps' the [local] daemon runs as postfix. But I
presume that whatever is used to deliver the messages runs as the actual
user the mail is being delivered to.

All my users have private groups and have at least one common secondary
group (users).

I have tried to change the rights and ownerships of the
/var/spool/maildirs directory, without luck.
More "googling" gave me hints about using some virtual stuff, which seems
like overkill for me. I do only host a single domain.

What possible ways are there?

/Andreas