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 am currently using free version of Google Apps for hosting my email.It works great for my official mails my email on Google is

In addition I'm sending out high volume mails (registrations, forgotten passwords, newsletters etc) from the website ( using IIS SMTP installed on my windows machine.

These emails are sent from

My problem is that when I send email from the website using IIS SMTP to a mail address I don’t receive the email to Google apps. (I only receive these emails if I install a pop service on the server with the email box). It seems that the IIS SMTP is ignoring the domain MX records and just delivers these emails to my local server.

Here are my DNS records for  A 3600s  TXT v=spf1 ip4: a mx ptr ~all  MX preference: 10 exchange:  3600s  MX preference: 10 exchange:  3600s  MX preference: 10 exchange:  3600s  MX preference: 10 exchange:  3600s  MX preference: 1 exchange:  3600s  MX preference: 5 exchange:  3600s  MX preference: 5 exchange:  3600s 

Please help!


share|improve this question

This could be caused from 1 of 3 potential issues. Either A) Google mail is catching the email as spam, B) something on the local machine is hotwiring the emails or C) the SMTP server isn't setup correctly to allow relaying.

In the case of A), it's worth doing in any case. In your TXT record for your DNS zone, make sure to add all of the IP addresses used for outgoing email from your server. Maybe it's and already there if your web server only has 1 IP address, but best to confirm. If you are sending from something not listed as an approved SPF sending server then your messages will be flagged as potential spam. Also, check for any unusual patterns in your emails that gmail may not like (blank subjects, spamming keywords, etc).

For B), confirm that your IIS SMTP settings don't define your domain name as an account. The IIS install should be very straight forward. Basically just set as an allowed relay, everything else should be default for an outgoing smtp server.

For C), it's basically what I mentioned in the previous point, to make sure that you have the relay set to, or you're authenticating when sending.

Another test is to send to a non-gmail account and see if it arrives. That will confirm that the smtp server is working correctly.

Additionally, you can do a nslookup test to confirm that there isn't another DNS server hotwiring DNS. You can test it with the following from the command line:

set type=mx
share|improve this answer
up vote 0 down vote accepted


Problem Solved.

I had a pop3 service installed on the server from the time i wasn't using google apps. this created a local domain under the smtp called removing the pop3 email box's along with the local domain smtp solved my problem.

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.