Discussion:
[Courier-imap] imapd: LOGIN FAILED
Pernilla Uhlin
2003-11-19 23:49:21 UTC
Permalink
Hi,

I'm quite new to courier-imap and just installed it. I have a set of user in /etc/passwd (and my system use shadow passwords), and my configuration is as shown:

authdaemonrc:
authmodulelist="authshadow authpwd"
authmodulelistorig="authcustom authcram authuserdb authshadow authpwd"

imapd:
AUTHMODULES="authshadow authpwd"
AUTHMODULES_ORIG="authshadow authpwd"

imapd-ssl:
IMAPDSSLSTART=YES

I stop and start to make sure these configurationes are the one used by:

/etc/init.d/imap stop/start
/etc/init.d/imaps stop/start
/usr/local/libexec/authlib/authdaemond restart

In my /etc/passwd I have:
pernilla:x:1012:100:Pernilla Uhlin,,,:/home/pernilla:/bin/bash

authtest gives me:
***@server3: /usr/local/libexec/authlib/authtest pernilla
Authenticated: module authdaemon
Home directory: /home/pernilla
UID/GID: 1012/100
AUTHADDR=pernilla
AUTHFULLNAME=Pernilla Uhlin

authinfo gives me:
AUTHDAEMONMODULELIST="authcustom authcram authuserdb authshadow authpwd"
SASL_AUTHENTICATION_MODULES="CRAM-SHA1 CRAM-MD5 PLAIN LOGIN"

authshadow:
AUTHFAILURE

authpwd:
AUTHFAILURE


Then, I'm trying to login with:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE] Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc. See COPYING for distribution information.
a login ***@b3.sysinst.ida.liu.se password_for_pernilla
a NO Login failed.
Connection closed by foreign host.

The log-files contains:

***@server3: ~# tail /var/log/messages
Nov 20 00:13:42 server3 authdaemond.plain: authdaemon: modules="authshadow", daemons=5
Nov 20 00:14:02 server3 authdaemond.plain: authdaemon: modules="authshadow", daemons=5
Nov 20 00:20:26 server3 authdaemond.plain: authdaemon: modules="authshadow", daemons=5
Nov 20 00:23:02 server3 authdaemond.plain: authdaemon: modules="authshadow authpwd", daemons=5
Nov 20 00:41:39 server3 authdaemond.plain: authdaemon: modules="authshadow authpwd", daemons=5


/var/log/syslog:
Nov 20 00:16:24 server3 imapd: LOGIN FAILED, ip=[::ffff:127.0.0.1]
Nov 20 00:20:26 server3 authdaemond.plain: authdaemon: modules="authshadow", daemons=5
Nov 20 00:20:44 server3 imapd: Connection, ip=[::ffff:127.0.0.1]
Nov 20 00:21:02 server3 imapd: LOGIN FAILED, ip=[::ffff:127.0.0.1]
Nov 20 00:23:02 server3 authdaemond.plain: authdaemon: modules="authshadow authpwd", daemons=5


Can somebody please help me?

Thanks in advance!

Pernilla Uhlin
Nai`a
2003-11-20 00:46:51 UTC
Permalink
Post by Pernilla Uhlin
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE] Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc. See COPYING for distribution information.
**********************

Um... Have you tried just:

a login pernilla password_for_pernilla

Aloha mai Nai`a!
--
"Micro$oft Delenda Est." http://www.lava.net/~mjwise/
Pernilla Uhlin
2003-11-20 09:20:17 UTC
Permalink
Hi,

that did the trick of course! ;)

Thanks.

Now I only have anotther question, I succed to send a message to the address stated below, and a look in the errorlog gave me this:

imapd-ssl: /usr/local/bin/couriertls: No such file or directory

A search through my system indicated that I don't have this file. Do I need it and shouldn't it be a part of courier-imap?

--Pernilla Uhlin


