Operating System - HP-UX
1823063 Members
3144 Online
109645 Solutions
New Discussion юеВ

local host name is not fully qualified

 
Rajesh_20
Occasional Advisor

local host name is not fully qualified

local host name is not fully qualified fix $j in config file /etc/mail/aliases in UNIX
can anyone help me?
3 REPLIES 3
U.SivaKumar_2
Honored Contributor

Re: local host name is not fully qualified

Hi,

$j is not defined in /etc/mail/aliases . it is defined in /etc/mail/sendmail.cf or /etc/sendmail.cf

edit sendmail.cf and put your domain name at the end of $j macro ( if you use DNS ) or put a dot ( if you dont use DNS )and restart sendmail. hope your problem is solved

Dj$w.mydomain.com

(or)


Dj$w.

regards,
U.SivaKumar

Innovations are made when conventions are broken
T G Manikandan
Honored Contributor

Re: local host name is not fully qualified

Modify the /etc/mail/sendmail.cw which needs a list of all the names by which this host will be known.

YOu can make entry in the file like


.domainname
Then re-start sendmail to
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

check those messages dont appear again.

Thanks
Bill Hassell
Honored Contributor

Re: local host name is not fully qualified

If you do not use a DNS server (ie, /etc/hosts is required to resolve your local hostname), then add an alias to /etc/hosts for your local machine which contains a single dot, like this:

12.34.56.78 myhost myhost.


where myhost is your local machine. And make sure that nsswitch.conf has /etc/hosts listed as first or second choice for resolving names (assuming you have the file /etc/resolv.conf). If you don't have resolv.conf, then just make the change to /etc/hosts (and as mentioned before, to sendmail.cf)


Bill Hassell, sysadmin