1758766 Members
2729 Online
108875 Solutions
New Discussion юеВ

Re: sendmail problem

 
deepak_9
Frequent Advisor

sendmail problem

Hi,

I am facing a problem while sending a mail using SENDMAIL . For on eserver it's working ok. But for other 3 servers it's giving me an error :-

"unable to qualify the domain-name". I checked for /etc/hosts file the entry seems to be ok. I am specifying the relay server ip in /etc/mail/sendmail.cf file. but it's not going through.
Never Ever give Up !!!!!
6 REPLIES 6
Paula J Frazer-Campbell
Honored Contributor

Re: sendmail problem

Hi

In etc/hosts put a full stop (period) at end of home server entry.

i.e.

100.100.100.100 this THIS .


Paula
If you can spell SysAdmin then you is one - anon
Chris Wilshaw
Honored Contributor

Re: sendmail problem

It may be that the server is trying to use DNS to resolve rather than the hosts file.

check /etc/mail/service.switch

if it contains
hosts dns files

it will be trying to use DNS in preference to hosts to resolve addresses.
Juan Manuel L├│pez
Valued Contributor

Re: sendmail problem

Hi,
Sendmail use the /etc/mail/sendmail.cf config file.
It is here where you have to puit the domain.
That is mean that sendmail can send messages and your machine do not knot what is it own domain.
Edit this file and find the lines:

# my official domain name
Dj$w.terra.es


I hope this help.

Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
deepak_9
Frequent Advisor

Re: sendmail problem

Hi,

i am getting the below error in /var/adm/syslog/mail.log file :-

Apr 11 19:37:44 apps1 sendmail[1760]: gethostbyaddr(172.17.112.1) failed: 3
Apr 11 19:39:44 apps1 sendmail[1906]: gethostbyaddr(172.17.112.10) failed: 3

Also following is the mailq status :-
apps1:toor:/etc/mail>>mailq
Mail Queue (5 requests)
--Q-ID-- --Size-- -----Q-Time----- ------------Sender/Recipient------------
MAA14525 1134 Fri Apr 12 12:00 adm
(host map: lookup (rsn.hp.com): deferred)
itadm@rsn.hp.com
MAA26021 1134 Thu Apr 11 12:00 adm
(host map: lookup (rsn.hp.com): deferred)
itadm@rsn.hp.com
MAA08010 1134 Wed Apr 10 12:00 adm
(host map: lookup (rsn.hp.com): deferred)
itadm@rsn.hp.com
MAA22025 1134 Tue Apr 9 12:29 adm
(host map: lookup (rsn.hp.com): deferred)
itadm@rsn.hp.com
MAA02170 1134 Mon Apr 8 12:00 adm
(host map: lookup (rsn.hp.com): deferred)
itadm@rsn.hp.com
Never Ever give Up !!!!!
Nico van Royen
Frequent Advisor

Re: sendmail problem

If you are using the IP number for the relay in the sendmail.cf file, you might need to enclose it into brackets.
i.e.:
[1.2.3.4] instead of just 1.2.3.4.
If all else fails, try reading the manual...
Carlos Fernandez Riera
Honored Contributor

Re: sendmail problem

check existence and content of /etc/nsswitch.conf

/etc/mail/service.switch is no more used.
unsupported