This is a quick and dirty method for getting Postfix (as built-in on Mac OS X v10.6) to send mail via Gmail.
My little home server is a tweaked Mac mini, but Snow Leopard is the last version of OS X that will work on it without even more hacking around (besides, it’s the best version of OS X Server, IMHO). I had a search around on the web and after combining a few different methods, came up with this to make it work.
Sort out Certificates
Google changed to using Equifax as their certificate signing authority some time ago, but Postfix doesn’t know about them. So, you need to add their certificate (and we’ll add Thawte at the same time, for good measure).
Start by creating a certificates directory:
sudo mkdir /etc/postfix/certs
Jump into it and create a file called
Equifax_Secure_CA.pem, then copy the following into it: