SOLVED [CPANEL-25891] Email Account creation (after a previous deletion) fails when using "Provide alternate email"

diracuser

Active Member
Oct 22, 2014
41
1
8
cPanel Access Level
Root Administrator
Hi.

I created a new email account. After that I deteled because I saw that there is an option that you can send a email link to insert a password.
After delete a I created again the same account and now the Cpanel says:

"Error the system failed to create the user: A record of the type "sub" name "myaccountname" at the domain "mydomain.com" already exists"

I checked and the emaill acount isnt't in my List accounts ...
What Can I do ?
I'm administator of Cpanel and in the path:
/home/domain.com/mail
There isn't the account ....

Thank you
 

Randy Rod

Registered
May 30, 2019
1
1
3
Cochin
cPanel Access Level
DataCenter Provider
Most probably, the issue seems to be with the following two reasons.

1. Can you please check the path locate and remove email account folder in question.

---
/home/username/mail/domain name
---

2. Also, navigate to the following path, try opening passwd file with editor of your choice. Remove email account entry (if any exists) from that file and save it.

--
/home/username/etc/domain name
--
 
  • Like
Reactions: Tyson Vane

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello @diracuser,

It's possible the email user still exists in the /home/username/etc/domain.tld/passwd or /home/username/etc/domain.tld/shadow file. Feel free to open a support ticket if you'd like us to take a closer look to see if that's the case. You can post the ticket number here and we'll link this thread to it.

Thank you.
 

Squished2gether

Registered
Aug 29, 2019
1
0
0
Vancouver
cPanel Access Level
Website Owner
I'm having this same issue. I checked all of the files mentioned above, and the account was not mentioned in any of them. Just wondering if I should open a support ticket, or if anyone has another solution for this. Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello @Squished2gether,

Internal case CPANEL-25891 is open to address an issue where email account creation fails if you perform the following steps:

1. Create an email account in cPanel with the "Provide alternate email" option enabled
2. Delete the email account.
3. Attempt to create the email account again (continuing to use the "Provide alternate email" option).

Step three will fail with the following error message in the cPanel UI:

Error: The system failed to create the user: A record of the type “sub” named “test2” at the domain “example.com” already exists.
I'll monitor this case and update this thread with the outcome once it's available. In the meantime, the temporary workaround is as-follows:

1. Open cPanel >> User Manager.
2. Delete the email user that you previously removed and are attempting to create again.
3. Browse to cPanel >> Email Accounts and create the email account.

Thank you.
 

BINAIR=E

Registered
Oct 22, 2019
1
0
0
Thailand
cPanel Access Level
Website Owner
Hello @Squished2gether,

Internal case CPANEL-25891 is open to address an issue where email account creation fails if you perform the following steps:

1. Create an email account in cPanel with the "Provide alternate email" option enabled
2. Delete the email account.
3. Attempt to create the email account again (continuing to use the "Provide alternate email" option).

Step three will fail with the following error message in the cPanel UI:



I'll monitor this case and update this thread with the outcome once it's available. In the meantime, the temporary workaround is as-follows:

1. Open cPanel >> User Manager.
2. Delete the email user that you previously removed and are attempting to create again.
3. Browse to cPanel >> Email Accounts and create the email account.

Thank you.
Hello,

I had the same issue and this procedure in User Manager worked for me.

Thank you very much!

Yves
 

JohnADrury70

Registered
Jan 23, 2020
1
2
1
Savannah
cPanel Access Level
Website Owner
I just had the same issue. This is what worked for me...
I checked everything in the etc and mail folders. There was no trace of the deleted email account. I checked the A records - nothing.
In the /home/username/.subaccounts directory there is a file called storage.sqlite that I believe is a temporary flatfile db for the server to create the necessary folders etc...
Just a guess, but in any case, I made a backup of the file and then deleted the original from the server.
I was then able to recreate the previously deleted email account without issues. The system regenerated the storage.sqlite file and everything appears to be in order.
 

Andrew Champ

Registered
Feb 1, 2017
1
1
1
Mishawaka, IN
cPanel Access Level
Root Administrator
I just had the same issue. This is what worked for me...
I checked everything in the etc and mail folders. There was no trace of the deleted email account. I checked the A records - nothing.
In the /home/username/.subaccounts directory there is a file called storage.sqlite that I believe is a temporary flatfile db for the server to create the necessary folders etc...
Just a guess, but in any case, I made a backup of the file and then deleted the original from the server.
I was then able to recreate the previously deleted email account without issues. The system regenerated the storage.sqlite file and everything appears to be in order.
Thank you. This fixed my issue as well.
 
  • Like
Reactions: sali

vrysa

Registered
May 31, 2020
2
0
1
India
cPanel Access Level
Root Administrator
This workaround :

1. Open cPanel >> User Manager.
2. Delete the email user that you previously removed and are attempting to create again.
3. Browse to cPanel >> Email Accounts and create the email account.



worked!!
but is the bug fixed already?