Added migration code to handle new Dovecot certs

Easy code, but important. Please, review.