On Wed, 19 Nov 2003 14:46:51 -1000 (HST)
Post by Nai`a
Post by Pernilla Uhlin
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE] Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc. See COPYING for distribution information.
**********************
a login pernilla password_for_pernilla
Aloha mai Nai`a!
--
"Micro$oft Delenda Est." http://www.lava.net/~mjwise/
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Courier-imap mailing list
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
Brian Candler
2003-11-20 10:06:50 UTC
Permalink
Post by Pernilla Uhlin
imapd-ssl: /usr/local/bin/couriertls: No such file or directory
courier-imap doesn't deliver mail, so probably that message only occurred
when you tried to connect to the mailbox using IMAP over SSL to read
messages.
Post by Pernilla Uhlin
A search through my system indicated that I don't have this file. Do I need it and shouldn't it be a part of courier-imap?
Yes it should be there, so you have an incomplete installation if it is
missing. Possible problems include:
(1) You are using someone's precompiled package, and they forgot to include
it [solution: build courier-imap from source instead]
(2) You do not have OpenSSL libraries in your system
(3) OpenSSL libraries were not found at compile time

You can check config.log to see if OpenSSL was found. If not, you may need
to set something like

CPPFLAGS="-I/usr/local/include"; export CPPFLAGS
LDFLAGS="-L/usr/local/lib"; export LDFLAGS
./configure ...etc

where of course those directories are the locations of the openssl header
files and libraries respectively.

Brian.
Pernilla Uhlin
2003-11-20 15:29:13 UTC
Permalink
Hi,

I configured courier using:

./configure CPPFLAGS="-I/usr/local/ssl/include" LDFLAGS="-L/usr/local/ssl/include/openssl -L/usr/local/lib -L/usr/local/ssl" --prefix=/usr/local --exec-prefix=/usr/local --disable-root-check --with-ssl

Since, courier have had problems with finding my openssl. Without these flags courier can't compile at all, it stucks at the make command after a while saying "couldn't find ssl.h" or something like that. But when I added the -CPPFLAG it seems to work, so by this I assumed that the installation cointained ssl-support?

/Pernilla Uhlin

On Thu, 20 Nov 2003 10:06:50 +0000
Post by Brian Candler
Post by Pernilla Uhlin
imapd-ssl: /usr/local/bin/couriertls: No such file or directory
courier-imap doesn't deliver mail, so probably that message only occurred
when you tried to connect to the mailbox using IMAP over SSL to read
messages.
Post by Pernilla Uhlin
A search through my system indicated that I don't have this file. Do I need it and shouldn't it be a part of courier-imap?
Yes it should be there, so you have an incomplete installation if it is
(1) You are using someone's precompiled package, and they forgot to include
it [solution: build courier-imap from source instead]
(2) You do not have OpenSSL libraries in your system
(3) OpenSSL libraries were not found at compile time
You can check config.log to see if OpenSSL was found. If not, you may need
to set something like
CPPFLAGS="-I/usr/local/include"; export CPPFLAGS
LDFLAGS="-L/usr/local/lib"; export LDFLAGS
./configure ...etc
where of course those directories are the locations of the openssl header
files and libraries respectively.
Brian.
Nai`a
2003-11-20 16:18:42 UTC
Permalink
Post by Pernilla Uhlin
Since, courier have had problems with finding my openssl.
What do you get when you run the following?

% which openssl
Post by Pernilla Uhlin
Without these flags courier can't compile at all, it stucks at the make
command after a while saying "couldn't find ssl.h" or something like
that.
That's the symptom, not the problem.
Fix the problem, and the symptom will go away.

http://www.openssl.org/
Post by Pernilla Uhlin
But when I added the -CPPFLAG it seems to work, so by this I assumed
that the installation cointained ssl-support?
The ssl-support is THERE, just not the SSL, by the sound of things.

Aloha mai Nai`a!
--
"Micro$oft Delenda Est." http://www.lava.net/~mjwise/
Pernilla Uhlin
2003-11-20 16:32:08 UTC
Permalink
Post by Nai`a
which openssl
/usr/bin/openssl
Post by Nai`a
netstat -na | grep 'LISTEN'
tcp 0 0 0.0.0.0:1024 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:37 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:13 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 130.236.189.91:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6012 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6013 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6014 0.0.0.0:* LISTEN

