Sponsored Content
Operating Systems Solaris Execution problems with Mailx Post 302616977 by Srinathkiru on Monday 2nd of April 2012 02:10:46 AM
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..
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
All times are GMT -4. The time now is 07:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy