This would be a really good idea. Has anyone got a script working?
I would prefer that the mail server does it automatically rather than through API.
Basically:
IF server certificate is out of date THEN
attempt to import new certificate
IF computer certificate store has certificate with same name AND is in date THEN
install certificate
stop mailserver
restart mailserver
ELSE
email admin user to let them know server certificate is out-of-date