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

Jesse Peterson jpeterson275 at attbi.com
Sat Dec 28 11:32:03 EET 2002



Timo Sirainen wrote:
> 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.
> 

More investigation brings some light into this.  If I create and move 
everything into a ~/Maildir, it seems to do okay, however, I want to set 
my default_mail_env to "maildir:%h" or "mbox:%h" and have that work, but 
so far, nothing.  Is there anything preventing this defualt_mail_env 
from working correctly?  It doesn't seem to work with these parameters 
as it is right now.

> 
>>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
> file.

Right, this works.

> 
> 
> 

-- 
Jesse Peterson
erage at softhome.net




More information about the dovecot mailing list