Operating System - HP-UX
1752425 Members
4891 Online
108788 Solutions
New Discussion юеВ

Re: Mails sent to local mail addresses doesn't work

 
SOLVED
Go to solution
Muthukumar_5
Honored Contributor

Re: Mails sent to local mail addresses doesn't work

Use search for searching domain names as,

search hsp.santpau.es

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Mails sent to local mail addresses doesn't work

Put that in /etc/resolv.conf as,

search santpau.es hsp.santpau.es

remove domain line.

hth.
Easy to suggest when don't know about the problem!
Carles Viaplana
Valued Contributor

Re: Mails sent to local mail addresses doesn't work

Hello Muthukumar,

I changed /etc/resolv.conf as you told but it still fails.

Any idea?
Regards,

Carles
Christopher Caldwell
Honored Contributor
Solution

Re: Mails sent to local mail addresses doesn't work

The right hand side of the address
e.g. hsp.santpau.es
either has to look up in DNS as an A record or an MX record.

So one of the two of these needs to return a numerical address:
$nslookup hsp.santpau.es
or
$nslookup
set type=mx
hsp.santpau.es

=========================================

$ nslookup hsp.santpau.es
Name Server: A.B.C.D
Address: 1.2.3.4

Trying DNS
Non-authoritative answer:
Name: hsp.santpau.es
Address: 193.146.15.209

$ nslookup
Default Name Server: A.B.C.D
Address: 1.2.3.4

> set type=mx
> hsp.santpau.es
Name Server: A.B.C.D
Address: 1.2.3.4


Trying DNS
Non-authoritative answer:
hsp.santpau.es preference = 10, mail exchanger = teseo.santpau.es

Authoritative answers can be found from:
santpau.es nameserver = chico.rediris.es
santpau.es nameserver = teseo.santpau.es
santpau.es nameserver = teseo2.santpau.es
santpau.es nameserver = sun.rediris.es
teseo2.santpau.es internet address = 193.146.15.221

==========================================

Since both tests return a numerical address, sendmail will default to the MX. Thus mail destined for hsp.santpau.es should get delivered to teseo.santpau.es.

Sounds like you've either got a lookup problem (run the test I gave you), or someone has modified sendmail.cf to affect the local delivery of mail, and the configuration is incomplete.
Carles Viaplana
Valued Contributor

Re: Mails sent to local mail addresses doesn't work

Hello all,

Here you're nslookup results:

# nslookup
Default Name Server: heidi.santpau.es
Address: 193.146.12.2

> set type=mx
> hsp.santpau.es
Name Server: heidi.santpau.es
Address: 193.146.12.2

Trying DNS
Trying NIS
looking up FILES
*** No address information is available for "hsp.santpau.es"
> exit
# nslookup hsp.santpau.es
Name Server: heidi.santpau.es
Address: 193.146.12.2

Trying DNS
Trying NIS
looking up FILES
*** No address information is available for "hsp.santpau.es"
#

Note that, as I already said before, I want to send mail from system to operacio@santpau.es but system can't.

Thanks in advance for your help!

Carles
Muthukumar_5
Honored Contributor

Re: Mails sent to local mail addresses doesn't work

what you are getting for,

# nslookup santpau.es

I hope you are using setup only as,

# more /etc/resolv.conf
domain santpau.es
nameserver 193.146.12.2
nameserver 193.146.12.3
nameserver 193.146.12.4
#

Try as,

# /etc/resolv.conf
domain santpau.es
search hsp.santpau.es
nameserver 193.146.12.2
nameserver 193.146.12.3
nameserver 193.146.12.4
#

You have to configure hsp.santpau.es ip-address as santpau.es in /etc/hosts or register with dns.

hsp.santpau.es has to be resolved with ping / nslookup so that you can able to sendmail (s).

hth.


Easy to suggest when don't know about the problem!
Carles Viaplana
Valued Contributor

Re: Mails sent to local mail addresses doesn't work

It seems a network issue and network team is working on.

Thanks to all for your messages.