Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Relaying denied. IP name lookup failed

Hi,


I´ve got a new Mac Mini Server (Late 2012) with OS X Server 10.8.3.


Enabled Mail Service, but can´t get the server to send mail. Are trying to send mail via a PHP-enabled site, which uses "sendmail".


Also tried to use relay, which gives following error:

May 14 21:04:57 my.server.com postfix/smtp[55106]: D89E8733844: to=<name@domain.com>, relay=mx.relaydomain.com[194.xx.xxx.xx]:25, delay=1.9, delays=0.01/0.12/1.5/0.28, dsn=5.7.1, status=bounced (host mx.relaydomain.com[194.xx.xxx.xx] said: 550 5.7.1 <name@domain.com>... Relaying denied. IP name lookup failed [xxx.xxx.xxx.xxx] (in reply to RCPT TO command))


I probably don´t have the DNS set up correctly, but can´t understand how to set it up for Mail. Got the DNS to work with multiple webpages.

MAC MINI SERVER (LATE 2012), OS X Mountain Lion (10.8.3)

Posted on May 14, 2013 12:20 PM

Reply
3 replies

May 15, 2013 6:38 AM in response to lingem

OS X Server requires DNS services on your LAN. That means local DNS services, and not references out to ISP DNS. OS X Server gets squirrelly if it doesn't have local and valid DNS, as do many other recent servers, as DNS is a fundamental part of network authentication and security.


To check DNS, launch Applications > Utilities > Terminal.app and issue the following non-disruptive diagnostic command:


sudo changeip -checkhostname


Enter your administrative password when prompted. That command will show information about the host, and then an indication that there are no changes required, or that there are issues with the DNS or host name set-up.


Here are details on how to set up DNS services on OS X Server. With 10.8, you'll likely need to use Server.app and the "advanced" tab stuff in the DNS set-up, but the rest is similar.


I recommend spending the US$10 per year and getting a real and registered domain name for your LAN.


Once DNS is sorted out, your mail server will need to know its internal network name and its external name, as if the host doesn't know its own names, it'll think the message is a relay and (if properly configured) reject the message. You don't want to become an open relay, as those open relays will be found and your network link and your server will become filled with folks shipping spam through your server.


If all you're doing is sending mail from php, then you can shut down the mail server and install and configure something like phpmailer tool.


FWIW(1): You've expurgated details, so I can't check your public DNS set-up.


FWIW(2): The server.com domain is a real and registered domain, and probably not one you have registered. If you're really using that, please don't. If you've used that to substitute for the domain you're using, please consider using the example.com, example.org or example.net domain names; the domains that are reserved for this usage, and reserved for use in documentation.

Relaying denied. IP name lookup failed

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.