Problem with email accounts - cannot login

wil3

New member
Joined
Apr 5, 2020
Messages
4
Hello,

I have a VPS server, Debian 10 x64, after installing Direct Admin any of email accounts I have created don't work (got login failed message). I've tried so far:

1. Dropping da_roundcube database and rebuilding roundcube
2. Rebuilding dovecot
3. Checked MX records for domain (OK)

None of these fixed the problem. I even changed system to CentOS8 - no luck. I can add email account in user panel, but there are no records in da_roundcube.users table and I can't login using roundcube or desktop email client.

Here are logs after creating one email account on a fresh install of direct admin (followed by adding a domain, ofcrs) and one login try in roundcube:

/var/www/html/roundcube/logs/errors.log

Code:
[05-Apr-2020 17:53:13 +0200]: <jpfj59tn> IMAP Error: Login failed for [email protected] against localhost from X.X.X.X. AUTHENTICATE PLAIN:  in /var/www/html/roundcubemail-1.4.3/program/lib/Roundcube/rcube_imap.php on line 200 (POST /roundcube/?_task=login&_action=login)

/var/log/maillog

Code:
Apr  5 17:49:50 serverdomain dovecot[6993]: master: Dovecot v2.3.10 (0da0eff44) starting up for imap, pop3, lmtp (core dumps disabled)
Apr  5 17:53:13 serverdomain dovecot[7007]: auth: Error: plain([email protected],127.0.0.1,<NyLkJY2iBM1/AAAB>): user not found from any userdbs
Apr  5 17:53:13 serverdomain dovecot[7007]: imap: Error: auth-master: login: request [1264582657]: Login auth request failed: Authenticated user not found from userdb, auth lookup id=1264582657 (auth connected 7 msecs ago, request took 6 msecs, client-pid=7029 client-id=1)
Apr  5 17:53:13 serverdomain dovecot[7007]: imap-login: Internal login failure (pid=7029 id=1): user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=18926, secured, session=<NyLkJY2iBM1/AAAB>

/var/log/exim/mainlog

Code:
2020-04-05 17:45:33 Warning: No server certificate defined; will use a selfsigned one.
 Suggested action: either install a certificate or change tls_advertise_hosts option
2020-04-05 17:45:33 Warning: purging the environment.
 Suggested action: use keep_environment.
2020-04-05 17:45:33 exim 4.93.0.4 daemon started: pid=16384, -q1h, listening for SMTP on port 25 (IPv6 and IPv4)
2020-04-05 17:45:33 Warning: No server certificate defined; will use a selfsigned one.
 Suggested action: either install a certificate or change tls_advertise_hosts option
2020-04-05 17:45:33 Start queue run: pid=16389
2020-04-05 17:45:33 End queue run: pid=16389
2020-04-05 17:50:21 cwd=/ 3 args: /usr/sbin/exim -bd -q1h
2020-04-05 17:50:21 exim 4.93.0.4 daemon started: pid=13829, -q1h, listening for SMTP on port 25 (IPv4) port 587 (IPv4) and for SMTPS on port 465 (IPv4)
2020-04-05 17:50:21 cwd=/var/spool/exim 2 args: /usr/sbin/exim -qG


root@serverdomain:~# host -t any mydomain.com
Code:
mydomain.com descriptive text "v=spf1 a mx ip4:X.X.X.X ~all"
mydomain.com mail is handled by 10 mail.mydomain.com.
mydomain.com has address X.X.X.X
mydomain.com has SOA record ns1.serverdomain.com. hostmaster.mydomain.com. 2020040500 14400 3600 1209600 86400
mydomain.com name server ns1.serverdomain.com.
mydomain.com name server ns2.serverdomain.com.

YES, I am sure I'm using a correct password :( Direct Admin has a trial licence, but I don't think it matters.

--
regards,
Szymon
 
I"m the same problem .I have login the admin account - in/out emails ok. Other account login failed.
 
DItto.
What's going on?
The error is:
User not found from any userdbs
 
I have the same problem on two new installations. any suggestion would be appreciated.
 
I have a similar problem

[07-Apr-2020 01:11:18 +0300]: <qqise17r> IMAP Error: Login failed for [email protected] against localhost from 176.40.241.183. AUTHENTICATE PLAIN: Authentication failed. in /var/www/html/roundcubemail-1.4.3/program/lib/Roundcube/rcube_imap.php on line 200 (POST /roundcube/?_task=login&_action=login)
 
When I look at the users table in the roundcube database; I saw that the e-mail address was not added

The problem is not only that, smtp or imap mail is not going from the server
 
I applied the problem is solved :)

 
It worked for me, too. Thanks for finding solution dj1sklero :)
 
Check if you can receive messages. I couldn't (Failed to connect to socket /var/run/dovecot/lmtp for dovecot_lmtp_udp transport: Connection refused)

Had to apply one more command:

./build dovecot_conf

So, in my case the solution was:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build dovecot d
wget -O /etc/dovecot/dovecot.conf "http://files.directadmin.com/services/custombuild/dovecot.conf.2.0"
./build todovecot
./build dovecot_conf
 
LOL, I did another clean install (reinstallation of VPS, all data has been removed, then I installed Direct Admin). No issues at all, without any modifications.

EDIT: I did it many times before and always there was a problem with email accounts.
 
EDIT: I did it many times before and always there was a problem with email accounts.
If you did everything exactly the same and now it works without any modification, it might have been an issue with the DA mirror being used.
Sometimes on or the other can cause issues for a short while.
 
I applied the problem is solved :)

Recently, I have the same issue. I solved using the above post but does anybody knows the root of the issue?

Thanks
 
As said, this could well be a DA mirror issue. Best is to see which mirror is used when starting, and which is used the second time.
Or just select another mirror, do a "./build all d" or just the parts not working and see if it's fixed then.
It's hard to state the root cause without any investigation.
 
Back
Top