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

I basically want to have two separate email servers. The first one is the GoogleApps GMail service, which is for humans to use. The second server would be for sending messages from my application (so, send them programatically).

Do I even need to reference second mail server (on the same IP as my application) in MX-records (or wherever this would have to be referenced)? I wouldn't like the emails to get flagged spam or as "suspicious."

On a side note, I might use this mail server to process some "special" types of messages (like all messages sent to I found a related question for this, but I am not sure it is what I am looking for.

share|improve this question
up vote 7 down vote accepted

Your application can send mail directly from its application server, provided you take some steps to ensure that your outbound mail doesn't get flagged as spam. This includes setting reverse PTR (DNS) records for the sending server's IP address. Possibly some manipulation of headers and maybe an SPF record...

Another option is to relay your application's mail through Gmail (not worth it) or through another trusted Smart Host.

Also take a look at: Fighting Spam - What can I do as an: Email Administrator, Domain Owner, or User?

share|improve this answer

If the second server is only outbound for applications, and Google Mail is for inbound and outbound (i.e. normal usage by users), then there is no need to touch the MX record.

Just add the IP of the second server to a SPF Record, which requires access at the DNS level of your domain.

There are several wizards online to assist you in the syntax.

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.