LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-07-2013, 07:29 AM   #1
mkkrish
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Rep: Reputation: Disabled
Arrow Unable to send mail. Relaying Denied IP lookup failed.


My web server running on redhat. Drupal installed on it.

We have been sending mail from drupal with smtp.

Now the relay server changed to new IP. Relay server IP updated in drupal authentication.
I updated new IP in php program and /etc/hosts file.

I am able to connect relay server from webserver using
Telnet protocol.

I made smtp debug ON in the php program to trace error.
The error while sending mail shows,

RELAYING DENIED(XXX.XXX.XX.XX] IP lookup failed.
I checked /etc/mail/access. The entry 127.1.0.0 is existing there.

There were no other change except the relay server IP.

While sending mail it throws error

"Relaying Denied [XXX.XXX.XX.XX] IP Lookup failed.

Please suggest,Any solution to recover from this error.
 
Old 08-07-2013, 10:09 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
The relay server/smart host simply doesn't accept mail from your server.

I assume the X'ed out IP address is your public IP? If you're really supposed to be able to relay through the host in question, you need to speak to the administrator of that system.

Perhaps you need to authenticate before sending mail, or your IP needs to be added to a list, or a reverse DNS record may have to be created, or there's a problem with the SPF records for the sending domain... only the server admin can tell you what the problem is.
 
Old 08-08-2013, 03:24 AM   #3
mkkrish
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Arrow

The XXX.XXX.XXX.XX is our Public IP. But I am able to telnet to the relay server successfully from webserver. This indicate there is no problem
in connecting relay server.
I have updated /etc/host file. In php program I updated new relay server. In drupal I have authenticated SMTP with new relay IP.

After doing all these things , it surprising, to see that relaying is denied.

What possible test(s) with commands can I try from the web server to send mail. Any idea please.
 
Old 08-08-2013, 03:54 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
Quote:
Originally Posted by mkkrish View Post
The XXX.XXX.XXX.XX is our Public IP. But I am able to telnet to the relay server successfully from webserver. This indicate there is no problem
in connecting relay server.
It indicates that you're able to connect to the server, but says nothing about whether that server is willing to forward mails on your behalf or not.

Quote:
Originally Posted by mkkrish View Post
I have updated /etc/host file. In php program I updated new relay server. In drupal I have authenticated SMTP with new relay IP.

After doing all these things , it surprising, to see that relaying is denied.

What possible test(s) with commands can I try from the web server to send mail. Any idea please
The error message is quite self-explanatory. The mail server is rejecting your mails, as it isn't configured to forward mails from your IP address.

Simple test:
Code:
~$ telnet ip.address.of.mailserver 25
220 mailserver.name and some other text
HELO servername
250 mailserver.name Hello your.ip.address, pleased to meet you
MAIL FROM: <your sender address>
250 Sender <your sender address> OK
RCPT TO: <a recipient address>[
The next response from the server will tell you all you need to know.

You type the commands in bold, the rest are responses from the server. The identity behind the HELO command is irrelevant, but has to be present. The mail addresses must be inside angled brackets ("<" and ">").
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to send mail : Write failed : Permission denied shawnbishop Linux - Software 1 03-27-2006 02:50 PM
Relaying denied ip name lookup faile. RAHUKUMAR Linux - Software 2 12-02-2005 04:34 PM
Sendmail.... Relaying denied. IP name lookup failed Krishna2412 Linux - Security 6 06-21-2005 02:01 AM
Unable to send email "Relaying denied" ejain Linux - Software 2 05-21-2005 09:02 AM
I get a "relaying denied" message when I try to send mail from a remote computer robmainella Linux - Software 4 09-09-2003 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration