Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail Error: Unable to relay for ....

Status
Not open for further replies.
Oct 9, 2003
174
US
I wrote a script on our Solaris server ( ver. 8 ) to send an email to my cell phone when the disk space gets above a certain %. However I am getting this error when the script trys to send mail outside the company to my phone. Internal mail is fine. Anyone know what settings need to be tweaked in order to clear this problem. Thanks

BTW: I edited the # with "x".


From MAILER-DAEMON Thu Nov 18 13:29:58 2004
Date: Thu, 18 Nov 2004 13:29:58 -0500 (EST)
From: Mail Delivery Subsystem <MAILER-DAEMON>
Message-Id: <200411181829.iAIITwK17219@enterprise.telephonics.com>
To: oracle
Subject: Returned mail: see transcript for details
Content-Length: 1573

This is a MIME-encapsulated message

--iAIITwK17219.1100802598/enterprise.telephonics.com

The original message was received at Thu, 18 Nov 2004 13:29:58 -0500 (EST)
from oracle@localhost

----- The following addresses had permanent fatal errors -----
1516xxxxxxx@mobile.att.net
(reason: 550 5.7.1 Unable to relay for 1516xxxxxxx@mobile.att.net)

----- Transcript of session follows -----
... while talking to [10.10.28.68]:
>>> RCPT To:<1516xxxxxxx@mobile.att.net>
<<< 550 5.7.1 Unable to relay for 1516xxxxxxx@mobile.att.net
550 5.1.1 1516xxxxxxx@mobile.att.net... User unknown

--iAIITwK17219.1100802598/enterprise.telephonics.com
Content-Type: message/delivery-status

Reporting-MTA: dns; enterprise.telephonics.com
Arrival-Date: Thu, 18 Nov 2004 13:29:58 -0500 (EST)

Final-Recipient: RFC822; 1516xxxxxxx@mobile.att.net
Action: failed
Status: 5.7.1
Remote-MTA: DNS; [10.10.28.68]
Diagnostic-Code: SMTP; 550 5.7.1 Unable to relay for 1516xxxxxxx@mobile.att.net
Last-Attempt-Date: Thu, 18 Nov 2004 13:29:58 -0500 (EST)

--iAIITwK17219.1100802598/enterprise.telephonics.com
Content-Type: message/rfc822

Return-Path: <oracle>
Received: (from oracle@localhost)
by enterprise.telephonics.com (8.11.7+Sun/8.11.7) id iAIITwL17217
for 1516xxxxxxx@mobile.att.net; Thu, 18 Nov 2004 13:29:58 -0500 (EST)
Date: Thu, 18 Nov 2004 13:29:58 -0500 (EST)
From: Oracle Account <oracle>
Message-Id: <200411181829.iAIITwL17217@enterprise.telephonics.com>
Content-Type: text
MIME-Version: 1.0

u02 warning!
u06 warning!
 
Check /var/log/syslog to ensure the e-mail is actually leaving the sun system, but it looks like either the destination e-mail address has a typo (hence not being delivered) or your company firewall is "bouncing" the e-mail. Can you send e-mail to your cell phone from outside your company (eg from a hotmail account, etc) ?

I hope that helps.

Mike
 
Nov 21 04:10:01 enterprise sendmail[17814]: [ID 801593 mail.info] iAL9A1N17814: from=oracle, size=104, class=0, nrcpts=1, ms
gid=<200411210910.iAL9A1N17814@enterprise.telephonics.com>, relay=oracle@localhost
Nov 21 04:10:01 enterprise sendmail[17816]: [ID 801593 mail.info] iAL9A1N17814: to=15165323064@mobile.att.net, ctladdr=oracl
e (1001/101), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=120104, relay=[10.10.28.68] [10.10.28.68], dsn=5.7.1, stat=
User unknown
Nov 21 04:10:01 enterprise sendmail[17816]: [ID 801593 mail.info] iAL9A1N17814: iAL9A1M17816: DSN: User unknown
Nov 21 04:10:02 enterprise sendmail[17816]: [ID 801593 mail.info] iAL9A1M17816: to=oracle, delay=00:00:01, xdelay=00:00:01,
mailer=local, pri=30140, relay=local, dsn=2.0.0, stat=Sent


Here is the entry from the /var/log/syslog. It does look like its gets to the exchange server (10.10.28.68). Also I can send the email to my cell phone from my desk computer using the same address.

Thanks,

-Travis
 
Try changing your script to use a 'from' email address option that is legitmate for dns, like your own email address.
 
By default sendmail uses MX records to forward mail. For example, if your /etc/resolv.conf files has a nameserver entry other than localhost, then you will need to check the MX records on the nameserver in question. Chances are, if you are running exchange it is forwarding the mail to that point and it is being rejected as a forwarder. You can get around this by having the exchange server allow mail from your IP address, or updating your DNS accordingly.

HTH
-bp
 
thanks everyone. blaineprutt, that is exactly what is going on. I just got off the phone with the email admin here. Seems they have shut off the relaying feature (anti-spam effort). Only mailbox accounts can send and recieve mail. So looks like im not going to be able to use this or any internal mail server.

i would like to try to configure my solairs server to route mail via this external ip 167.206.112.6

anyone know how i can do this?
also can this be done while still using my local (internal) nameservers.

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top