Relaying email with postfix + TLS through gmail
I wouldn't use this for anything customer-facing, but it's a reasonable way to get messages out of closed environments without worrying about how the messages were sourced, who they appear to be from, will SPF records screw things up, etc...
Create gmail account
I'm using an account named [email protected]. I set that guy up, and gave him a password.
Install Linux somewhere
I'm using a minimal installation of CentOS 6.5 for this project, installed with some automated nonsense I've long used for this sort of thing.
Tweak hostname
sed -i 's/localhost.localdomain/postfix-relay.marget.com/' /etc/sysconfig/network The next little bit uses automounter to hang my CentOS repository on /CentOS and configure it as a repository. Skip it.
yum install -y nfs-utils wget tcpdump unzip autofs
service rpcbind start
service autofs restart
ln -s /net/my_nfs_server/path/to/CentOS/ /CentOS
cp /etc/yum.repos.d/CentOS-Media.repo Continue reading



