# Email account problems after deleting subdomain

**URL:** <https://forum.virtualmin.com/t/email-account-problems-after-deleting-subdomain/56270>\
**Category:** Virtualmin Hosting Offers\
**Created:** [May 30, 2017, 3:05pm UTC](https://forum.virtualmin.com/t/email-account-problems-after-deleting-subdomain/56270 "2017-05-30T15:05:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom.Jrvs](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/t/858c86/32.png) [@Tom.Jrvs](https://forum.virtualmin.com/u/Tom.Jrvs)\
**Post date:** [May 30, 2017, 3:05pm UTC](https://forum.virtualmin.com/t/email-account-problems-after-deleting-subdomain/56270/1 "2017-05-30T15:05:54Z")

</div>

Thank you for any help.

I created a virtual server subdomain and had it as a alias to the main domain for testing (the name servers still pointed to the original site on the old server). Once I had everything set up, I changed to name servers and deleted the subdomain alias. Now I can not update email users, I get the message:  
Failed to save mailbox : The additional email domain ‘test.([original.com](http://original.com))’ is not managed by Virtualmin

And “Checking Configuration” gives the message:

error: stat of /var/log/virtualmin/test.([original.com](http://original.com))\_access\_log failed: No such file or directory  
. This must be fixed, or log file rotation will not be done.  
… your system is not ready for use by Virtualmin.

How can I fix this?

Tom

---

<div class="post-metadata">

**Author:** ![Tom.Jrvs](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/t/858c86/32.png) [@Tom.Jrvs](https://forum.virtualmin.com/u/Tom.Jrvs)\
**Post date:** [May 31, 2017, 1:08am UTC](https://forum.virtualmin.com/t/email-account-problems-after-deleting-subdomain/56270/2 "2017-05-31T01:08:11Z")

</div>

I fixed the log rotation problem by manually deleting the log rotation files for the subdomain.  
That did nothing for the “Failed to save mailbox : The additional email domain ‘test.([original.com](http://original.com))’ is not managed by Virtualmin” user saves.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [June 11, 2017, 5:30pm UTC](https://forum.virtualmin.com/t/email-account-problems-after-deleting-subdomain/56270/3 "2017-06-11T17:30:12Z")

</div>

Sorry for the slow reply; I just noticed this in the Virtualmin Hosting forum (which is for hosting offers, and I don’t really monitor it except for keeping an eye out for spam). I’ve moved it to the Virtualmin category.

Hmm…sounds bug-like, and we probably want to open a ticket and get Jamie involved.

To make sure I understand what’s happening here: [test.original.com](http://test.original.com) is the subdomain alias that has now been deleted? And [original.com](http://original.com) is the top-level virtual server? That makes it sound like deletion of the subdomain went wrong. It’s still trying to do something with files related to a deleted domain, so it must still have some stuff hanging around.

So, [test.original.com](http://test.original.com) doesn’t appear in the Virtual Servers list?

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 6:17am UTC](https://forum.virtualmin.com/t/email-account-problems-after-deleting-subdomain/56270/4 "2020-04-30T06:17:09Z")

</div>

Closed on April 30, 2020, 6:17am UTC


