Skip to content

Instantly share code, notes, and snippets.

@ned14
Last active April 30, 2016 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ned14/3f3827e0bdce41bfab30e01fb640ae67 to your computer and use it in GitHub Desktop.
Save ned14/3f3827e0bdce41bfab30e01fb640ae67 to your computer and use it in GitHub Desktop.
mailinabox on lxc
cd /root
aptitude install curl git
git clone https://github.com/ned14/mailinabox.git
cd mailinabox
DISABLE_FIREWALL=1 setup/start.sh
(Use usual@nedprod.com for the email and mail.nedprod.com for the server)
cd /home/user-data/ssl/nedprod.com
nano private_key.pem
(Use nedprod.com cert private key)
chmod og-rwx private_key.pem
nano ssl_certificate.pem
(Use nedprod.com wild cert with intermediate cert chained afterwards)
cd ..
rm ssl_certificate.pem
ln -s /home/user-data/ssl/nedprod.com/ssl_certificate.pem ssl_certificate.pem
mv private_key.pem private_key.pem.old
ln -s /home/user-data/ssl/nedprod.com/private_key.pem private_key.pem
reboot
openssl s_client -connect 10.78.65.201:443
(Make sure it's my official SSL cert)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment