@@ -1,7 +1,8 @@
 #!/bin/sh
 
-# Basic configuration.
-echo "20000000" > /usr/local/haraka/config/databytes
-# Launch.
-exec haraka -c /usr/local/haraka >>/var/log/haraka.log 2>&1
-
+# TLS Settings.
+cp /etc/peps/server.key /usr/local/haraka/config/tls_key.pem
+cp /etc/peps/server.crt /usr/local/haraka/config/tls_cert.pem
+# Sleep to wait for PEPS to be ready
+sleep 30
+exec haraka -c /usr/local/haraka