1844024 Members
2267 Online
110226 Solutions
New Discussion

sendmail failure

 
lawrenzo_1
Super Advisor

sendmail failure

scenario -

we have a server that is not on our test network for complaince so we have a script that mails a file from the dev server to a production server that then mails onto the target server on the production network.

This is done by setting up mail aliases.

eg.

hp65 is the test box on 170.150.10.65, i need to send network.status.txt to hp829 which is on 10.156.10.23.

I use hp41 to pass the file to hp829 from hp65 which has a gateway to both networks.

the error i get is this:

root@HP65:/ # cat /etc/hosts |/usr/lib/sendmail -v network_status@mbnahp41

network_status@HP41... Connecting to HP41.worldcom.com. via esmtp...
network_status@HP41... Deferred: Network is unreachable

can anyone help? this used to work but seems to me someone has done a change somewhere?

looks like the server was rebooted 9 days ago.

Thanks for your help
hello
13 REPLIES 13
Geoff Wild
Honored Contributor

Re: sendmail failure

From hp65:

traceroute hp829

What is DS set to in sendmail.cf on hp65?

I would set it to: hp829

Also - is hp829 in hp65's /etc/host file as 10.156.10.23?

And is nsswitch.conf set to files first for hosts?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
lawrenzo_1
Super Advisor

Re: sendmail failure

nsswitch.conf set to files first then dns

traceroute gets there in 1 hop

reluctant to add spdm829a to the /etc/hosts file with the production ip as this is a dev server however as previously metioned I should be able to contact hp41 as mail aliases forward the file to hp829

hp41 is in /etc/hosts.

any other ideas as this worked two weeks ago.

Thanks
hello
lawrenzo_1
Super Advisor

Re: sendmail failure

also I would like to add that when running the same command from hp41 to hp655 i get a connection refused message:

root@stdb065:/ # cat /etc/hosts |/usr/lib/sendmail -v root@hp65

root@hp65... Connecting to root@hp65. via esmtp...
root@hp65... Deferred: connection refused by hp65.worldcom.com

any ideas?
hello
Joseph Loo
Honored Contributor

Re: sendmail failure

hi,

try checking if the smtp or esmtp services is running at hp65.worldcom.com:

# telnet hp65.worldcom.com 25
or
# telnet hp65.worldcom.com


regards.
what you do not see does not mean you should not believe
lawrenzo_1
Super Advisor

Re: sendmail failure

oh hp65 get message connection refused - in /etc/services stmp is setup on port 25/tcp

I attempt to connect to hp829 and I do not get a connection refused.

where would I configure estmp?

Thanks
hello
Joseph Loo
Honored Contributor

Re: sendmail failure

hi,

if hp65.worldcom.com is the server running the smtp services (port 25), please start it cause as long as this is not started, there is no way your mail could get through.


regards.
what you do not see does not mean you should not believe
lawrenzo_1
Super Advisor

Re: sendmail failure

ok - not sure what you mean?

start which daemons? I understand that sendmail doesn't need to run to use mail etc

Thanks again
hello
Joseph Loo
Honored Contributor

Re: sendmail failure

hi,

i am referring to the server running the smtp services. do u know which is it?

from your last message, it looks like hp65 is that server, correct me if I am wrong.

regards.
what you do not see does not mean you should not believe
lawrenzo_1
Super Advisor

Re: sendmail failure

ok mail is sent to hp41 whci then mails to 829, no daemons stmp daemons running as /sbin/init.d/sendmail is not running but even if I start this I get the same errors as I have tested this.

I have over 100 servers which this works on all others exept this one which is isolated to a single network 170. 829 is on a 10. network and the hp41 which passes the mail to 829 is on both.

so does sendmail need to run or is there another daemon?

Ta
hello
Joseph Loo
Honored Contributor

Re: sendmail failure

hi,

sendmail daemon need not run on the server, i.e. hp65. is the following route correct then:

hp65 -> hp41 -> hp829 -> target server

also, what is the "Smart" relay host (DS) set in /etc/mail/sendmail.cf of hp65? that is the server, i.e. DSabc.world.com, which the smtp daemon must be running. if possible, u may reply the sendmail.cf file.


regards.
what you do not see does not mean you should not believe
Bejoy C Alias
Respected Contributor

Re: sendmail failure

If you want to send mail to hp41 , there should be a sendmail daemon runnning on this server. You can check whether this is running by typing telnet localhost 25 in hp41. The same is applicable to hp65 ( only if you send mails back to hp65 from hp41 ) and hp829 . Normally the startup script for sendmail will be in /sbin/init.d/sendmail ( this may be different if you use some spam or virus protection tools ). If you want to send mails to hp41 to hp65 to hp 829, you should be able to "telnet hp65 25" from hp41 and "telnet hp829 25" from hp41 . Check on these servers whether the sendmail daemons are running ( netstat -a |grep smtp |grep LISTEN )
Be Always Joy ......
Geoff Wild
Honored Contributor

Re: sendmail failure

Deferred: Network is unreachable -traceroute works, what about ping? Did the telnet hp65 25 from hp41 work? Did someone activate ipfilters on any of the servers (IE - firewalling)?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
lawrenzo_1
Super Advisor

Re: sendmail failure

the issue was within dns thanks all for your help
hello