Solaris 9 mailx problems


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 9 mailx problems
# 1  
Old 05-17-2006
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
# 2  
Old 05-17-2006
Can you email anyone?

Assuming you are on the box, try mailx localhost to make sure sendmail is turned on.

(This would be under root)

If not, you might have some more direction.
# 3  
Old 05-18-2006
Check to see where (if at all) mail information is being sent to (I'm referring to warning/error/informational messages, not email) by looking at your /etc/syslog.conf file for mail. Default is for it to go to /var/adm/messages. Grep for sendmail in that file (probably /var/adm/messages). It may give you a clue as to what happened to the email.

Also test that sendmail is configured correctly (could be a DNS issue).
Run /usr/lib/sendmail -d0.1 -bt < /dev/null and check the output for errors. (see this thread for info)
# 4  
Old 05-18-2006
here is my syslog.conf, looks like it is going to syslog, any suggestions on how i should modify this to capture more error messages for mail

# more /etc/syslog.conf
#ident "@(#)syslog.conf 1.5 98/12/14 SMI" /* SunOS 5.0 */
#
# Copyright (c) 1991-1998 by Sun Microsystems, Inc.
# All rights reserved.
#
# syslog configuration file.
#
# This file is processed by m4 so be careful to quote (`') names
# that match m4 reserved words. Also, within ifdef's, arguments
# containing commas must be quoted.
#
*.err;kern.notice;auth.notice /dev/sysmsg
*.err;kern.debug;daemon.notice;mail.crit /var/adm/messages

*.alert;kern.err;daemon.err operator
*.alert root

*.emerg *

# if a non-loghost machine chooses to have authentication messages
# sent to the loghost machine, un-comment out the following line:
#auth.notice ifdef(`LOGHOST', /var/log/authlog, @loghost)

mail.debug ifdef(`LOGHOST', /var/log/syslog, @loghost)

#
# non-loghost machines will use the following lines to cause "user"
# log messages to be logged locally.
#
ifdef(`LOGHOST', ,
user.err /dev/sysmsg
user.err /var/adm/messages
user.alert `root, operator'
user.emerg *
)
# 5  
Old 05-18-2006
I got this from the command asked me to run, i cant make much out of it


/usr/lib/sendmail -d0.1 -bt < /dev/null
Version 8.12.10+Sun
Compiled with: DNSMAP LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8
MIME8TO7 NAMED_BIND NDBM NETINET NETINET6 NETUNIX NEWDB NIS
NISPLUS PIPELINING SCANF USERDB USE_LDAP_INIT XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = my hostname
(canonical domain name) $j = my full cononical domain name
(subdomain name) $m = my subdomain
(node name) $k = full hostname
========================================================

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
# 6  
Old 05-18-2006
here is what i found in syslog, looks like my localhost is refusing connections


May 18 13:31:19 my_hostname sendmail[5976]: [ID 801593 mail.info] k4IHVJ3K005976: to=phonenumber@mess
aging.nextel.com, ctladdr=saundersc (600/100), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30100, relay=[127.0.0.1] [12
7.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May 18 13:56:43 my_hostname sendmail[7410]: [ID 801593 mail.info] k4IHuhAe007410: from=saundersc, si
ze=48, class=0, nrcpts=1, msgid=<200605181756.k4IHuhAe007410@my_hostname>, relay=saundersc@localhost
May 18 13:56:43 my_hostname sendmail[7410]: [ID 801593 mail.info] k4IHuhAe007410: to=localhost, ctla
ddr=saundersc (600/100), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30048, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, s
tat=Deferred: Connection refused by [127.0.0.1]
May 18 13:59:25 my_hostname sendmail[7572]: [ID 702911 mail.warning] gethostbyaddr(ip) fail
ed: 1
May 18 13:59:25 my_hostname sendmail[7572]: [ID 702911 mail.warning] gethostbyaddr(ip) fail
ed: 1
May 18 13:59:25 my_hostname sendmail[7572]: [ID 702911 mail.warning] gethostbyaddr(ip) fail

Last edited by csaunders; 05-18-2006 at 03:10 PM..
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. Red Hat

Problems sending mail: Difference between Mail and Mailx?

Whats the difference between mail and mailx? I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL) ... (1 Reply)
Discussion started by: RedSpyder
1 Replies

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

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

6. Solaris

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 root@sshldb # nslookup mailhost... (8 Replies)
Discussion started by: Srinathkiru
8 Replies

7. Solaris

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... (3 Replies)
Discussion started by: sandeep.tk
3 Replies

8. Solaris

mailx on solaris - How to add mail body

hi, Can anyone please tell me how to add some text in the mail body like I can add subject using the following syntax. mailx -s "Hi - This is mail subject" xyz@abc.com Many Thanks. (4 Replies)
Discussion started by: abovais
4 Replies

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

10. Shell Programming and Scripting

mailx command (Sun Solaris 8)

Hi, I would like to use mailx to send multiple files to one recipient whereas each file should be send as a separate email. mailx -s "Subject" email@user.de < file1 file2 file3 file4 If I use this command email@user.de will receive only file4. And: cat file* | mailx -s .... will combine... (2 Replies)
Discussion started by: cczerwin
2 Replies
Login or Register to Ask a Question