diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 15:48:04 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 15:48:04 +0200 |
commit | 89b7b67a13ebb7965cc7f13ad0595e2194a2d34c (patch) | |
tree | 25efd77a90ae87236e6730d8ea3846bbe0fd126f /service/ssl.env |
add sqmail-4.2.29asqmail-4.2
Diffstat (limited to 'service/ssl.env')
-rw-r--r-- | service/ssl.env | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/service/ssl.env b/service/ssl.env new file mode 100644 index 0000000..bfa5875 --- /dev/null +++ b/service/ssl.env @@ -0,0 +1,19 @@ +# Environment +SSL_USER=SQMTLS +SSL_GROUP=NOFILES +SSL_DIR="QMAIL/ssl" +SSL_CHROOT="$SSL_DIR" +# Checks +SSL_UID=`id -u $SSL_USER` +[ $? -ne 0 ] && ( echo "No such user '$SSL_USER'" ; exit ) +SSL_GID=`id -g $SSL_USER` +[ $? -ne 0 ] && ( echo "No such group '$SSL_GROUP'" ; exit ) +# Files +CERTCHAINFILE="$SSL_DIR/chain6.pem" +CERTFILE="$SSL_DIR/localhost.pem" +KEYFILE="$SSL_DIR/localhost.key" +DHFILE="$SSL_DIR/dh1024.pem" +# Exported +export SSL_UID SSL_GID SSL_CHROOT +export CERTFILE KEYFILE DHFILE +#export CERTCHAINFILE |