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 client registered an email address on Google as using the Google API. Later he registered the domain at MochaHost.

I have then created another email address over the hosting space (not on google) using control panel.

I am then using to send emails to his customers. The emails are successfully sent to all customers.

The issue here is that the client wants a notification email to be sent to his email address also (while it is on google). When I try to send email to this address, it bounces with a "mailbox not available" error message.

As far my understanding goes, I think this is happening as the domain name is same in and, so considering the same domain it tries to send the mail over the same domain whereas webmaster does not exist in that case.

share|improve this question

closed as off topic by Ward, Skyhawk, Khaled, devicenull, MDMarra May 13 '12 at 18:25

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Why is this tagged with, iis7.5 and c# ? – Ladadadada May 3 '12 at 8:41
because i have tested with C# code. – IrfanRaza May 3 '12 at 8:56
Exact duplicate: – Skyhawk May 3 '12 at 15:53
up vote 1 down vote accepted

Is the MX record for pointing to Google Apps or the MochaHost server?

If your client would prefer all e-mail to be handled by Google Apps, the MX records for need to be configured according to Google's instructions (e.g. In that case, you would no longer be able to receive mail at MochaHost.

If your client would prefer all e-mail to be handled by MochaHost, leave the MX records for alone and create a account on the MochaHost server.

I would recommend that you create a mailbox on Google Apps, then configure the MX records per Google's instructions so that all of's messages are handled by Google. Web hosting companies' e-mail services are not as robust as dedicated offerings like Google Apps and Office 365.

If you are trying to send mail from the web server, it needs to be configured to relay the messages externally. Currently, your web server is trying to send mail to itself.

share|improve this answer
Thanks Miles for guiding me. – IrfanRaza May 4 '12 at 6:00
You're welcome! If this answer solves your problem, you can accept it by clicking the check mark to the left. – Skyhawk May 7 '12 at 22:04

Try configuring the account on google, and using google's SMTP to send the mail

Reason being: Google checks all their incoming mail has a domain that matches to avoid spoof emails from spam scripts

share|improve this answer
How is he going to receive mail via Google Apps if the MX record is pointing somewhere else? – Skyhawk May 3 '12 at 16:06
I'm sure the MX record is pointing to Google Apps because otherwise his client would be freaking out about not getting e-mail. He's using the webhost SMTP to send mail with a script, which doesn't require incoming MX to work. – Garrett May 3 '12 at 16:08

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