Changes between Version 17 and Version 18 of Documentation/Community/HowTo/ZarafaSetupWithOutlookThunderbirdSync

Show
Ignore:
Timestamp:
02/18/12 20:51:26 (16 months ago)
Author:
bbking (IP: 213.235.204.99)
Comment:

Better description of installing an official certificate for postfix

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/Community/HowTo/ZarafaSetupWithOutlookThunderbirdSync

    v17 v18  
    237237Securing IMAP with an official certificate:[[BR]] 
    238238 
    239 1) put the certificate in the file /etc/postfix/sasl/smtpd.pem (Zentyal 2.0 or Ebox) or /etc/postfix/sasl/postfix.pem [[BR]] 
    240 Create the .pem file according to above.[[BR]] 
    241 2) restart the mail system with:[[BR]] 
    242 {{{ 
    243 #!div class=conf style="border: 2pt solid; text-align: left;background-color:#AAAAAA" 
    244 /etc/init.d/zentyal mail restart 
     239After my initial tests still did not satisfy Thunderbird, I've found a great tutorial on [http://www.howtoforge.com/securing-your-ispconfig-3-installation-with-a-free-class1-ssl-certificate-from-startssl] 
     240 
     2411) if you have a StarSSL certificate, get their CA files and give them speaking names: 
     242{{{ 
     243#!div class=conf style="border: 2pt solid; text-align: left;background-color:#555555" 
     244cd /home/youruser/[[BR]] 
     245wget !https://www.startssl.com/certs/ca.pem[[BR]] 
     246wget !https://www.startssl.com/certs/sub.class1.server.ca.pem[[BR]] 
     247mv ca.pem startssl.ca.crt[[BR]] 
     248mv sub.class1.server.ca.pem startssl.sub.class1.server.ca.crt[[BR]] 
     249}}} 
     250 
     2512) create the chain file 
     252{{{ 
     253#!div class=conf style="border: 2pt solid; text-align: left;background-color:#555555" 
     254cat startssl.sub.class1.server.ca.crt startssl.ca.crt > startssl.chain.class1.server.crt 
     255}}} 
     256 
     257At this point you have different options. Either you go with the official supported way and use the hooks for Zentyal, see [http://trac.zentyal.org/wiki/Documentation/Community/HowTo/CustomizeConfigFiles] 
     258 
     259or, if you want to do a quick hack, you can do it this way (keep in mind, after an update, these changes might be gone!!!): 
     260 
     261{{{ 
     262#!div class=conf style="border: 2pt solid; text-align: left;background-color:#555555" 
     263cd /usr/share/zentyal|ebox/stubs/mail[[BR]] 
     264cp main.cf.mas main.cf.mas<date>[[BR]] 
     265vi main.cf.mas[[BR]] 
     266}}} 
     267 
     268look for the lines with the entries 
     269 
     270{{{ 
     271#!div class=conf style="border: 2pt solid; text-align: left;background-color:#AAAAAA" 
     272my $certFile = '/etc/postfix/sasl/postfix.pem';[[BR]] 
     273my $keyFile  = '/etc/postfix/sasl/postfix.pem';[[BR]] 
     274}}} 
     275 
     276and change them to: 
     277 
     278{{{ 
     279#!div class=conf style="border: 2pt solid; text-align: left;background-color:#AAAAAA" 
     280my $certFile = '/etc/postfix/sasl/smtpd.crt';[[BR]] 
     281my $keyFile  = '/etc/postfix/sasl/smtpd.key';[[BR]] 
     282my $CAfile = '/etc/postfix/sasl/startssl.chain.class1.server.crt';[[BR]] 
     283}}} 
     284 
     285scroll down and look for the TLS/SSL stuff and add this line: 
     286 
     287{{{ 
     288#!div class=conf style="border: 2pt solid; text-align: left;background-color:#AAAAAA" 
     289smtpd_tls_CAfile = <% $CAfile %> 
     290}}} 
     291 
     292save the file. 
     293 
     294Depending where you keep your official certificate and the key, please change the locations accordingly. 
     295{{{ 
     296#!div class=conf style="border: 2pt solid; text-align: left;background-color:#555555" 
     297cd /etc/postfix/sasl[[BR]] 
     298ln -s /home/youruser/www.snakeoil.com.crt smtpd.cert [[BR]] 
     299ln -s /home/youruser/www.snakeoil.com.key smtpd.key [[BR]] 
     300ln -s /home/youruser/startssl.chain.class1.server.crt startssl.chain.class1.server.crt [[BR]] 
     301}}} 
     302 
     3033) restart the mail system with:[[BR]] 
     304{{{ 
     305#!div class=conf style="border: 2pt solid; text-align: left;background-color:#AAAAAA" 
     306/etc/init.d/zentyal mail restart[[BR]] 
    245307}}} 
    246308