1830899 Members
2910 Online
110017 Solutions
New Discussion

Re: sendmail problems

 
Mike Nemeth
Advisor

sendmail problems

I've two servers dv1 and dv2. dv1 nfs mount home dirs from dv2. I'd like mail to be received
on either server but right now
mail only delivered locally. My nsswitch as hosts : files, my host file on both has
ip.nn.xx dv1 dv1.
ip.nn.yy dv2 dv2.

sendmail.cw for dv1 has:
localhost
dv1
dv1.
sendmail.cw for dv2 has:
localhost
dv2
dv2.

On Both sendmail.cf have:
Dj$w.

I did this because of no dommain name / unqualified dommane

sendmail has been stop and restarted on both (vers 8.71.)
I can nslookup dv1 dv1. dv2 dv2.
I've telnet ed into port 25 and issued Hello successfully.

But when I do :
send mail-v mjn@dv1.
out
.
I get dv1.... Deferred: Name server: dv1.: host name lookup failure.

The mail never goes out. What am I missing?
Thank in advance.

5 REPLIES 5
Berlene Herren
Honored Contributor

Re: sendmail problems


By default sendmail tries to use DNS to resolve. If you have an nsswitch.conf file under /etc, make sure the hosts line reads

hosts: files

if you are not using DNS.

Then stop and restart sendmail.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Kevin Wright
Honored Contributor

Re: sendmail problems

it is much easier to set up sendmail if you set up DNS first..you might consider that. it seems like it does not know where to send the mail, in DNS, you would just set up a MX record and sendmail will find it in the zone. If not using DNS, you need to set some other variables in sendmail.cf file, like the MX, relay or something like that.
David_546
Occasional Advisor

Re: sendmail problems

Hi Mike,

Your problem could be that the DNS hasn?t got a MX (MailExchange) register for your second system.

In order to know how your mail will be delivery try to query DNS, but only about MX registers. So try:

# nslookup

and then

# >server
# >set q=mx "Setup that you are only interesting in MX registers"

and then type de name of the system/domain.

You will see a list of all the severs which will delivery the mail. In your case, problably the list is empty so you must add a MX register for this server.
Mike Nemeth
Advisor

Re: sendmail problems

I cann't use DNS, I share responsable for the systems
and connot to that. (political).

My nsswitch file does have hosts: file.

So the quetion must now be how do I configure sendmail not tusing DNS!
Mike Nemeth
Advisor

Re: sendmail problems

Thanks evereone for trying!
This old version of sendmail WILL
use the service.switch file but wants
to see in /etc not /etc/mail.
So I made a link and mail now works! I think there is a cf macro to set this
but the link works .