Execution problems with Mailx


 
Thread Tools Search this Thread
Operating Systems Solaris Execution problems with Mailx
# 1  
Old 04-02-2012
Execution problems with Mailx

Unable to send mail using mailx command. I am using solaris 5.9 I am trying to send notification for the scheduled jobs in crob but the mailx is not working. Checked the settings in submit.cf and sendmail.cf
but unable to find the solution.

Error message
Code:
root@sshldb # nslookup mailhost
*** Can't find server name for address 127.0.0.1: No response from server
*** Default servers are not available
you have mail
 
 
root@sshldb # echo "Test Message" | mailx -v -s "test message" xyz@abc.com.sg
root@sshldb # xyz@abc.com.sg
... Connecting to [127.0.0.1] via relay...
220 sshldb.sshcorp.com ESMTP Sendmail 8.13.8+Sun/8.13.8; Mon, 2 Apr 2012 14:26:06 +0800 (SGT)
>>> EHLO sshldb.sshcorp.com
250-sshldb.sshcorp.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<apsprd@sshldb.sshcorp.com> SIZE=83
250 2.1.0 <apsprd@sshldb.sshcorp.com>... Sender ok
>>> RCPT To:<xyz@abc.com.sg>
>>> DATA
250 2.1.5 <xyz@abc.com.sg>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <xyz@abc.com.sg>... Connecting to ksenergy.com.sg via esmtp...
050 <xyz@abc.com.sg>... Connecting to mailhost.sshcorp.com via esmtp...
050 220 sshcorp.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at Mon, 2 Apr 2012 14:08:18 +0800
050 >>> EHLO sshldb.sshcorp.com
050 250-sshcorp.com Hello [15.12.88.201]
050 250-AUTH=LOGIN
050 250-AUTH LOGIN
050 250-TURN
050 250-SIZE 31457280
050 250-ETRN
050 250-PIPELINING
050 250-DSN
050 250-ENHANCEDSTATUSCODES
050 250-8bitmime
050 250-BINARYMIME
050 250-CHUNKING
050 250-VRFY
050 250 OK
050 >>> MAIL From:<apsprd@sshldb.sshcorp.com> SIZE=367
050 530 5.7.3 Client was not authenticated
050 <apsprd@sshldb.sshcorp.com>... Connecting to local...
050 220 sshldb LMTP ready
050 >>> LHLO sshldb.sshcorp.com
050 250-sshldb
050 250-8BITMIME
050 250-ENHANCEDSTATUSCODES
050 250 PIPELINING
050 >>> MAIL From:<>
050 250 2.5.0 ok
050 >>> RCPT To:<apsprd>
050 >>> DATA
050 250 2.1.5 ok
050 354 go ahead
050 >>> .
050 250 2.1.5 apsprd OK
050 <apsprd@sshldb.sshcorp.com>... Sent
250 2.0.0 q326Q6U2004453 Message accepted for delivery
xyz@abc.com.sg... Sent (q326Q6U2004453 Message accepted for delivery)

Moderator's Comments:
Mod Comment Please use next time code tags for your code and data

Last edited by vbe; 04-02-2012 at 04:53 AM..
# 2  
Old 04-02-2012
Give the output of:
Code:
telnet relayservername 25

.............


Moderator's Comments:
Mod Comment Please use next time code tags for your code and data

Last edited by vbe; 04-02-2012 at 04:55 AM..
# 3  
Old 04-02-2012
thanks for your reply Susindram

root@sshldb # telnet relayservername 25
relayservername: Unknown host

kindly let me know where to define the mail host apart from /etc/host file
# 4  
Old 04-02-2012
Hi Srinath,

Please give your relay server name.I guess your relay server name is mailhost.sshcorp.com and telnet to the mailhost.sshcorp.com IP.Please take IP from nslookup in cmd...

No need to specify the any where apart from main.cf.........

We need to enable mail access in relay host server first.Thats why i have asked telnet to your relay server.Smilie
# 5  
Old 04-02-2012
Oh! Bit confused as I am new to this platform
root@sshldb # telnet smtp.mail.apac.microsoftonline.com
Trying 207.46.62.153...

it struks here and the following is the result of nslookup

C:\Users\srinath>nslookup smtp.mail.apac.microsoftonline.com
Server: ksdibmdc01.kstech.com.sg
Address: 192.168.0.198
Non-authoritative answer:
Name: smtp.mail.apac.microsoftonline.com
Address: 207.46.62.153
# 6  
Old 04-02-2012
check telnet smtp.mail.apac.microsoftonline.com 25...If comes trying.Please check with necessary team to allow relay access for your server.
# 7  
Old 04-02-2012
Getting no reply

