I have followed the Virtual Users And Domains With Postfix, Courier And MySQL. I don't have reverse dns, so i want to relay all my e-mail with gmail. How to enable STARTTLS in postfix??
Does gmail allow relaying ? How do u plan to do this ? I think the howto enables STARTTLS by default.
Via SMTP.
Yes it does.
Okay in that case postfix does support postfix as a client authentication.
Add this to your config
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/gmail_passwd
smtp_sasl_type = cyrus
relayhost = [smtp.gmail.com]:587
Create the file /etc/postfix/gmail_passwd
[smtp.gmail.com]:587 username@gmail.com:password