Operating System - HP-UX
1827318 Members
5755 Online
109961 Solutions
New Discussion

IP address changing and sendmail related?

 
apichart
Advisor

IP address changing and sendmail related?

when excute the /usr/sbin/newalaises, I get the error
"WARNING: local host name (smsc3) is not qualified; fix $j in config file
/etc/mail/aliases: 8 aliases, longest 41 bytes, 132 bytes total"

Kindly give me the advise..

/etc/hosts already defined smsc 192.168.9.99
also, run the command hostname, the result I got "smsc3".

when I check the /var/adm/syslog/mail.log
I found the error "gethostbyaddr(192.168.9.1) failed:"


Actually, I used the set host ipaddress as "192.168.9.1", now I changed it to "192.168.9.99" So any change has to be done with sendmail application?

4 REPLIES 4
David Child_1
Honored Contributor

Re: IP address changing and sendmail related?

Edit /etc/mail/sendmail.cf as follows:

Change the line:
#Dj$w.Foo.COM

to
Dj$w.

(put in your domain instead of ; e.g. vartec.com)

Once thats done, restart sendmail (/sbin/init.d/sendmail stop;/sbin/init.d/sendmail start).

David
apichart
Advisor

Re: IP address changing and sendmail related?

your recommendation doesn't work
Cesare Salvioni
Trusted Contributor

Re: IP address changing and sendmail related?

What David told is right, the problem comes because sendmail WANT ur host to be fully qualified (with domain name) so u have to:

create the file /etc/resolv.conf and specify a domain

OR

add an alias to the host file with the FQN
192.168.9.99 smsc3 smsc3.YOUR.DOMAIN

OR

configure explicity the sendmail through the macro $j as David told
Marton Ferenc
Advisor

Re: IP address changing and sendmail related?

check your /etc/hosts file. Right format is
192.168.9.99 hostname.domain alias

I dont suggest to change sendmail.cf because you hat ve take care better in upgrade...
J5000