The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unable to send mail, on sun solaris saisivakumar Shell Programming and Scripting 3 05-28-2008 04:08 AM
Pull E-mail address from file, send e-mail DC Heard Shell Programming and Scripting 1 01-29-2008 02:23 AM
I am not able to send mail form unix to other mail accounts. chinnigd UNIX for Dummies Questions & Answers 1 04-06-2006 09:31 AM
Unable to send mail - but no errors found :-( csaha Linux 6 02-03-2006 04:21 PM
can not send mail from unix server to company/yahoo mail b5fnpct UNIX for Dummies Questions & Answers 5 11-22-2002 09:24 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-28-2005
shahnazurs shahnazurs is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 59
unable to send mail?

i am trying to execute the below script for sending mails from unix

MAIL1="xyz@yahoo.com"
mailx -s "hi" $MAIL1<message.txt
if [ $? -ne 0 ]
then
echo "failure"
else
echo "success"
fi

but iam unable to send this eventhough iam getting success in the output

if i logout and login i have a "you have new mail"
if i type
mail in the $ prompt then that pariticular mail is not deliver but it delivered to local user?
should i do any configuration before sending mail? please help me this is urbent:-(
  #2 (permalink)  
Old 07-28-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Check your messages file for errors - if you don't know where (or if) mail errors are logged, check /etc/syslog.conf.

Check that DNS can find the IP for yahoo.com mailservers -
$ nslookup
> set type=mx
> yahoo.com

If your DNS isn't finding a mail exchange record then your system is simply bouncing the email back to the local user due to that error.

You can also check sendmail with the following:
$ /usr/lib/sendmail -d0.1 -bt < /dev/null
which will output info on what sendmail sees as far as configuration. Check that it's using DNS (look for NAMED_BIND) and check that the system identity comes out with no issues.

Last edited by RTM; 07-28-2005 at 11:23 AM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0