1832962 Members
2909 Online
110048 Solutions
New Discussion

Sendmail

 
Jason Nelson_3
New Member

Sendmail

I am getting unable to qualify domain name when sending mail. how do I fix this
5 REPLIES 5
someone_4
Honored Contributor

Re: Sendmail

Hello
in /etc/mail/sendmail.cf

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
where hp.com would be the name of your domain. Then that warning
message will go away.

Richard
Domenico_5
Respected Contributor

Re: Sendmail

hi

in /etc/hosts/, add an alias oh your server

example is hpux your host name add on the same line hpux.hpux.it

and restart sendmail /sbin/initd/sendmail stop
/sbin/initd/sendmail start

and you don't receive unable......
Mark Greene_1
Honored Contributor

Re: Sendmail

check your /etc/nsswitch.conf to ensure it has the proper NIS/DNS references.

HTH
mark
the future will be a lot like now, only later
Jeff Schussele
Honored Contributor

Re: Sendmail

Hi Jason,

If you're gettiing that msg @ boot time. You need to setup your fully qualified EX:
host.domain.com
as an alias in your /etc/hosts file.
Just add it after the host name - on the same line - with some white space between them.
If it's when you actually mail the above entries will solve your problem.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sanjay_6
Honored Contributor

Re: Sendmail

Hi Jason,

As suggested by Richard, edit the file /etc/mail/sendmail.cf and change the entry suggested by Richard. Then restart sendmail.

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Hope this helps.

Regds