Improve deleting a domain by clarifying the specific email addresses used on the domain
-
I am trying to delete a domain from my Cloudron instance. It tells me this when I use the API (and similar when using Cloudron GUI):
{ "status": "Conflict", "message": "Domain is in use by one or more mailboxes. Delete them first in the Email view." }
It took me a while to remember that I had used the domain as an alias on my own domain mailbox for the postmaster and such emails. It'd be very helpful if the error reported here was much more useful because it could theoretically be used anywhere and when managing 20+ domains, it's not immediately obvious where that may have been used if not on the actual mail domain itself. Would love to see this improved to be more specific on what mail domain(s) contains references to the domain I wish to delete.
-
@girish said in Improve deleting a domain by clarifying the specific email addresses used on the domain:
What needs to be improved here? Do you want the error message to list the mailboxes of the domain ?
I'd guess so, just going on "clarifying the specific email addresses used on the domain" in the thread title
-
@jdaviescoates For the UI, I guess, we can make the error link to the Mailboxes view I guess. But listing mailboxes while possible is going to be ugly in an error message (as in, if you have 10 mailboxes, listing and showing all of them makes a bulky error message)
-
@girish said in Improve deleting a domain by clarifying the specific email addresses used on the domain:
But listing mailboxes while possible is going to be ugly in an error message (as in, if you have 10 mailboxes, listing and showing all of them makes a bulky error message)
Would you prefer ugly or very useful? I'd go for useful.
The design of the message can be made as a csv so it doesn't take up 1 line each. Additionally you can notify / email the admin the full message so there is a record and it can be as long as you need.
-
@girish said in Improve deleting a domain by clarifying the specific email addresses used on the domain:
What needs to be improved here? Do you want the error message to list the mailboxes of the domain ?
The trigger for this feature request was trying to remove a Domain which fails with the error telling me mailboxes still exist for it. However when I look at the domains email section there’s no mailboxes so it’s very confusing. It takes a while to then remember where I used that domain as an alias in another domain. In my example I set all the postmaster and webmaster emails as aliases for my own mailbox for other domains for example. It’d be really helpful if the error message said where the mailboxes were actually set (i.e. deleting domain example.com can’t be done because mailboxes exist for it on example222.com domain) or something to that extent.
Hopefully that makes sense. Let me know if I can clarify though.
-
Or ideally maybe an extension of this would be the ability to check a box to acknowledge and have Cloudron delete all the referenced mailboxes across the system automatically rather than having the admin to find them one by one. The former suggestion seems easier but the one I just thought of now may be a much nicer experience too.