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.

Our app sends out many types of email notifications. On some occasions, we see that the email addresses are getting our domain appended to them.

e.g. michael@gmail.com turns into michael@gmail.com.example.com

What is causing this?

The App is running on a LAMP stack. We're using Sendmail / PEAR's Mail module.

share|improve this question
1  
What happens if you send out a message from Sendmail directly via bash (sendmail -t someone@example.com)? –  gravyface Jul 30 '10 at 22:13

2 Answers 2

Check your mail server's configuration for the hostname! Also, often a missing dot at the end of a name in your bind configuration might cause this!

share|improve this answer

If you do have a wildcard record for your domain (*.example.com above) it might be that a rule in mailer config is firing which appends the domain name when searching for it.

What does the output of

dig -t any gmail.com.example.com

give? anything about a valid A record or MX record?

share|improve this answer

Your Answer

 
discard

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.