root@sshldb # telnet smtp.mail.apac.microsoftonline.com 25
Trying 207.46.62.153...

Thanks for your support. Let me check this connectivity and come back to you on the results


---------- Post updated at 09:07 PM ---------- Previous update was at 04:37 AM ----------

Hi Susi,

the one which i tried was the new server which is not working.
Here are the outcomes of the old one.

root@sshldb # ping smtp.sshcorp.com
smtp.sshcorp.com is alive
root@sshldb # nslookup smtp.sshcorp.com
*** Can't find server name for address 127.0.0.1: No response from server
*** Default servers are not available
root@sshldb # telnet smtp.sshcorp.com 25
Trying 15.12.88.10...
Connected to smtp.sshcorp.com.
Escape character is '^]'.
220 sshcorp.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at Tue, 3 Apr 2012 10:02:14 +0800


I am able to ping the server but nslookup doesnt work.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Execution Problems with Solaris 8

i have problems with using solaries 8 . code and commands for extracting files from CD ? especially extracting file.jar from package and batch (1 Reply)
Discussion started by: moh_abaloo
1 Replies

2. Shell Programming and Scripting

Execution Problems with awk

Ubuntu, Bash 4.3.48 Hi, I have this input file: a1:b2:c30:g4:h12:j7 and I want this output file: a1=g4:b2=h12:c30=j7 I can do it this with this code: awk -F':' '{print $1"="$4":"$2"="$5":"$3"="$6"}' INPUT > OUTPUTIn this case I have 6 columns, I calculate manually the half number of... (6 Replies)
Discussion started by: echo manolis
6 Replies

3. UNIX for Beginners Questions & Answers

Execution problems

How to find a word in a directory which contains many files? i just want to count how many such words are present in all the files? This is the code which i tried for a single file echo "Enter the file name:" read file echo "Enter the word to search:" read word if then echo "The count... (4 Replies)
Discussion started by: Meeran Rizvi
4 Replies

4. HP-UX

Execution problems with swreg

HP UX 10.20 I have a directory "/var/spool/sw" which is supposed to be a "Depot" directory. Turns out it is not and when using the swreg command "swreg -l /var/spool/sw" I get errors in part ERROR for option "-l /var/spool/sw" keyword or it's value may be incorrect or the keyword does not apply... (3 Replies)
Discussion started by: Randydog
3 Replies

5. UNIX for Dummies Questions & Answers

Execution Problems with Crontab

Dear Folks, I have written a shell script which internally connects to oracle database through sqplplus command line. The script runs fine when run manually. Now I am scheduling it to run (Linux environment) from crontab. In crontab it is failing with an error: sqlplus command... (6 Replies)
Discussion started by: tamojitc
6 Replies

6. UNIX for Dummies Questions & Answers

Execution Problems with UNIX.

Hi Team, I created one file like tst.pl, it contains #!/usr/bin/perl use Spreadsheet::ParseExcel; During execution it's showing error like use: command not found. Pleast let me suggest how to use this perl menthods in Unix. Thanks in Advance, Reards, Harris (5 Replies)
Discussion started by: harris
5 Replies

7. Shell Programming and Scripting

Execution Problems

this my source file ************* fixed *************** Begin equipmentId : d9 processor : fox number : bhhhhhh Variable # 1: Id : 100 Type : 9 nType : s gType : 5f mType : 4 LField : England DataField : london Length ... (6 Replies)
Discussion started by: teefa
6 Replies

8. Shell Programming and Scripting

Execution Problems!!

i have been working on this for a about 12 hours today say's end of file un expected any idea's using the bourne shell and its driving me nuts worked fine in bash but prof says make it work in bourne and good luck worth 13% any help would be awesome #!/bin/sh trap "rm mnt2/source/tmp/* 2>... (1 Reply)
Discussion started by: mrhiab
1 Replies

9. UNIX and Linux Applications

Execution Problems with Cron

Hi all!! I have a nerve-wracking concept (probably for me!!) which is not understood. My crontab entry looks this way. 33 09 22 3 * /home/myexp.sh "Bgp4 ALL" >/dev/null 2>&1 But cron gets started occasionally. Sometimes it does. Sometimes it does not. And sometimes it hangs in the middle (I... (1 Reply)
Discussion started by: dhivyasuresh
1 Replies

10. Solaris

Solaris 9 mailx problems

how come I cant email myself, here is what im typing mailx saundersc Subject: hi hello world . EOT # su saundersc # mailx No mail for saundersc (5 Replies)
Discussion started by: csaunders
5 Replies
Login or Register to Ask a Question