This is by design, if you are using Dovecot. I do have to confess though it was accidental.
When I crated the Dovecot version of EHCP force (conversion script), I set up the mailbox directory structure slightly differently.
If you are using the courier (The EHCP force default email system), this is the mailbox folder structure.
/home/vmail/domainname/username.
So, if your email address was say: fred@mydomain.com, it would be store in the folder /home/vmail/mydomain.com/fred.
By default the main EHCP force application file is set up to delete that folder.
If you are using Dovecot, the mailbox folder for Fred would be.
/home/vmail/mydomain.com/fred@mydomain.com
As EHCP force is looking for the courier version of the folder, it won’t delete the Dovecot version of the folder.
It would have taken less than 5 minutes for me to fix this, but I decided against it, as it is good for recovery. So, if you deleted an email account, and then realised that you had an important email in there, you can just recreate the account, and your email would be where you left it.
When you delete an email account the contents are inaccessible to an email client, so it is safe and secure for them to be stored.
On a final note, there is nothing to stop you deleting a stored email folder in PuTTY, so for example to delete the email folder for Fred, you could do.
sudo rm -R /home/vmail/mydomain.com/fred@mydomain.com
GN Latest News