I followed these instructions and took hints from other sites. I cant get my server to send emails using google apps (i spent 3 hours on this already.)

I get the error

Authentication Required.
    Learn more at                               530 5.5.1
    http://mail.google.com/support/bin/answer.py?answer=14257

My postfix files are

http://www.privatepaste.com/a287ea4967

I verified my user/pass is correct. I tested with the command sendmail -bv addr@domain.com and use mail to see the error message.

link|improve this question

50% accept rate
feedback

1 Answer

up vote 1 down vote accepted

Remove the transport_maps directive from your main.cf and change the value of relayhost to [smtp.gmail.com]:587. Don't forget to run postmap on the hash files (sasl_passwd) after a change.

Also make sure to read http://www.postfix.org/SASL_README.html#client_sasl and actually understand it.

Postfix is quite overkill if you just want to send mails from your server through the sendmail interface. In this case you should use a minimal MTA like ssmtp or nbsmtp instead.

link|improve this answer
Switching to ssmtp solved it. It was damn easy. I dont know why postfix didnt work nor why doing what you suggested above for postfix didnt work. I'm happy it finally works. Thanks! – acidzombie24 Sep 28 '10 at 8:48
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.