Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qmail problems - can't login
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sidkdbl07
Apprentice
Apprentice


Joined: 25 May 2003
Posts: 184

PostPosted: Tue Jan 03, 2006 7:34 am    Post subject: qmail problems - can't login Reply with quote

I used the qmail/vpopmail tutorial to setup my mail server.

My problem is that I can't login with pine, or horde.

I can login to qmailadmin (which I have installed on the same server) so I know what the username and password are.

here is the entry i have in /var/log/everything/current
Quote:
[imapd-ssl] LOGIN FAILED, method=PLAIN, ip=[::ffff:127.0.0.1]

in .pinerc
Quote:
inbox-path={localhost:993/imap/ssl/novalidate-cert/user="sid@mydomain.com"}INBOX


Are these right? Any help is appreciated.


Last edited by sidkdbl07 on Thu Jan 05, 2006 7:14 am; edited 1 time in total
Back to top
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Tue Jan 03, 2006 8:16 am    Post subject: Reply with quote

are you using courier? what is your authdaemon configuration? what is inside /var/log/mail/current?
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
sidkdbl07
Apprentice
Apprentice


Joined: 25 May 2003
Posts: 184

PostPosted: Tue Jan 03, 2006 7:27 pm    Post subject: Reply with quote

I used the how-to located on the Gentoo website for qmail/vpopmail

I am using courier as per the instructions.

I'm using vpopmail to do my virtual hosting and I created a user using the following command
Quote:
vadduser sid@mydomain.com myPassword

The guide that I used had be setup a MySQL database for vpopmail. I don't know if that is enough information to determine my authdaemon. I have to admit, I don't know what you mean when you say "What is my authdaemon configuration?" Are you looking for a conf file?

I have the following entries repeated over and over in /var/log/mail/current
Quote:

Jan 2 23:46:24 [imapd-ssl] Connection, ip=[::ffff:192.168.1.1]
Jan 2 23:46:24 [imapd-ssl] LOGIN FAILED, user=sid@mydomain.com, ip=[::ffff:192.168.1.1]

Also in /var/log/mail/current
Quote:

Jan 1 23:49:58 [authdaemond] modules="authvchkpw", daemons=5
Jan 1 23:49:58 [authdaemond] Installing libauthvchkpw
Jan 1 23:49:58 [authdaemond] libauthvchkpw.so: cannot open shared object file: No such file or directory
Back to top
View user's profile Send private message
sidkdbl07
Apprentice
Apprentice


Joined: 25 May 2003
Posts: 184

PostPosted: Thu Jan 05, 2006 2:57 am    Post subject: Reply with quote

here is something I think may be relevant...

Quote:
->printf "postmaster@mydomain.com\0myPassword\0blah\0" | ./vchkpw `which id` 3<&0
uid=89(vpopmail) gid=89(vpopmail) groups=0(root)
->printf "sid@mydomain.com\0myPassword\0blah\0" | ./vchkpw `which id` 3<&0


There is no output for to second command. I tried adding 'sid' to the vpopmail group but that didn't seem to help anything.

Any ideas? I REALLY need help here.
Back to top
View user's profile Send private message
sidkdbl07
Apprentice
Apprentice


Joined: 25 May 2003
Posts: 184

PostPosted: Thu Jan 05, 2006 3:58 am    Post subject: Reply with quote

Quote:
->vdeluser sid@mydomain.com
->vadduser sid@mydomain.com myPassword
->printf "sid@mydomain.com\myPassword\0blah\0" | ./vchkpw `which id` 3<&0
uid=89(vpopmail) gid=89(vpopmail) groups=0(root)


Then I tried to login via pine and it didn't log me in. Then I tried this again...
Quote:
->printf "sid@mydomain.com\myPassword\0blah\0" | ./vchkpw `which id` 3<&0


The second time it doesn't work!!! What could cause this?

Here is /var/log/mail/current
Quote:
Jan 4 20:41:28 [vpopmail] vchkpw-pop3: (PLAIN) login success sid@mydomain.com:
Jan 4 20:43:35 [imapd-ssl] Connection, ip=[::ffff:127.0.0.1]
Jan 4 20:43:39 [imapd-ssl] LOGIN FAILED, method=PLAIN, ip=[::ffff:127.0.0.1]
- Last output repeated twice -
Jan 4 20:43:54 [imapd-ssl] LOGOUT, ip=[::ffff:127.0.0.1]
Jan 4 20:44:36 [vpopmail] vchkpw-pop3: password fail sid@mydomain.com:


I think I can safely say that it is a courier-imap problem, no?
Back to top
View user's profile Send private message
sidkdbl07
Apprentice
Apprentice


Joined: 25 May 2003
Posts: 184

PostPosted: Thu Jan 05, 2006 6:29 am    Post subject: Reply with quote

Well I solved one issue by re-emerging courier-authlib
In /var/log/mail/current the following message went away.
Quote:
Jan 1 23:49:58 [authdaemond] modules="authvchkpw", daemons=5
Jan 1 23:49:58 [authdaemond] Installing libauthvchkpw
Jan 1 23:49:58 [authdaemond] libauthvchkpw.so: cannot open shared object file: No such file or directory


I then re-emerged vpopmail and then imap-courier but I get the same issues. Sad.

Does ANYBODY have ANYTHING I can try?

Here is another thing that my be relevant....
I used to run Postfix and so I have a .maildir. Will my qmail install see that?
In /etc/courier-imap/imapd-ssl
I set MAILDIRPATH=.maildir and MAILDIR =.maildir

Is that ok?
Back to top
View user's profile Send private message
MoreCoffeePlease
n00b
n00b


Joined: 18 May 2004
Posts: 36
Location: London

PostPosted: Fri Jan 06, 2006 7:17 pm    Post subject: Reply with quote

Just a random thought that might not be any help at all, but I had similar trouble logging in with pop3-ssl following the guide that drove me crazy.

I eventually found the solution to that. Instead of starting authdaemon I needed to start courier-authlib as well as courier-pop3d-ssl. Not sure what services you're already running, but you might want to try this if you haven't already?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum