The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to configure VIM ? zedex UNIX for Dummies Questions & Answers 1 12-24-2007 07:47 AM
How to configure mailx command?? kumarsaravana_s Shell Programming and Scripting 9 03-29-2007 09:18 AM
How to configure NIS in sun 10 rjay.com SUN Solaris 4 12-19-2006 12:37 AM
mailx error message : mailx: NUL changed to @ BG_JrAdmin UNIX for Dummies Questions & Answers 2 12-01-2005 10:27 AM
configure ssh Geraldine UNIX for Advanced & Expert Users 4 03-16-2004 12:07 AM

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 01-12-2009
cghcgh cghcgh is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 5
How to configure mailx

Hi,
I would like to use mailx to send notification out of my solaris box (5.8)
i use this command
echo "testing123" | mailx -s "Test" cghcgh@aaa.com

I could never receive the email.

From the logs in /var/adm/messages, i can see the below msg.

Jan 12 17:17:19 sins231072 sendmail[8688]: [ID 801593 mail.info] n095Rwo09593: to=ryan.graham@rabobank.com, delay=3+00:49:21, xdelay=00:00:00, mailer=esmtp, pri=26400067, relay=aaa.com., dsn=4.0.0, stat=Deferred: Connection refused by aaa.com.

I have got the exchange person to permission this server to use smtp.
Another thing is that my domain is ap.aaa.com . Why am i being refused by aaa.com?

Can i verify whether this mailx command uses the /etc/mail/mailx.rc or /etc/mail/sendmail.cf fille or both?

Let me know if you need any information.
Appreciate any help!
  #2 (permalink)  
Old 01-12-2009
ynilesh's Avatar
ynilesh ynilesh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 222
Did you try to connect to server port using telnet?

Code:
telnet server-host 25

- nilesh
  #3 (permalink)  
Old 01-12-2009
cghcgh cghcgh is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 5
hi ynilesh,

i did a telnet before....and i'm able to connect to the smptrelay server

newserver:8:telnet smtprelay.ap.aaa.com 25
Trying 172.12.150.13...
Connected to mailhost.
Escape character is '^]'.
220 Generic SMTP Server

What other information do u know?
  #4 (permalink)  
Old 01-15-2009
cghcgh cghcgh is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 5
anyone can help me with this?
  #5 (permalink)  
Old 01-15-2009
agn agn is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 172
Quote:
Jan 12 17:17:19 sins231072 sendmail[8688]: [ID 801593 mail.info] n095Rwo09593: to=ryan.graham@rabobank.com, delay=3+00:49:21, xdelay=00:00:00, mailer=esmtp, pri=26400067, relay=aaa.com., dsn=4.0.0, stat=Deferred: Connection refused by aaa.com.
I think your mail is being relayed to aaa.com instead of smtprelay.ap.aaa.com. Check your config.
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 03:39 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