User Tools

Site Tools


documentation:mail

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
documentation:mail [2012/03/04 22:51] – created ninedocumentation:mail [2013/12/29 21:26] nine
Line 1: Line 1:
-daf+====== Postfix StartSSL ====== 
 + 
 +  - Generate certificate request\\ <code> 
 +mkdir -p /root/ssl 
 +cd /root/ssl 
 +openssl req -new -newkey rsa:4096 -nodes -keyout mail.nindl.net.key -out mail.nindl.net.csr 
 +</code> 
 +  - Generate mail.nindl.net.crt with the respective .csr on startssl.com and copy to /root/ssl/mail.nindl.net.crt 
 +  - Download the StartSSL Bundle\\ <code> 
 +wget https://www.startssl.com/certs/ca-bundle.pem -O startssl-ca-bundle.pem 
 +wget https://www.startssl.com/certs/sub.class1.server.ca.pem -O startssl-sub.class1.server.ca.pem 
 +cp /root/ssl/startssl-ca-bundle.pem /etc/ssl/certs/startssl-ca-bundle.pem 
 +</code> 
 +  - Copy keys\\ <code> 
 +cp /root/ssl/mail.nindl.net.key /etc/ssl/private/postfix.pem 
 +cp /root/ssl/mail.nindl.net.crt /etc/ssl/certs/postfix.pem 
 +</code> 
 +  - in /etc/postfix/main.cf\\ <code> 
 +smtpd_tls_cert_file=/etc/ssl/certs/postfix.pem 
 +smtpd_tls_key_file=/etc/ssl/private/postfix.pem 
 +smtpd_tls_CAfile=/etc/ssl/certs/startssl-ca-bundle.pem 
 +</code>
documentation/mail.txt · Last modified: 2013/12/29 21:31 by nine