Incoming mail problems

Dr-Host

Verified User
Joined
Mar 23, 2004
Messages
107
Location
Israel
After upgrading to devcot any mail box that I create via DA says that the account password is wrong via outlook & webmail, do I need to re transfer all of the accounts from the old format to the new one?

Thanks,
David
 
Hello,

A few things to check,
1) /etc/virtual/domain.com/passwd
Make sure it's using the new format, eg:
user:asdfg:500:12::/home/admin/imap/domain.com/user:/bin/false

2) Make sure dovecot is listening on 110:
Code:
[root@server]# [b]telnet localhost 110[/b]
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK Dovecot DA ready.
[b]QUIT[/b]
+OK Logging out
Connection closed by foreign host.
John
 
Well the passwd file looks like this:

webmaster:41BsV/VH7L8z2:501:12::/home/user/imap/domain.tld/webmaster:/bin/false

and the dovecot is listening on port 110

but it still says that the password is wrong, how can I change the passwd just for that mail? because via DA it doesn't help

Thanks,
David
 
Hello,

Here is what I do to test a password:
Code:
[server]# php
<?

echo crypt("[b]password[/b]", "41BsV/VH7L8z2");

?>

#press enter a few times here
#press ctrl-d.. twice if needed
Then it will dump out a crypt. If the crypt matches, the the password is right. If the crypt is different the the one used, then the password isn't right. Use the new crypt, paste it into where 41BsV/VH7L8z2 is, and save the passwd file. Now the password should work.

If the password *is* correct, but you can't login, check your /var/log/maillog for clues. Also a manual login test to dovecot would work too:
Code:
[server]# [b]telnet localhost 110[/b]
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK Dovecot DA ready.
[b]USER bob[/b]
+OK
[b]PASS fred[/b]
-ERR Authentication failed.
[b]QUIT[/b]
+OK Logging out
Connection closed by foreign host.
John
 
Well I've changed the passwd via DA
DA output:
Account password changed



Details


Your account [email protected] has been changed.

your new password is: q2w1e4r3
your new quota is: 10

and the user and line in passwd is:

adv:16z4YD4LLI8Og:501:12::/home/*user*/imap/*domain*/adv:/bin/false

then I did the php thing:

[root@server root]# php
<?

echo crypt("q2w1e4r3", "16z4YD4LLI8Og");

?>

16z4YD4LLI8Og

and then I did the telnet thing:

[root@server root]# telnet localhost 110
Trying 127.0.0.1...
Connected to dr-host.org (127.0.0.1).
Escape character is '^]'.
+OK Dovecot DA ready.
user [email protected]
+OK
PASS q2w1e4r3
-ERR Authentication failed.
QUIT
+OK Logging out
Connection closed by foreign host.

any more ideas?

Thanks,
David
 
Last edited:
Hello,


Is this a typo in copy/pasteing or the cause of the problem?
Code:
user adv@do[b]min[/b].tld
Past that, check your /var/log/maillog.

John
 
I've just copy and pasted the output and changed the real domain name to domin.tld instand of domain.tld it has no effect to the real problem heres an output for my domain hosted on that machine

DirectAdmin password change output
Account password changed



Details


Your account [email protected] has been changed.

your new password is: q1w2e3r4
your new quota is: 0

Click HERE to return to your pop list

passwd file
david:15YcslyCD5gkg:500:12::/home/admin/imap/dr-host.org/david:/bin/false


php output
php
<?
echo crypt("q1w2e3r4", "15YcslyCD5gkg");

?>


15YcslyCD5gkg


telnet output:
telnet localhost 110
Trying 127.0.0.1...
Connected to dr-host.org (127.0.0.1).
Escape character is '^]'.
+OK Dovecot DA ready.
user [email protected]
+OK
PASS q1w2e3r4
-ERR Authentication failed.
QUIT
+OK Logging out
Connection closed by foreign host.

this issue needs to be solved A.S.A.P i'm almost a week and a half without email now.


Thanks,
David


edit:

forgot to post /var/log/maillog output

Jan 24 09:45:03 server dovecot[31510]: pop3-login: Aborted login: method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
 
Last edited:
Hello

Hello DA Support

I am facing the same problem which Dr.Host faced. How can I resolve it ?
But I can login through webmail. Please help !!!

Thanks
 
Last edited:
Back
Top