1825793 Members
2850 Online
109687 Solutions
New Discussion

Sendmail issue

 
Tom Horan
Frequent Advisor

Sendmail issue

I am getting a warning in my rc.log. It is saying

Output from "/sbin/rc2.d/S540sendmail start":

Warning: local host name (sys_name) is not qualified; fix$j in config file /etc/mail/aliases: 6 aliases, longest 9 bytes, 76 bytes total
sendmail

Has anybody come accross this before ?

Cheers
Paul
6 REPLIES 6
Eugen Cocalea
Respected Contributor

Re: Sendmail issue

Hi,

a quote from the (very well documented) /etc/mail/sendmail.cf:

# For example, if you see this warning: #
# #
# WARNING: local host name (sys1) is not qualified; fix $j in config file #
# #
# then you need to uncomment the Dj macro and add your domain. #
# #
# Change the line: #
# #Dj$w.Foo.COM #
# to #
# Dj$w.hp.com

(well, I don't know how good it will look, pasted from the file, but anyway, dig in /etc/mail/sendmail.cf, look for the error you got and do what they say :) )

E.
To Live Is To Learn
Robin Wakefield
Honored Contributor

Re: Sendmail issue

Hi Paul,

sendmail *should* be able to work out what "j" equates to, if it can't you need to set it in your sendmail.cf

Djmachine.company.com

OR

Dj$w.$m (if w and m are known).

$w is the hostname
$m is the domainname

Run /usr/lib/sendmail -d0.1 to see what sendmail thinks.

Rgds, Robin.
Craig Rants
Honored Contributor

Re: Sendmail issue

You could also fix this through dns or /etc/hosts by making sure you can resolve your FQDN. Maybe you resolv.conf may need a little tweaking as well. Does it have:
domain yourdomain.com

or

search somedomains.com anotherdomain.com

C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
linuxfan
Honored Contributor

Re: Sendmail issue

Hi Paul,

Update your /etc/hosts file to indicate

IP hostname hostname.domain.com

If you are using DNS, make sure nslookup returns FQDN.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Uday_S_Ankolekar
Honored Contributor

Re: Sendmail issue


Hi,

Check for etc/hosts file for Full qulified domain name for your server. Change it if not.
Secondly edit /etc/mail/sendmail.cf file look for dj and put FQDN infront of it (servername.domain name) then restart the sendmail by
sbin/init.d/sendmail start

Goodluck,
-USA..
Good Luck..