vivek.agrawal wrote:
relayhost=smtp.gmail.com

If you want to use GMail as a smarthost relay, you need to enable SASL authentication and TLS on Postfix's smtp transport and provide a username and password for GMail's server. There's a section[1] in the SASL_README on this. To enable TLS, you'll need to set:

        smtp_tls_security_level = may

You'll also want to alter relayhost to use gmail's secure submission service:

        relayhost = [smtp.gmail.com]:587

There are other relevant settings you may want to set, such as session caching, a CA database, and limits on ciphers and SASL mechs. It's all documented in either the SASL_README or in the list of all main.cf parameters[2]. The parameters are all begin with either smtp_tls_ or smtp_sasl_.

1: http://www.postfix.org/SASL_README.html#client_sasl
2: http://www.postfix.org/postconf.5.html

Reply via email to