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.

From my Yahoo! account, I tried to send a message to a user (me) on mydomain, but it bounces back with the following error message. Interestingly, I am receiving some emails, just not all. What can I do?

Sorry, we were unable to deliver your message to the following address.

<test@mydomain.com>:
Remote host said: 550 5.7.1 Unable to relay for test@mydomain.com [RCPT_TO]

Where am I going wrong?

My /etc/mail/relay-domains has:

mydomain.com
<IP for mydomain.com>
myotherdomain_hostedsomewhereelse.com
<its IP address>
localhost
share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

sendmail understand relaying a domain as letting the email "pass through" to your destination.

As far as I understand in your post you want that server running sendmail to be the destination of your email, so what you need to do is also add the domain to the list of destination domains your host is good for, you should find this file normally in /etc/mail/local-host-names

share|improve this answer
add comment

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.