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.

It seems that mail on my server is functional -- kind of. I have a simple PHP mailer script that is capable of mailing any email address that is not local. e.g myemail@gmail.com

However, if I try myemail@mydomain.com, it tells me

/home/myuser/dead.letter... Saved message in /home/myuser/dead.letter

and sometimes

You have new mail. 

What does this mean? Does anyone know what I can do to make my emails actually go through?

I'm using google apps for domains -- so basically gmail is hosting my domain's email and I'm not using my own servers for receiving mail. I've set up the nameservers correctly -- I wonder if it's got to do with my sending configuration (what does PHP's mail function normally send with anyway, sendmail?) or maybe it's my receiving configuration -- maybe something makes it act differently for "local" mail

share|improve this question

1 Answer 1

This sounds like you've told sendmail that it should accept mail for mydomain.com. Have a look at /etc/mail/local-host-names and see if the domain is listed there. If it is, you'll need to remove it and restart or reload sendmail.

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.