Setting IMAPd MAILDIR?

Stephen L. Martin freequest at networkiv.com
Sun Jan 2 05:11:17 PST 2005


On Sun, Jan 02, 2005 at 03:47:37AM -0800, Leonard Chung wrote:
> Hi there,
> 
> I recently upgraded courier-imap using portupgrade, and I've noticed
> that it no longer uses the proper maildir directory (./Maildir), but
> rather just the user home directory.
> 
> This seems to have to do with the change of courier-imap to rc.subr
> style scripts. It uses a variable called MAILDIRPATH which isn't defined
> anywhere that I can find:
> 
> If I delete ${MAILDIRPATH} and replace it with "./Maildir", then
> everything works fine. However, I imagine there is a better (i.e.
> recommended) place for me to put this information. This is a machine
> running 4.10REL.
> 
> Can somebody tell me where MAILDIRPATH is supposed to be defined within
> this new rc.subr scheme and also if anybody has any idea why the rc
> script uses a variable which is undefined?

$MAILDIRPATH gets defined with the MAILDIRPATH configuration option in
either /usr/local/libexec/imapd or /usr/local/libexec/pop3d; dependent
on which protocol you choose to run.

Example: MAILDIRPATH=Maildir

-Stephen


More information about the freebsd-questions mailing list