Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My client registered an email address on Google as webmaster@example.com using the Google API. Later he registered the domain example.com at MochaHost.

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

I am then using support@example.com 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 webmaster@example.com 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 webmaster@example.com and support@example.com, 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 professional 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 asp.net, iis7.5 and c# ? –  Ladadadada May 3 '12 at 8:41
    
because i have tested with Asp.net C# code. –  IrfanRaza May 3 '12 at 8:56
    
Exact duplicate: stackoverflow.com/questions/10425015/emailing-sending-issue –  Skyhawk May 3 '12 at 15:53
add comment

2 Answers

up vote 1 down vote accepted

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

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

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

I would recommend that you create a support@example.com mailbox on Google Apps, then configure the MX records per Google's instructions so that all of example.com'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
add comment

Try configuring the account support@somedomain.com 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
add comment

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