Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

My postfix files are

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

share|improve this question
up vote 1 down vote accepted

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

Also make sure to read 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.

share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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