Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

My domain email can be handled by the google. by setting mx record and stuff to google.

but i would like to have my linux server to send email to the world and not treated as spam, is it possible?

share|improve this question

You could also configure postfix to relay outgoing mail through google's mail servers. I've done this with sendmail and it seems possible with postifx:

share|improve this answer

You need to lookup SPF records as these allow you to specify what hosts are allowed to send mail on your behalf. In this case you need something like the following added as a TXT record on your domain:

v=spf1 ip4: -all

Replace with the external ip of your server.

You might also look up DKIM records, but I'm not familiar enough with GoogleMail to be able to see if they're support there or not.

share|improve this answer

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.