Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have my file configured to send local mail and to receive external mail to local users. So sending mail from the server to the external world works fine, but the other way around does not... I get an error e-mail saying:

Delivery to the following recipient failed permanently:

Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 5.7.1 Relaying denied (state 14).

Also I can't find logs in /var/log, all I see is this binary file in /var/log/mail/statistics


share|improve this question
up vote 2 down vote accepted

You probably don't have sendmail set up to accept mail for domain literals / IPs.

To see what sendmail has already discovered as a 'local' address, or what it thinks is local, do:

    echo '$=w' | sendmail -bt

And if you don't see your IP address in there, add it to /etc/mail/local-host-names:

    echo >> /etc/mail/local-host-names

That should do it, given I've guessed the problem correctly from the info provided.

share|improve this answer
dont forget to restart your sendmail after that, cause local-host-names get only read if you restart. – evildead Nov 23 '09 at 0:25

Your Answer


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.