1

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.

mmattax
  • 1,304
  • 7
  • 19
  • 30
  • 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 Answers2

1

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!

Craig
  • 570
  • 4
  • 13
0

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?

Koos van den Hout
  • 1,096
  • 6
  • 10