1837141 Members
2444 Online
110112 Solutions
New Discussion

Re: sendmail problem

 
SOLVED
Go to solution
Deniz Cendere
Frequent Advisor

sendmail problem

Hi all,

I have a system running hp-ux 11.00 ; it is an OpenView server. I edited the sendmail.cf and /etc/hosts files. But sendmail didn't work. When I edited the /etc/nsswitch.conf file as below, it worked.

before the change;
hosts: files [NOTFOUND=continue] nis [NOTFOUND=continue] dns [NOTFOUND=return]

after the change; (it works with this conf)
hosts: files

I don't want to change this conf file because it is an openview server and also dataprotector software runs on it.

Can you help me? Why doesn't it work and what can I do?

Thanks a lot,

Deniz,
5 REPLIES 5
Luk Vandenbussche
Honored Contributor

Re: sendmail problem

Hi,

Did you restart the sendmail daemon after the modifications ?

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

What do you see in /var/adm/syslog/mail.log
Muthukumar_5
Honored Contributor

Re: sendmail problem

You are not having enough entries in /etc/hosts file for hostname resolvation. So that hosts: files .. did not work. You have changed /etc/hosts files then it will work for,

hosts: files
hosts: files [NOTFOUND=continue] nis [NOTFOUND=continue] dns [NOTFOUND=return]

as well. I hope you did not try with old configuration after changing /etc/hosts file. Try it.

hth.
Easy to suggest when don't know about the problem!
Deniz Cendere
Frequent Advisor

Re: sendmail problem

it works with "hosts: files"

it doesn't work with "files [NOTFOUND=continue] nis [NOTFOUND=continue] dns [NOTFOUND=return]"

when I write;
nslookup domain_adress;
if it writes "*** No address information is available for "domain_adress" --> sendmail works.

if it finds the domain_adress, it doesn't work.

How can it work although it doesn't find the domain_address?
Joe White
Frequent Advisor

Re: sendmail problem

Make sure you have an /etc/resolv.conf file which defines your domain and nameservers. This is essential for DNS resolution whether you're using sendmail or not.
Also, what kind of sendmail errors are you getting when you use the full 'hosts:' statement in /etc/nsswitch.conf (check /var/adm/syslog/mail.log)?


Steven E. Protter
Exalted Contributor
Solution

Re: sendmail problem

You should not have to change /etc/nsswitch.conf

You may need to change /etc/resolv.conf to get good DNS lookup results.

Frankly I like your nsswitch conf setup.

Try this:

sendmail -v -d8.99 -d38.99 test@test.com

type some text

.


You will get good diagnostics, but you can also look at your mail.log file in /var/adm/syslog

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com