* Walter Holladay [Sat,  7 May 2005 at 17:39 -0600]
> I'm trying to setup a mail server using Postfix and courier-imap. 
> However, the documentation is a bit confusing. In /etc/postfix/main.cf 
> it says:
> # DELIVERY TO MAILBOX
> #
> # The home_mailbox parameter specifies the optional pathname of a
> # mailbox file relative to a user's home directory. The default
> # mailbox file is /var/spool/mail/user or /var/mail/user.  Specify
> # "Maildir/" for qmail-style delivery (the / is required).
> #
> #home_mailbox = Mailbox
> #home_mailbox = Maildir/
> 
> This is confusing because on the one hand it says you specify the 
> pathname relative to the user's home dir. But then is says the default 
> is /var/spool/mail/user. The only way I could make it work is to create 
> a Maildir directory in my home using "maildirmake." However, I would 
> rather have the Maildir be in /var/spool/mail. So.. what do I have to do 
> in order to make the Maildir reside in /var/spool/mail/user?
> 
> Thanks,
> Walter

I think postfix has a $user variable that can be used to substitute the
username, though I haven't verified this so you'll want to test.
Anyway, doing something like
home_mailbox = /var/spool/mail/$user
should do the trick.

Von Fugal

Attachment: signature.asc
Description: Digital signature

.===================================.
| This has been a P.L.U.G. mailing. |
|      Don't Fear the Penguin.      |
|  IRC: #utah at irc.freenode.net   |
`==================================='

Reply via email to