[Dovecot] Dovecot doesn't read users and passwords from config files
Greetings,
I am setting up Dovecot 1.0.15 on my home Fedora Core 8 pc ONLY to access my mail archives across several mail clients. No access from the internet is possible or needed here.
I cannot log in with any client, the login always fails. The reason, as I understand, is that when dovecot starts it doesn't read any user name from the userdb file, so when I try to login it doesn't recognize my name and so doesn't even try to verify the password:
maillog excerpt:
Aug 3 00:06:11 polaris dovecot: Dovecot v1.0.15 starting up Aug 3 00:06:11 polaris dovecot: auth(default): passwd-file /etc/local_dovecot_passwords: Read 0 users Aug 3 00:06:11 polaris dovecot: auth(default): passwd-file /etc/local_dovecot_users: Read 0 users Aug 3 00:06:12 polaris dovecot: auth(default): new auth connection: pid=5150 Aug 3 00:06:12 polaris dovecot: auth(default): new auth connection: pid=5148 Aug 3 00:06:12 polaris dovecot: auth(default): new auth connection: pid=5149 Aug 3 00:06:26 polaris dovecot: auth(default): client in: AUTH#0111#011PLAIN#011service=IMAP#011secured#011lip=127.0.0.1#011rip=127.0.0.1#011resp=AG1hcmNvAGdpZ2V0dG8= Aug 3 00:06:26 polaris dovecot: auth(default): passwd-file(marco,127.0.0.1): lookup: user=marco file=/etc/local_dovecot_passwords Aug 3 00:06:26 polaris dovecot: auth(default): passwd-file(marco,127.0.0.1): unknown user Aug 3 00:06:27 polaris dovecot: auth(default): client out: FAIL#0111#011user=marco Aug 3 00:06:27 polaris dovecot: imap-login: Disconnected: user=<marco>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
the dovecot.conf file, purged by comments, is below. What am I missing?
TIA, Marco ##############################################################
protocols = imap
listen = localhost:143 mail_location = maildir:/home/marco/.MAIL/home_imap/
protocol imap { }
protocol pop3 { }
protocol lda { postmaster_address = postmaster@example.com }
auth_debug = yes auth_debug_passwords = yes
auth default { mechanisms = plain login passdb passwd-file { args = /etc/local_dovecot_passwords } userdb passwd-file { args = /etc/local_dovecot_users } user = root } dict { } plugin { }
###################################################
the local_dovecot_passwords and local_dovecot_users files are identical, and have permission 644: marco:{PLAIN}thepassword:500:500::/home/marco/.MAIL/home_imap/
-- Reality is for those who lack imagination
On Sun, Aug 03, 2008 00:18:34 AM +0200, Marco Fioretti wrote:
Greetings,
I am setting up Dovecot 1.0.15 on my home Fedora Core 8 pc ONLY to access my mail archives across several mail clients. No access from the internet is possible or needed here.
I cannot log in with any client, the login always fails.
I forgot to add that, _before_ I changed the password and user files to what I reported, that is when the defaults in dovecot.conf were for authorization with system usernames and passwords, everything was fine. Is when I changed the auth mechanism that problem started.
Marco
On Sun, Aug 03, 2008 00:18:34 AM +0200, Marco Fioretti wrote:
Greetings,
I am setting up Dovecot 1.0.15 on my home Fedora Core 8 pc ONLY to access my mail archives across several mail clients. No access from the internet is possible or needed here.
I cannot log in with any client, the login always fails. The reason, as I understand, is that when dovecot starts it doesn't read any user name from the userdb file, so when I try to login it doesn't recognize my name and so doesn't even try to verify the password:
maillog excerpt:
Aug 3 00:06:11 polaris dovecot: Dovecot v1.0.15 starting up Aug 3 00:06:11 polaris dovecot: auth(default): passwd-file /etc/local_dovecot_passwords: Read 0 users
local_dovecot_passwords: marco:{PLAIN}thepassword:500:500::/home/marco/.MAIL/home_imap/
adding a newline to the line above solves the problem...
Marco
On Sun, Aug 03, 2008 00:18:34 AM +0200, Marco Fioretti wrote:
Greetings,
I am setting up Dovecot 1.0.15 on my home Fedora Core 8 pc ONLY to access my mail archives across several mail clients.
It's me again. Now that authentication is solved, I have a problem with this:
mail_location = maildir:~/.MAIL/home_imap/
what I meant is that, if I log in with Kmail and create with it a new , say TEMP_ARCHIVE, at the same level as INBOX it should appear in the filesystem at
/home/marco/.MAIL/home_imap/.TEMP_ARCHIVE
instead I just realized that it is at
/home/marco/.MAIL/home_imap/.MAIL/home_imap/.TEMP_ARCHIVE
what's happening?? is it a dovecot problem, and if yes how to fix it, or it is a kmail bug?
TIA, Marco
On Aug 3, 2008, at 1:52 AM, Marco Fioretti wrote:
marco:{PLAIN}thepassword:500:500::/home/marco/.MAIL/home_imap/
This says your home directory is /home/marco/.MAIL/home_imap/.
mail_location = maildir:~/.MAIL/home_imap/
This says you want it under <home directory>/.MAIL/home_imap/, i.e.:
/home/marco/.MAIL/home_imap/.MAIL/home_imap/.TEMP_ARCHIVE
So probably change the home dir in your passwd-file to be just /home/ marco
On Mon, Aug 04, 2008 01:14:42 AM +0300, Timo Sirainen wrote:
On Aug 3, 2008, at 1:52 AM, Marco Fioretti wrote:
marco:{PLAIN}thepassword:500:500::/home/marco/.MAIL/home_imap/
This says your home directory is /home/marco/.MAIL/home_imap/.
whoops... for some reason, I had assumed that the last field in this passwd file, which is needed only for imap management, had to be the home of the **imap folders**, instead of the home directory of their **user**. So your suggestion (I cannot check it now as must leave in a minute):
So probably change the home dir in your passwd-file to be just /home/marco
must be certainly right, even if I cannot check it now as must leave in a minute. I'll let you know if there are further problems, but almost certainly this is the right solution. Silly me! :-)
Thanks, Marco
There is more to life than increasing its speed. -- Mahatma Gandhi
participants (2)
-
Marco Fioretti
-
Timo Sirainen