-Pernilla Uhlin

On Thu, 20 Nov 2003 06:18:42 -1000 (HST)
Post by Nai`a
Post by Pernilla Uhlin
Since, courier have had problems with finding my openssl.
What do you get when you run the following?
% which openssl
Post by Pernilla Uhlin
Without these flags courier can't compile at all, it stucks at the make
command after a while saying "couldn't find ssl.h" or something like
that.
That's the symptom, not the problem.
Fix the problem, and the symptom will go away.
http://www.openssl.org/
Post by Pernilla Uhlin
But when I added the -CPPFLAG it seems to work, so by this I assumed
that the installation cointained ssl-support?
The ssl-support is THERE, just not the SSL, by the sound of things.
Aloha mai Nai`a!
--
"Micro$oft Delenda Est." http://www.lava.net/~mjwise/
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Courier-imap mailing list
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
Brian Candler
2003-11-21 00:28:53 UTC
Permalink
Post by Pernilla Uhlin
Hi,
./configure CPPFLAGS="-I/usr/local/ssl/include" LDFLAGS="-L/usr/local/ssl/include/openssl -L/usr/local/lib -L/usr/local/ssl" --prefix=/usr/local --exec-prefix=/usr/local --disable-root-check --with-ssl
Looking at that, I'd guess you need -L/usr/local/ssl/lib in your LDFLAGS.
Try that. (-L is the path to the directory which includes the .a or .so
files which are the libraries themselves)
Post by Pernilla Uhlin
Since, courier have had problems with finding my openssl. Without these
flags courier can't compile at all, it stucks at the make command after a
while saying "couldn't find ssl.h" or something like that. But when I
added the -CPPFLAG it seems to work, so by this I assumed that the
installation cointained ssl-support?
Well, it might have found the header file, but it still might need to find
the library.

If you find the pop3d or imapd executable, and do "ldd pop3d" or "ldd
imapd", what do you see?

If this is a Solaris system you may also need to add /usr/local/ssl/lib into
your linker runtime path using crle.

Brian.

Sam Varshavchik
2003-11-20 12:12:04 UTC
Permalink
Post by Pernilla Uhlin
Hi,
that did the trick of course! ;)
Thanks.
imapd-ssl: /usr/local/bin/couriertls: No such file or directory
A search through my system indicated that I don't have this file. Do I need it and shouldn't it be a part of courier-imap?
This is the SSL/TLS wrapper. If you don't have it, it means that SSL/TLS
support was not compiled because OpenSSL development libraries are not
installed.
Nai`a
2003-11-20 16:15:24 UTC
Permalink
Post by Pernilla Uhlin
Now I only have anotther question, I succed to send a message to the
imapd-ssl: /usr/local/bin/couriertls: No such file or directory
% netstat -na | grep 'LISTEN'

Does a reference to port 993 show up?

It seems as though ipamd-ssl.rc has been called, but Courier didn't build
with SSL / TLS support, which PROBABLY means a problem with it being able
to find OpenSSL on your machine.
Post by Pernilla Uhlin
A search through my system indicated that I don't have this file. Do I
need it and shouldn't it be a part of courier-imap?
I think so. (8-)

Aloha mai Nai`a!
--
"Micro$oft Delenda Est." http://www.lava.net/~mjwise/
Brian Candler
2003-11-20 09:20:04 UTC
Permalink
Post by Pernilla Uhlin
Hi,
authmodulelist="authshadow authpwd"
authmodulelistorig="authcustom authcram authuserdb authshadow authpwd"
AUTHMODULES="authshadow authpwd"
AUTHMODULES_ORIG="authshadow authpwd"
There you should have
AUTHMODULES="authdaemon"

(if you built courier-imap with authdaemon, then I don't think you get the
standalone modules)
Loading...