Quote:
Originally Posted by mkkrish
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
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 ">").