[dovecot] Re: passwd-file; configure args..

Timo Sirainen tss at iki.fi
Sat Dec 28 10:32:33 EET 2002

On Sat, 2002-12-28 at 09:57, Jesse Peterson wrote:
> I couldn't reproduce this again (because i can't get imap-master running 
> due to problem below..) but.. When compiling without shadow, passwd, or 
> pam, when logging in I get after a successful login (in my syslog):
> Dec 28 22:39:38 badcase imap(username): MAIL environment missing and 
> autodetection failed (home /some/home/directory)
> Now I thought this was covered in a previous fix before (ChangeLog: 
> "2002-12-17 03:00  Timo Sirainen <tss at iki.fi>")  but for some reason 
> it's broken again..?

This is different problem. The mailbox location detection isn't working
for some reason with you. Did it used to work, or is this just a
different user? ~/mail (mbox) or ~/Maildir has to exist to make Dovecot
know what to use.

> The configure args problem has to do with --localstatedir.  If i leave 
> it default (PREFIX/var) it forces me (even with non-relative pathnames 
> in the config file) for the socket-files (ssl_parameters_file, 
> login_dir) that should go in /var/run to be put under PREFIX, 
> (/usr/local for NetBSD 1.6).  Not too bad, if I could override it in the 
> config file, which I can't.  So I ./configure'd with --localstatedir=/, 
> and when I run imap-master I now get:
> Fatal: Can't create directory //run/dovecot: No such file or directory
> Somewhat odd.

Well, since the default is PREFIX/var, you'd just drop out the PREFIX.
ie. --localstatedir=/var. But I'm also a bit annoyed at this change,
have to do something about it so that it can be overridden in config

More information about the dovecot mailing list