|
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.vinsander
teligent.se)
Date: Fri Sep 19 2003 - 21:22:00 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thnx!!!
I ended up with the following:
david maildirs # ls -la
total 2
drwxrwxr-x 3 root mail 72 Sep 20 02:50 .
drwxr-xr-x 9 root root 240 Sep 20 01:56 ..
drwx------ 5 auser auser 120 Sep 20 03:23 auser
...
Which work splendid!
It's really nice to have THE expert answering from the other side of the
big pond... fast and accurate!!! ;-)
/Andreas
Wietse Venema said:
> Andreas Vinsander:
>> 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=<xxxx
xxxxxxx.xx>,
>> relay=local, delay=0, status=bounced (maildir delivery failed: create
>> /var/spool/maildirs/xxxxx/tmp/1064019092.P5043.xxxxx.xxxxxxxx:
>> Permission denied)
>
> If you do this in a shared directory, then you need to create
> /var/spool/maildirs/username with the proper ownership, because
> Postfix delivers mail as the recipient.
>
>> 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.
>
> Correct.
>
>> 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.
>
> Correct. Postfix will not create maildirs in a world-writable
> directory. You need to create /var/spool/maildirs/username with
> the proper ownership.
>
> Wietse
>
>> 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
>>
>>
>>
>>
>>
>>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]