How do I use Gmail as relay mail server (for voicemail) - absolutte Newbie

Just an update to this, in case anyone was trying to use it…

nano /etc/postfix/sasl_passwd
Add line: smtp.gmail.com:587 [email protected]:yourpassword

nano /etc/postfix/main.cf
Add lines: relayhost:587=smtp.gmail.com
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous

then
Run: postmap /etc/postfix/sasl_passwd
Run: /etc/init.d/postfix restart