Last active
April 30, 2016 21:43
-
-
Save ned14/3f3827e0bdce41bfab30e01fb640ae67 to your computer and use it in GitHub Desktop.
mailinabox on lxc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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