[Dovecot] auth problem with dovecot-1.0.beta5
Hey folks,
Let me start by saying I really love what I see so far! Dovecot seems to be extremely feature-rich, and unlike a lot of free software the documentation is extremely good! I gave up on courier IMAP because of the poor documentation, and I have to say Dovecot sure differentiates itself in that area!
Unfortunately I still can't get it going :-/
First thing I noticed is that --with-shadow does not appear to be working on my FreeBSD 6.0 system. Here is what I built with :
./configure --prefix=/usr/local --enable-shared --enable-static --disable-ipv6 --with-ioloop =poll --with-passwd --with-shadow --with-pam --with-passwd-file --without-checkpassword --wit hout-bsdauth --without-gssapi --without-ldap --with-static-userdb --without-prefetch-userdb --without-sql --without-mysql --without-ssl --with-rundir=/var/run/dovecot --with-storages=mb ox --without-sql-drivers
However :
root@heimat# dovecot --build-options Build options: ioloop=poll Passdb: checkpassword pam passwd passwd-file vpopmail Userdb: checkpassword passwd passwd-file static vpopmail
And when I try to include the shadow options in the config file I get this in the log file :
Apr 8 17:07:38 heimat dovecot: auth(default): Unknown passdb driver 'shadow' (typo, or Dovecot was built without support for it? Check with dovecot --build-options)
No big deal. I've never used PAM, but I'll have a go at it.
My config file looks like this :
base_dir = /var/run/dovecot/ protocols = imap listen = 127.0.0.1 ssl_disable = yes first_valid_uid = 1000 last_valid_uid = 2000 first_valid_gid = 1000 last_valid_gid = 2000 default_mail_env = mbox:~/IMAP/:INBOX=/var/mail/%u mail_extra_groups = mail protocol imap { } auth_executable = /usr/local/libexec/dovecot/dovecot-auth auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890
auth default { mechanisms = plain userdb passwd { } passdb pam { # args = session=yes * args = * } #passdb passwd { #} # /etc/shadow or similiar, using getspnam(). Deprecated by PAM nowadays. #passdb shadow { #} user = root }
And I cannot get my webmail to auth. So I decided to "telnet localhost 143" and try typing the login command like the docs suggest. But here's what I get :
telnet localhost 143 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... Connected to localhost.dmz.alanmckay.com. Escape character is '^]'.
- OK Dovecot ready. LOGIN amckay XXXXXX LOGIN BAD Error in IMAP command received by server.
Something tells me there is a big problem here :-/
Which brings me to my next question : is there a "latest stable" release? I didn't see anything obvious on the website.
thanks! -Alan
-- "True Budo is done for the sake of building peace. Train every day so as to make peace between this spirit and all things manifested on the face of the Earth" - Ueshiba Morihei
Alan McKay wrote:
LOGIN amckay XXXXXX LOGIN BAD Error in IMAP command received by server.
Something tells me there is a big problem here :-/
"amckay" is not an IMAP command. Please note that the first token is usually a "command tag", ie. something that should be unique for every command client sends. Also note that you can't supply password with fancy characters as-is. See RFC 3501 for details on both issues.
Cheers. -jkt
-- cd /local/pub && more beer > /dev/mouth
"amckay" is not an IMAP command. Please note that the first token is usually a "command tag", ie. something that should be unique for every command client sends. Also note that you can't supply password with fancy characters as-is. See RFC 3501 for details on both issues.
OK, now I'm confused. I'm looking for the wiki page I was following but cannot find it now, but I was sure it said to do
LOGIN <username> <password>
And my password is just letters and numbers
Oh, here it is :
http://wiki.dovecot.org/TestInstallation#head-818ede1a60e8fb1900242b966b335b...
Ug, but in looking closer I see a 1 in front, and trying that it works!
So my problem must actually be with my (horde) webmail somewhere.
Thanks, and sorry for the stupid question ...
cd /local/pub && more beer > /dev/mouth
You may enjoy my website : http://www.bodensatz.com :-)
-- "True Budo is done for the sake of building peace. Train every day so as to make peace between this spirit and all things manifested on the face of the Earth" - Ueshiba Morihei
* On 08/04/06 18:13 -0400, Alan McKay wrote:
| > "amckay" is not an IMAP command. Please note that the first token is
| > usually a "command tag", ie. something that should be unique for every
| > command client sends. Also note that you can't supply password with
| > fancy characters as-is. See RFC 3501 for details on both issues.
|
| OK, now I'm confused. I'm looking for the wiki page I was following
| but cannot find it now, but I was sure it said to do
|
| LOGIN <username> <password>
001 LOGIN <username> <password>
002 LOGOUT
| And my password is just letters and numbers
|
| Oh, here it is :
|
| http://wiki.dovecot.org/TestInstallation#head-818ede1a60e8fb1900242b966b335b...
|
| Ug, but in looking closer I see a 1 in front, and trying that it works!
|
| So my problem must actually be with my (horde) webmail somewhere.
|
| Thanks, and sorry for the stupid question ...
|
| > cd /local/pub && more beer > /dev/mouth
|
| You may enjoy my website : http://www.bodensatz.com :-)
|
| --
| "True Budo is done for the sake of building peace. Train every day so as to make
| peace between this spirit and all things manifested on the face of the Earth"
| - Ueshiba Morihei
-Wash
http://www.netmeister.org/news/learn2quote.html
DISCLAIMER: See http://www.wananchi.com/bms/terms.php
--
+======================================================================+
|\ _,,,---,,_ | Odhiambo Washington
http://en.wikipedia.org/wiki/Usenet
-- "True Budo is done for the sake of building peace. Train every day so as to make peace between this spirit and all things manifested on the face of the Earth" - Ueshiba Morihei
On Saturday 2006-April-08 16:55, Alan McKay wrote:
Unfortunately I still can't get it going :-/
First thing I noticed is that --with-shadow does not appear to be working on my FreeBSD 6.0 system. Here is what I built with :
I don't know why it's building properly, but see also the thread from earlier this week (last week for Mark):
From: Mark Davies mark@mcs.vuw.ac.nz Subject: [Dovecot] plain auth problem with beta4 Date: Tue, 4 Apr 2006 12:50:44 +1200
He posted a followup with a patch. I'm using that successfully for
PLAIN mechanism and shadow passdb (Slackware Linux.)
Which brings me to my next question : is there a "latest stable" release? I didn't see anything obvious on the website.
Uh, yes and no. Beta 5 is probably what you want. The old "stable" 0.99's are much different, and unmaintained at this point. Timo was calling it "alpha" for a long time, until people here pressured him to call it a beta. :)
Offlist mail to this address is discarded unless
"/dev/rob0" or "not-spam" is in Subject: header
On Saturday 2006-April-08 17:16, I wrote:
First thing I noticed is that --with-shadow does not appear to be working on my FreeBSD 6.0 system. Here is what I built with :
I don't know why it's building properly, but see also the thread from earlier this week (last week for Mark):
Typo and ambiguous. I meant, "why it's *not* building properly". I was able to build --with-shadow (it was the default on Slackware) without Mark's patch, but it didn't work. I'm not sure if that's because I was testing with kmail.
Offlist mail to this address is discarded unless
"/dev/rob0" or "not-spam" is in Subject: header
participants (4)
-
/dev/rob0
-
Alan McKay
-
Jan Kundrát
-
Odhiambo WASHINGTON