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.

I have my sendmail.cf 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:

root@75.xxx.xxx.xxx

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 root@75.xxx.xxx.xxx... 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

Thanks!

share|improve this question

1 Answer 1

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 your.ip.addr.here >> /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

 
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.