Get an email notification when Zimbra TLS certificates are about to expire

In many cases IT staff will have automated TLS certificates so they are renewed and deployed automatically. However sometimes the automation fails or deployments use an additional reverse proxy or web application firewall in front of Zimbra. In the latter case, sometimes the renewal of the Zimbra self-signed certificate is overlooked.

Zimbra (LDAP) requires a TLS certificate that is not expired for continued operation.

In this article you will learn how to set-up a notification email whenever the TLS certificates on Zimbra are about to expire.

Installation

On your Zimbra server download the check-expiration script as follows:

wget https://raw.githubusercontent.com/Zimbra-Community/zimbra-tools/master/check-expiration -O /usr/local/sbin/check-expiration
chmod +x /usr/local/sbin/check-expiration

Then install the script in the Zimbra user crontab as follows:

su - zimbra
crontab -e

Scroll all the way down in the crontab and append under:

# ZIMBRAEND -- DO NOT EDIT ANYTHING BETWEEN THIS LINE AND ZIMBRASTART

The following:

40 * * * * /usr/local/sbin/check-expiration 25 admin@example.com

And replace admin@example.com with the email address or distribution list where you want to receive the notification.

Screenshots

Here is a screenshot of a notification email:

,

No comments yet.

Leave a Reply

Copyright © 2022 Zimbra, Inc. All rights reserved.

All information contained in this blog is intended for informational purposes only. Synacor, Inc. is not responsible or liable in any manner for the use or misuse of any technical content provided herein. No specific or implied warranty is provided in association with the information or application of the information provided herein, including, but not limited to, use, misuse or distribution of such information by any user. The user assumes any and all risk pertaining to the use or distribution in any form of any subject matter contained in this blog.

Legal Information | Privacy Policy | Do Not Sell My Personal Information | CCPA Disclosures