summaryrefslogtreecommitdiff
path: root/service/ssl.env
diff options
context:
space:
mode:
Diffstat (limited to 'service/ssl.env')
-rw-r--r--service/ssl.env19
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