1845923 Members
3872 Online
110250 Solutions
New Discussion

Re: sendmail problem

 
apichart
Advisor

sendmail problem

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".

9 REPLIES 9
RAC_1
Honored Contributor

Re: sendmail problem

You have problems with set hostname.

You can start all over by doing /etc/set_params hostname.

Also you can do uname -S "smsc"

Restart sendmail. Problem should gone now.

Anil
There is no substitute to HARDWORK
Robert-Jan Goossens
Honored Contributor

Re: sendmail problem

Hi,

Add a alias in the /etc/hosts file with a dott.

125.4.12.125 rj001 rj001.

Regards,
Robert-Jan
Hoefnix
Honored Contributor

Re: sendmail problem

Hi,
sendmail likes to get a fully qualified hostname.
You got as result of hostname smsc3.
See what uname -a tells.
Put a FQDN in /etc/hosts and get the command hostname and uname -n report the same name.

HTH,
Peter
Geoff Wild
Honored Contributor

Re: sendmail problem

Or modify this line in /etc/mail/sendmail.cf:

#Dj$w.Foo.COM

to

Dj$w.yourdomain.com

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
apichart
Advisor

Re: sendmail problem

hi when I check the /var/adm/syslog/mail
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?
Thanks
RAC_1
Honored Contributor

Re: sendmail problem

gethostbyaddr(192.168.9.1) failed:

How many nics you have in machine, is all have not been given a name in /etc/hosts, you will get gethostbyaddr error. so put them in /etc/hosts and it should be gone.

Anil
There is no substitute to HARDWORK
apichart
Advisor

Re: sendmail problem

I put /etc/hosts

192.168.9.99 smsc3

but why the sendmail remember the old ip I temporarily used as "192.168.9.1"
Pratyush Paul_1
Valued Contributor

Re: sendmail problem

Hi -

you have to restart your sendmail utility in order to make the changes effective. After you have make changes to /etc/hosts & /etc/mail/sendmail.cf. please try to do this

#/usr/sbin/sendmail -bd -q15

And then do

#ps -aef | grep -i sendmail

And see if sendmail is accepting connection.

Try sending a message.

#/usr/sbin/sendmail -v userid@domainname.com

write your mail here.

. (insert a dot to terminate the mail)

(see the verbose text if there is any delivery error)

Let me know if this works. Please ensure you have FQDN in your /etc/hosts file, and you have DS (smart relay host) defined in your sendmail.cf

regards

Pratyush
Die Hard