Mail Account created via DA doesnt exist in webmail

ank1t

Verified User
Joined
Dec 13, 2005
Messages
19
I am facing a weird problem on a new directadmin install.

Each time i create a new email account via the DirectAdmin I get this error while trying to login into it:

--------- On Webmail -----
Login Error
Login Error - You cannot Login with the Username and Password Entered.

Please check the Username and Password and try again.
--------

--------- On Roundcube -----
Login Error
--------

---Windows Mail---
authetication failed
-------

This is just not true for one user but almost all the domains I have checked that exist on this new install.
 
1. Checked /var/log/maillog

=== Log /var/log/maillog ===

Dec 28 07:25:19 server dovecot[2332]: auth(default): shadow([email protected],127.0.0.1): unknown user
Dec 28 07:25:19 server dovecot[2332]: auth(default): passwd([email protected],127.0.0.1): unknown user
Dec 28 07:25:19 server dovecot[2332]: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Dec 28 07:25:19 server dovecot[2332]: POP3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Dec 28 07:26:20 server dovecot[2332]: auth(default): shadow([email protected],127.0.0.1): unknown user
Dec 28 07:26:20 server dovecot[2332]: auth(default): passwd([email protected],127.0.0.1): unknown user
Dec 28 07:26:20 server dovecot[2332]: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Dec 28 07:26:20 server dovecot[2332]: POP3([email protected]): Disconnected: Logged out top=2/2835, retr=0/0, del=0/2, size=3241
Dec 28 07:27:12 server dovecot[2332]: auth(default): shadow([email protected],127.0.0.1): unknown user
Dec 28 07:27:12 server dovecot[2332]: auth(default): passwd([email protected],127.0.0.1): unknown user
Dec 28 07:27:12 server dovecot[2332]: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Dec 28 07:27:12 server dovecot[2332]: POP3([email protected]): Disconnected: Logged out top=2/2835, retr=0/0, del=0/2, size=3241

=====================

EDIT: would like to point out that "[email protected]" is one of the test account I created, reset its password multiple times. even deleted the user account and recreated it from scratch but nothing seems to be working. There are several other similar cases.

2. Checked /var/log/mail.log

====/var/log/mail.log is Empty ====
 
Last edited:
Not sure what method you used to install dovecot maybe its not reading the right configs.

Maybe your dovecot.conf is looking at the wrong area.

Try

cd /usr/local/directadmin/scripts
./build dovecot y

Make sure you are using the config file here:

/usr/local/directadmin/custombuild/dovecot.conf

You might need to do:

cp -rf /usr/local/directadmin/custombuild/dovecot.conf /usr/local/etc/dovecot/dovecot.conf
 
Hi

[root@server ~]# cd /usr/local/directadmin/scripts
[root@server scripts]# ./build dovecot y
-bash: ./build: No such file or directory


I confirm the presense of file /usr/local/directadmin/custombuild/dovecot.conf at desired location.

/usr/local/etc/dovecot/ << This directory doesnt exist. Should I create dovecot directory??
 
Oh I gave you wrong folder...

cd /usr/local/directadmin/custombuild
./build update
./build dovecot y
 
Last edited:
I am watching this because I have so many problems with email too
 
DirectAdmin's update shouldn't overwrite dovecot.conf. How did you update Dovecot?

Jeff
 
Oh I gave you wrong folder...

cd /usr/local/directadmin/custombuild
./build update
./build dovecot y

Thanks! That fixed my login issue. I guess I had mistakenly updated dovecot using synaptic and it overwrote my config file. These little scripts restored it! Man, I love DirectAdmin!
 
Back
Top