mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-14 10:52:49 +02:00
13 lines
663 B
Bash
13 lines
663 B
Bash
#!/usr/bin/env bash
|
|
|
|
[[ -f mailcow.conf ]] && source mailcow.conf
|
|
[[ -f ../mailcow.conf ]] && source ../mailcow.conf
|
|
|
|
POSTFIX=$(echo | openssl s_client -connect ${MAILCOW_HOSTNAME}:143 -starttls imap 2>/dev/null | openssl x509 -inform pem -noout -enddate | cut -d "=" -f 2)
|
|
DOVECOT=$(echo | openssl s_client -connect ${MAILCOW_HOSTNAME}:143 -starttls imap 2>/dev/null | openssl x509 -inform pem -noout -enddate | cut -d "=" -f 2)
|
|
NGINX=$(echo | openssl s_client -connect ${MAILCOW_HOSTNAME}:443 2>/dev/null | openssl x509 -inform pem -noout -enddate | cut -d "=" -f 2)
|
|
echo TLS expiry dates:
|
|
echo Postfix: ${POSTFIX}
|
|
echo Dovecot: ${DOVECOT}
|
|
echo Nginx: ${NGINX}
|