1st of all the dns setting should be added after the subdomain has been deleted, since deleting the subdomain will update dns and remove the dns setting for that domain.
2nd You can also export the certificate after its creation and import it back when ready to select webmail software and...