Posts

Showing posts with the label relay

Use smtp.gmail.com as postfix relay

As some ISPs are blocking outgoing mail from home smtp server, we have to use a relay. smtp.gmail.com is a good choice. Here are the steps I've followed in order to configure postfix on ubuntu 10.10 to use gmail as a relay : Install postfix Choose Internet Site and keep the proposed next option aptitude install postfix configure postfix cd /etc/postfix nano main.cf add the following lines at the end of the file : relayhost = [smtp.gmail.com]:587 smtp_use_tls = yes smtp_tls_CAfile = /etc/postfix/cacert.pem smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd smtp_sasl_security_options = noanonymous (there is no need to comment out the same options that can be present before in the file as only the last ones are used) create the file passwd cd /etc/postfix/sasl/ nano /etc/postfix/sasl/passwd insert this line, changing your own logon information [smtp.gmail.com]:587 yourname@gmail.com:yourpassword generate a db file that postfix can re...