PDA

View Full Version : Can't login to mail client


bswinnerton
16th December 2007, 07:01
Hi there,

I have what I hope is a quick question..

I've just moved all of my mail, etc from my old server to my new one. However now none of my users can login except with the [domain]_username. They used to be able to login with just their email address. My virtusertable looks like this:

emailaddress [domain]_username

thanks!

bswinnerton
16th December 2007, 22:17
I'm very confused. I'm moving over my server to a new one. They both are running ubuntu and ispconfig. For some reason none of the new email addresses that I make can login (They're actually just the usernames from the old server). But I can login to the ones I made before I started editing the virtusertable. On those I can only login on my [domain]_username not just the email account.

Can anyone help?

bswinnerton
16th December 2007, 23:14
Could it have anything to do with the fact that I haven't implemented the server yet? For example I haven't actually changed its ip address to what DNS is pointing to...

P.S. I'm not sure if it will make any difference but i'm using RoundCube. Could it have something to do with the SQL database? Or would it be a virtusertable thing?

bswinnerton
17th December 2007, 03:31
This is a very weird problem. It works for certain names. Now this is the exact process that I got some of them to work (Could have nothing to do with it).

Went to ISPConfig, copied the username into my clipboard, changed the password and then went to my roundcube login page. Pasted the username and then put in the password that I reset. After that I login, and then logout again and try logging in as the email address instead of the username and it works. However that only works with some of the accounts, not others.

Please help.

falko
17th December 2007, 17:00
Any errors in your mail log?
Please make sure that all user names are listed in /etc/passwd and /etc/shadow.

bswinnerton
17th December 2007, 18:15
Yes all of the usernames are there, and in the correct form as well. If it helps any, I am going from just username to [domain]_username now, and in /etc/passwd and /etc/shadow they are listed as the correct form ([domain]_username)

Here is my /var/mail.log when I try to login:

Dec 17 11:10:24 CW-Webserv imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 17 11:10:24 CW-Webserv imapd: LOGIN FAILED, user=bswinnerton, ip=[::ffff:127.0.0.1]
Dec 17 11:10:29 CW-Webserv imapd: Disconnected, ip=[::ffff:127.0.0.1], time=5

falko
18th December 2007, 18:12
Which distribution are you using?

bswinnerton
18th December 2007, 18:28
Gusty Gibbon for Ubuntu

falko
19th December 2007, 18:33
Not sure what the problem is...
What's the output of ls -l /bin/sh?

bswinnerton
19th December 2007, 18:49
lrwxrwxrwx 1 root root 9 2007-07-28 13:50 /bin/sh -> /bin/bash

Just for my own reference, what does that do?

falko
20th December 2007, 17:25
/bin/sh -> /bin/bash is how it should be. It means that /bin/sh is a symlink to /bin/bash. The Ubuntu default is a symlink from /bin/sh to /bin/dash instead which can cause problems.

bswinnerton
23rd December 2007, 06:36
Hmm, so that means that everything is correct. Any other ideas?

falko
24th December 2007, 14:19
Unfortunately no... :(

bswinnerton
30th January 2008, 16:13
For future reference for anyone else that seems to have this problem.. I realized what my problem was after re-doing my entire server.

I didn't have the maildir checkbox enabled under Management > Server > Settings > E-Mail

Hope no one else ever has this problem!