HMailServer automatic renewals?

Hi,
I made this script https://community.certifytheweb.com/t/script-for-export-crt-and-key-to-apache/653.
You only need to modify the paths and restart hmailserver instead of apache.