Dovecot - Account Does Not Exist

bloatedstoat

Well-Known Member
Jun 14, 2012
183
24
68
Victoria, Australia
cPanel Access Level
Root Administrator
Could you verify if a mail directory for the deleted email account still exists? The path to look for is:
Code: /home/$cpanel-username/mail/$domain.com/$email-username/
The existence of such a directory can result in "User doesn't exist" error messages if no corresponding email account exists on the system. Manually removing the offending directory should fix the problem.
Hello @cPanelMichael,

This issue has cropped up again. I'll try and explain the best I can the situation with the first.

There was an original cpanel account, "Account A". Account A was removed from the server as the user no longer wanted the domain sitting within it.

A new account was created, "Account B", under which there is a different domain.

The domain that formerly resided under "Account A" was then aliased under Account B and a mail forwarder put in place to forward mail sent to an Account A email address to an Account B email address. This was done so the user did not lose mail.

Dovecot reports this error:

Code:
The “/usr/bin/doveadm” command (process 683325) reported error number 67 when it ended.: doveadm([email protected]): Error: User doesn't exist
Account A was removed so the error is legit. The user indeed does not exist, but somewhere along the line the email address used for the domain that sat under the original Account A is being referenced by dovecot.

In the second /home/$cpanel-username/mail/$domain.com/ exists but the $email-username directory does not.

Code:
The “/usr/bin/doveadm” command (process 683315) reported error number 67 when it ended.: doveadm([email protected]): Error: User doesn't exist
Hope this explanation helps!

Thanks.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
Hello @bloatedstoat,

I've been unable to reproduce this issue on a test system running cPanel version 58.0.31. Could you verify the version of cPanel installed on your system? Also, could you provide more information on some of the reproduction steps? For instance, what type of forwarder are you adding to the new cPanel account? Are you creating any email accounts on the original account and the new account for the affected domain name, and if so, is the issue isolated to email accounts that were previously created? Have you verified the affected domain name is in the /etc/localdomains file?

Thank you.
 

bloatedstoat

Well-Known Member
Jun 14, 2012
183
24
68
Victoria, Australia
cPanel Access Level
Root Administrator
Hello @cPanelMichael,

Thanks for the email and sorry for the delay, I missed the notification of your response.

Version is 11.58.0.32

I really don't know how to reproduce this, however; here are the steps I went through:
  1. olddomain.com at one time was an account in its own right with an email account sitting under it, user_AT_olddomain.com
  2. I removed the account hosting olddomain.com entirely using WHM.
  3. I added a new account in WHM with a freshly registered domain name, newdomain.com
  4. I then added olddomain.com using the aliases area in newdomain.com's cpanel interface.
  5. After that I set up a forwarder in newdomain.com's cpanel interface pointing user_AT_olddomain.com to user_AT_newdomain.com so the user did not lose any email sent to user_AT_olddomain.com
In some of our reports I see this multiple times over:

Expiring trash for "user_AT_olddomain.com" in the "INBOX.Trash" mailbox …The "/usr/bin/doveadm" command (process 491725) reported error number 67 when it ended.: doveadm([email protected]): Error: User doesn't exist
The "/usr/bin/doveadm" command (process 491728) reported error number 67 when it ended.: doveadm([email protected]): Error: User doesn't exist
Done

Both olddomain.com and newdomain.com are present in /etc/localdomains

Hope this better explains things.
Thanks.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
Feel free to open a support ticket so we can take a closer look. You can post the ticket number here and we will update this thread with the outcome.

Thanks!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
10,360
1,629
363
cPanel Access Level
Root Administrator
@nixon7606 - the command that resolved the original issue was this:

Enter the SQLite command line:

Code:
sqlite3 /var/cpanel/dovecot/dict.sqlite
Run the following for each email address:

Code:
sqlite> delete from expires where exists (select * from expires where username='[email protected]');
Since your may not be experiencing the exact same issue, it's never a bad idea to submit a ticket to our support team to have us check the problem directly on your system.