cancel
Showing results for 
Search instead for 
Did you mean: 

sendmail problem

SOLVED
Go to solution
Andres_13
Respected Contributor

sendmail problem

Hi all,

I have an issue with sendmail (see the attached file). I think this a network resolution issue, but i need step by step help. I just deploy this server so i can take it over.

Thanks & regards
9 REPLIES
Calandrello
Trusted Contributor

Re: sendmail problem

Andres

For what I noticed in the annexed archive, its sendmail nao this configured for the sendmail edits the /etc/mail/sendmail.cf archive in this archive voce places configuracao of realy, dominio, etc
Andres_13
Respected Contributor

Re: sendmail problem

Thanks Calandrello,

Can you be more specific (eg wich field to edit) i think all is ok; if not can you retrieve some details please?

regards.
Calandrello
Trusted Contributor

Re: sendmail problem

Andres
It follows an example in annex. it is enough to edit with its configuracoes, where he will be xxxx.
Andres_13
Respected Contributor

Re: sendmail problem

Calandrello,

As i say, i think all is ok:

there are two fields that i did modify in /etc/mail/sendmail.cf:
Dj --> Dj$w.grupolala.com and
DS (for relay) --> DSmail

In /etc/hosts
200.200.22.156 mail

nslookup's output:
Using /etc/hosts on: ltrsd020

> 200.200.22.156
Using /etc/hosts on: ltrsd020

looking up FILES
Name: mail
Address: 200.200.22.156

> mail
Using /etc/hosts on: ltrsd020

looking up FILES
Name: mail
Address: 200.200.22.156

>

Any clues?
Thanks & regards
Calandrello
Trusted Contributor

Re: sendmail problem

Andres

Configuracoes ok pparently correct. now when tries to send the sendmail way which error occurs?

Andres_13
Respected Contributor

Re: sendmail problem

Calandrello,

The same that i originally attached:

ltrsd020/etc/mail/> sendmail -v -d8.99 -d38.99 vmacosta@grupolala.com
;; res_querydomain(ltrsd020, , 1, 1)
;; res_query(ltrsd020., 1, 1)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
getcanonname(ltrsd020), trying files
text_getcanonname(ltrsd020)
getcanonname(ltrsd020), trying dns
dns_getcanonname(ltrsd020, trymx=1)
dns_getcanonname: trying ltrsd020. (ANY)
;; res_querydomain(ltrsd020, , 1, 255)
;; res_query(ltrsd020., 1, 255)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
NO: errno=239, h_errno=2
dns_getcanonname: trying ltrsd020. (AAAA)
;; res_querydomain(ltrsd020, , 1, 28)
;; res_query(ltrsd020., 1, 28)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
NO: errno=239, h_errno=2
getcanonname(ltrsd020), failed, status=75
seq_map_parse(aliases.files, )
;; res_query(17.23.200.200.in-addr.arpa, 1, 12)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
;; res_query(18.23.200.200.in-addr.arpa, 1, 12)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
;; res_query(18.23.200.200.in-addr.arpa, 1, 12)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
openmap() dequote:dequote NULL: valid
openmap() host:host NULL: valid
getcanonname(grupolala.com), trying files
text_getcanonname(grupolala.com)
getcanonname(grupolala.com), trying dns
dns_getcanonname(grupolala.com, trymx=1)
dns_getcanonname: trying grupolala.com. (ANY)
;; res_querydomain(grupolala.com, , 1, 255)
;; res_query(grupolala.com., 1, 255)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
NO: errno=239, h_errno=2
dns_getcanonname: trying grupolala.com. (AAAA)
;; res_querydomain(grupolala.com, , 1, 28)
;; res_query(grupolala.com., 1, 28)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
NO: errno=239, h_errno=2
getcanonname(grupolala.com), failed, status=75
grupolala.com: Name server timeout
vmacosta@grupolala.com... Transient parse error -- message queued for future delivery
test.
.
vmacosta@grupolala.com... queued
closemaps: closing host (NULL)
closemaps: closing dequote (NULL)

...
Calandrello
Trusted Contributor
Solution

Re: sendmail problem

Andres
this server this deciding DNS? in the /etc/resolv.conf archive this configured the DNS server? for the error that this occurring the server nao this obtaining to find the dominio.
Ivan Ferreira
Honored Contributor

Re: sendmail problem

This looks like you don't have a DNS server configured in your system:

Edit /etc/resolv.conf:

domain yourdomain.com
nameserver 192.168.1.1
nameserver 192.168.1.2


Replace the address for apropiate values.

Ensure that /etc/nsswitch.conf looks like this:

hosts: dns [NOTFOUND=continue] files
ipnodes: dns [NOTFOUND=continue] files


Test a name resolution, for example:

nslookup www.hp.com
Name Server: cellmgra.sis.personal.net.py
Address: 10.129.4.226

Trying DNS
Non-authoritative answer:
Name: www.hpgtm.nsatc.net
Addresses: 192.6.234.17, 192.6.234.18
Aliases: www.hp.com


Then you can use the script:

/usr/newconfig/etc/mail/cf/cf/gen_cf

To configure sendmail
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Andres_13
Respected Contributor

Re: sendmail problem

Thank you all guys!

1. rm /etc/resolv.conf
2. vi /etc/resolv.conf
3. set the domain and nameserver params and it works!

Thanks and have a nice day!