Postfix + gmail on Debian etch
Here is how to set up postfix relaying using gmailapt-get install postfix libsasl2-modulesAdd the following lines in /etc/postfix/main.cf:smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
relayhost = [smtp.gmail.com]:587Add the file /etc/postfix/sasl_passwd[smtp.gmail.com]:587 youruser@gmail.com:yourpasswordAnd run postmap on itpostmap sasl_passwdrestart postfix and your done :)
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
relayhost = [smtp.gmail.com]:587Add the file /etc/postfix/sasl_passwd[smtp.gmail.com]:587 youruser@gmail.com:yourpasswordAnd run postmap on itpostmap sasl_passwdrestart postfix and your done :)