View previous topic :: View next topic |
Author |
Message |
stenny Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/The Fifth Element/movie_the_fifth_element_playa.gif)
Joined: 06 Feb 2003 Posts: 100 Location: Germany
|
Posted: Sat Sep 18, 2004 9:52 am Post subject: Cyrus imapd setup problem |
|
|
I'm just in progress updating my home server to Gentoo Linux. The server is currently running a cyrus imapd server and I now tried to set up this thing under Gentoo. Thererfor I emerged "cyrus-imapd", "cyrus-imap-admin" and "cyrus-sasl".
The components are emerged using "USE=-mysql".
For the first tests I'm using the delivered config files (/etc/cyrus.conf & /etc/imapd.conf) unchanged "as-is".
The mailbox users and the cyrus-admin are added to the SASL db using "saslpasswd2".
The imap server starts properly and is listening to the imap an pop3 ports as expected.
A "telnet localhost imap2" yields the welcome banner of cyrus imapd.
A "cyradm --user cyrus localhost" is working as expected (as well as for any other configured user). The user mailboxes are set up.
But I cannot connect to the imap server using any mail client.
Testing the login facility using "imtest" as suggested in the cyrus documentation only shows an error message.
The system log files in /var/log/* show absolutely nothing but the successfull logins using cyradm.
Any hint is greatly appreciated.
These are the messages appearing, when submitting the previously mentioned commands:
Code: |
troja root # imtest localhost
connect: Connection refused
failure: Network initialization
troja root # imtest -m login localhost
connect: Connection refused
failure: Network initialization
troja root # telnet localhost imap2
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK troja Cyrus IMAP4 v2.1.15 server ready
^]
telnet> quit
Connection closed.
troja root # cyradm --user cyrus localhost
Password:
localhost> lm
lists (\HasNoChildren) user.stenny (\HasNoChildren)
user.claudia (\HasNoChildren) user.vanessa (\HasNoChildren)
user.manuel (\HasNoChildren)
localhost> quit#
quit#: No such file or directory
localhost> quit
localhost> troja root #
|
Best regards
stefan |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xces Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Monkey.gif)
Joined: 11 Oct 2002 Posts: 515
|
Posted: Sat Sep 18, 2004 2:38 pm Post subject: |
|
|
Try the following:
Code: | imtest -p 143 -u YourUser localhost |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
stenny Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/The Fifth Element/movie_the_fifth_element_playa.gif)
Joined: 06 Feb 2003 Posts: 100 Location: Germany
|
Posted: Sat Sep 18, 2004 3:15 pm Post subject: |
|
|
xces wrote: | Try the following:
Code: | imtest -p 143 -u YourUser localhost |
|
thanks xces, now I'm getting closer. Seems to be an authentication problem, which I cannot solve at the moment.
This is, what I tried following your advice:
Code: | troja root # imtest -p 143 -u stenny troja
S: * OK troja Cyrus IMAP4 v2.1.15 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE STARTTLS LOGINDISABLED AUTH=NTLM AUTH=DIGEST-MD5 AUTH=CRAM-MD5 LISTEXT LIST-SUBSCRIBED X-NETSCAPE
S: C01 OK Completed
C: A01 AUTHENTICATE DIGEST-MD5
S: + bm9uY2U9IlVBSW1rUzBucGxvb...
Please enter your password:
C: dXNlcm5hbWU9InJvb3QiLHJlYWxtPS...
S: A01 NO user not found
Authentication failed. generic failure
Security strength factor: 128
. logout
* BYE LOGOUT received
. OK Completed
Connection closed.
troja root # cyradm --user stenny troja
Password:
troja.ilias.net> quit
troja root # |
And this are the resulting entries in the system log:
Code: | Sep 18 17:06:14 [imapd] no secret in database
Sep 18 17:06:14 [imapd] badlogin: localhost[127.0.0.1] DIGEST-MD5 [SASL(-13): user not found: no secret in database]
Sep 18 17:08:20 [imapd] no secret in database
Sep 18 17:08:20 [imapd] badlogin: troja.ilias.net[192.168.10.1] DIGEST-MD5 [SASL(-13): user not found: no secret in database]
Sep 18 17:08:57 [imapd] login: troja.ilias.net[192.168.10.1] stenny DIGEST-MD5 User logged in
|
I tried to change the "sasl_pwcheck_method" option in /etc/imapd.conf and set it to:
1. saslauthd and
2. pam
without any change. Users cannot log in and imtest shows error messages
So the question remains the same: Why can user stenny log in when using cyradm, but is rejected when trying imtest or any mail client?
regards
stenny |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
stenny Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/The Fifth Element/movie_the_fifth_element_playa.gif)
Joined: 06 Feb 2003 Posts: 100 Location: Germany
|
Posted: Tue Sep 21, 2004 10:37 pm Post subject: ... solved |
|
|
xces wrote: | Try the following:
Code: | imtest -p 143 -u YourUser localhost |
|
... is still not working.
It's really strange. I always get the same error messages from imtest (NO user found). But I can login to cyrus imapd with any mail client I tried (Mozilla, MS Outlook) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
augury l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/114295240844019829c6d3a.jpg)
Joined: 22 May 2004 Posts: 722 Location: philadelphia
|
Posted: Fri Sep 24, 2004 9:54 pm Post subject: |
|
|
i just got imtest to work by running /usr/lib/cyrus/imapd or one of the executable in that dir. (im using todays cvs without snmp kerberos or afs). i noticed (maybe this is cause i cvs updated the source) that the ebuild links it wrong. ill try using an email client now. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|