[dovecot] passwd-file; configure args..
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@iki.fi") but for some reason it's broken again..?
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.
Any clues on either of these would be helpful, thanks.
-- Jesse Peterson erage@softhome.net
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@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 file.
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@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 file.
I've tried that, and it starts, with a message about fixing permissions of /var/run/dovecot, and then all I get is: Dec 29 01:05:48 badcase imap-master: child 9660 (auth) killed with signal 6 Dec 29 01:05:49 badcase imap-master: child 9662 (auth) killed with signal 6 Dec 29 01:05:51 badcase imap-master: child 9663 (auth) killed with signal 6 Dec 29 01:05:52 badcase imap-master: child 9664 (auth) killed with signal 6 Dec 29 01:05:53 badcase imap-master: child 9665 (auth) killed with signal 6 Dec 29 01:05:54 badcase imap-master: child 9666 (auth) killed with signal 6
If try to connect to the server, I get alternating (auth) and (login) "killed with signal 6" every second or so... weird.
-- Jesse Peterson erage@softhome.net
Fixed...
Jesse Peterson wrote:
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@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 file.
I've tried that, and it starts, with a message about fixing permissions of /var/run/dovecot, and then all I get is: Dec 29 01:05:48 badcase imap-master: child 9660 (auth) killed with signal 6 Dec 29 01:05:49 badcase imap-master: child 9662 (auth) killed with signal 6 Dec 29 01:05:51 badcase imap-master: child 9663 (auth) killed with signal 6 Dec 29 01:05:52 badcase imap-master: child 9664 (auth) killed with signal 6 Dec 29 01:05:53 badcase imap-master: child 9665 (auth) killed with signal 6 Dec 29 01:05:54 badcase imap-master: child 9666 (auth) killed with signal 6
If try to connect to the server, I get alternating (auth) and (login) "killed with signal 6" every second or so... weird.
For an odd reason, auth_user has to be root for it to not do this...
-- Jesse Peterson erage@softhome.net
On Sat, 2002-12-28 at 11:15, Jesse Peterson wrote:
I've tried that, and it starts, with a message about fixing permissions of /var/run/dovecot, and then all I get is: Dec 29 01:05:48 badcase imap-master: child 9660 (auth) killed with signal 6 Dec 29 01:05:49 badcase imap-master: child 9662 (auth) killed with signal 6 Dec 29 01:05:51 badcase imap-master: child 9663 (auth) killed with signal 6 Dec 29 01:05:52 badcase imap-master: child 9664 (auth) killed with signal 6 Dec 29 01:05:53 badcase imap-master: child 9665 (auth) killed with signal 6 Dec 29 01:05:54 badcase imap-master: child 9666 (auth) killed with signal 6
These are because of some bugs in syslog failure handler which I fixed a few hours ago. It tried to print an error message but died instead.
If try to connect to the server, I get alternating (auth) and (login) "killed with signal 6" every second or so... weird.
For an odd reason, auth_user has to be root for it to not do this...
It didn't have read-access to the passwd file?
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@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@softhome.net
On Sat, 2002-12-28 at 11:32, Jesse Peterson wrote:
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.
Yes, a stupid bug that I fixed now :)
participants (2)
-
Jesse Peterson
-
Timo Sirainen