Solaris Mailx Problem.


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris Mailx Problem.
# 1  
Old 11-30-2011
Solaris Mailx Problem.

I have 4 solaris servers with similar configuration and i configured mailx in all 4 servers. i have made necessery changes in /etc/mail/sendmail.cf. and i added the mail server entry in /etc/hosts file and it is working fine in 3 servers properly. but its not working in 1 server. Everything is fine in system level and network level. But there is one differece in /etc/hosts in this system.

Code:
::1     localhost       
127.0.0.1       localhost       
10.51.251.71     dhcp1 dhcp1.    loghost     --> Not Working
##
 
::1     localhost       
127.0.0.1       localhost       
10.51.251.74     dhcp2       loghost              --> Working


Last edited by DukeNuke2; 11-30-2011 at 10:36 AM..
# 2  
Old 11-30-2011
Have you check /etc/nsswitch.conf file in all the servers.

Also, could you post the output of
Code:
mailx -vvv -s "test" <EMAIL> </dev/null

Regards,
Vishal
# 3  
Old 11-30-2011
Quote:
10.51.251.71 dhcp1 dhcp1. loghost --> Not Working
Why not remove the spurious "dhcp1." entry?
Code:
10.51.251.71 dhcp1 loghost

You mail program may be assuming that "dhcp1." is a qualified hostname.
This User Gave Thanks to methyl For This Post:
# 4  
Old 12-05-2011
Some of the binding with the servers is with hostname dhcp1. hostname ,that is the reason i havent removed that before .now i have removed the same and it is working fine .
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris mailx Configuration

Hi, I need to send an output from Solaris to my email address. For example df -h to be sent out from the Solaris. I was wondering how to configure the mailx and smtp configuration to be setup. Has anyone setup before? Thanks. :confused::confused::confused: (0 Replies)
Discussion started by: freshmeat
0 Replies

2. Solaris

Configure mailx in Solaris 10

Hello, We are using exchange server in our environment. I need to configure mailx to send email from Solaris box to one mail I'd which is on exchange server. I know ip of exchange server.. Let me know where should I configure that ip to do the needful? (2 Replies)
Discussion started by: sureshsun
2 Replies

3. Solaris

Mailx help in Solaris

Hi Team, We are with Solaris 10. And presently we are sending mail using the tool mailx -s. Our requirement is we need to send amil with HIGHPRIORITY. SO is there any way to send the mail as HIGHPRIORITY. If not any alternative way instaead of using mailx. Thanks in advance. Regards Bala (7 Replies)
Discussion started by: balagj709
7 Replies

4. Red Hat

mailx on linux just like on solaris/HP

Hello Unix lovers, I want to know if I can have mailx on linux. I am using redhat 6. My sys admin says that mailx is not availble on linux. I see on my linux system mailx is just a link to /bin/Mail program. I want to install mailx just as it is availble on soaris/HP. When my sys... (4 Replies)
Discussion started by: shriashishpatil
4 Replies

5. UNIX for Advanced & Expert Users

mailx problem

I executed my script in linux environment so Here Im facing problem.In linux has mailx command but if i include in following way Im getting error like ./script2.sh: line 6: mailx: command not found. if I use mail command also Im getting same error. $ cat script2.sh while ps | ./pwtst do... (5 Replies)
Discussion started by: ksrivani
5 Replies

6. UNIX for Dummies Questions & Answers

Need Help w/mailx - Sun Solaris

I have this Legato application which generates a file and then it pipes it to mailx. cat << savelog.txt | mailx -s "Saverpt `date +"%c`" myemail@xxx.com The "savelog.txt does get created and is owned by root and other group, but yet will not email using mailx to myemail@xxx.com. Mailx... (4 Replies)
Discussion started by: gzs553
4 Replies

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

8. UNIX for Advanced & Expert Users

problem with mailx

Hi unix lovers, I have some problem with using mailx. I want to send mail as per the instructions in a file. The mail does not reach to CC recepients. To get a clearer picture, this is what I am typing on unix prompt. $ $ mailx ashishp@suntech.com < mail.txt $ And my mail.txt looks... (7 Replies)
Discussion started by: shriashishpatil
7 Replies

9. UNIX for Dummies Questions & Answers

mailx problem

Is there a size limit on the file that can be sent using mailx? I'm trying mailx -s "alertlog" tome@work < /dir/my.log and I only get a portion of the log. The newest portion of the log is not included in the mail. Additionally, I would like the option of mailing just the last 100... (1 Reply)
Discussion started by: djbartkow
1 Replies

10. UNIX for Dummies Questions & Answers

mailx problem

Here is a question I have, maybe someone can help me out. I am new to this UNIX thing. :) I have a file called elist. In this file is a list of 25 email adresses. How can I write a simple command line for that will read the names of the file and send it to each of the email addys. Can I... (2 Replies)
Discussion started by: iastorms
2 Replies
Login or Register to Ask a Question