Dovecot - Account Does Not Exist
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:
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.
Hope this explanation helps! Thanks.
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:
The "/usr/bin/doveadm" command (process 683325) reported error number 67 when it ended.: doveadm(user@accounta): Error: User doesn't existAccount 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.
The "/usr/bin/doveadm" command (process 683315) reported error number 67 when it ended.: doveadm(non-existent-user@existing-domain): Error: User doesn't existHope this explanation helps! Thanks.
-
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. 0 -
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: - ]
- olddomain.com at one time was an account in its own right with an email account sitting under it, user_AT_olddomain.com
- I removed the account hosting olddomain.com entirely using WHM.
- I added a new account in WHM with a freshly registered domain name, newdomain.com
- I then added olddomain.com using the aliases area in newdomain.com's cpanel interface.
- 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
0 -
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! 0 -
Thanks @cPanelMichael, ticket #8024625 0 -
As a heads up, analyst William Little solved this one: "This was due to the email address still existing in the dovecot sqlite database". The entry was removed and the issue is now resolved, case closed. 0 -
I have the same issue. Any hint on what command was run to remove the old email 0 -
@nixon7606 - the command that resolved the original issue was this: Enter the SQLite command line: sqlite3 /var/cpanel/dovecot/dict.sqlite
Run the following for each email address:sqlite> delete from expires where exists (select * from expires where username='email@domain.com');
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.0
Please sign in to leave a comment.
Comments
7 comments