Solaris 10 Terminal Error

When in the terminal on Solaris 10 this terminal error keeps popping up and won't stop, how do I remove it?

Nov 24 13:22:42 unknown sendmail[17431]: [ID 702911 mail.alert] unable to qualify my own domain name (unknown) -- using short name
Nov 24 13:22:42 unknown sendmail[17520]: [ID 801593 mail.alert] oAOIMgqg017431: SYSERR(root): fill_fd: disconnect: cannot open /dev/null: Permission denied
Nov 24 13:23:43 unknown sendmail[17525]: [ID 702911 mail.alert] unable to qualify my own domain name (unknown) -- using short name

Any help would be appreciated.

make sure the permissions on /dev/null is 666

also check /etc/resolv.conf, /etc/hosts, /etc/nsswitch.conf to make sure your name resolution is setup correctly.

I did the followin on /dev/null:

chmod 666 null
chmod: WARNING: can't change null

This is the current permissions:

lrwxrwxrwx   1 root     other         27 Nov 24 09:48 null -> ../devices/pseudo/mm@0:null

These are the permissions I have on the actual linked file, which are correct:

crw-rw-rw-   1 root     sys       13,  2 Nov 24 21:51 mm@0:null

This is what I have in /etc/nsswitch.conf:

# ident "@(#)nsswitch.files     1.14    06/05/03 SMI"

#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd:     files
group:      files
#hosts:      files # Commented out by DHCP
hosts: files dns # Added by DHCP
#ipnodes:    files # Commented out by DHCP
ipnodes: files dns # Added by DHCP
networks:   files
protocols:  files
rpc:        files
ethers:     files
netmasks:   files
bootparams: files
publickey:  files
# At present there isn't a 'files' backend for netgroup;  the system will
#   figure it out pretty quickly, and won't use netgroups at all.
netgroup:   files
automount:  files
aliases:    files
services:   files
printers:       user files

auth_attr:  files
prof_attr:  files
project:    files

/etc/hosts has the correct hostname next to the ip address.

/etc/resolv.conf has the correct domain and dns servers for my ISP.

Can someone guide me on if I am seeing the correct stuff as I am new to this and after setting up the hostname in the below files I am still getting the same errors:

/etc/nodename
/etc/hostname.xxn
/etc/inet/hosts

my bad. i forgot about solaris having a symlink for that. to confirm the permissions on ../devices/pseudo/mm@0:null were already 666? if so why did you run chmod 666? If not what were the permissions befored you fixed it.

make sure the hostname has a line in /etc/hosts for fqdn and short name.

check this command

man check-hostname ("OpenSolaris&section=1m")- check if sendmail can determine the system's fully-qualified host name

one more thing. The title of the OP is incorrect. This is not a "terminal error". it's a sendmail error

I've had similar problems jastanle84 and I don't even need sendmail. But I never could seem to get rid of it, even disabling the service did not help.
What can get rid of the error message though is modifying your /etc/hosts file.
Remember, each host can have several aliases. They are just listed on the same line, like this:

w.x.y.z myhost mycrazyhost mywackyhost

(Of course the w-z are replaced by numbers. That is your IP address.) "So what?" you say? Big deal, I can use several names for the same machine. Uh-huh it is a big deal if you want to get rid of this error message. The "domain name" it is looking for is anything after the host name and a dot, so you can do something like this:
111.222.333.444 myhost myhost.quiet

That's all there is to it. Oh, you might have to stop/restart sendmail or even the inet daemon (or reboot if you can). I forget, but I think you might not have to do this. Try it and let everyone know.:smiley:

1 Like

just put a FQDN in /etc/hosts & update /etc/defaultdomain

I had to chmod the /etc/hosts because it was 444 and then I had to make an entry with the ip address and FQDN. I also changed /etc/nodename with the FQDN. I then did a restart and everything worked. I still have some other funky errors with RPC Bind but I will get to these later. Thanks all for your help.