Operating System - HP-UX
1822677 Members
3704 Online
109644 Solutions
New Discussion юеВ

Sendmail Deferred: Connection timed out with [xxx.xxx.xxx.xxx]

 
AnushaGopalan
New Member

Sendmail Deferred: Connection timed out with [xxx.xxx.xxx.xxx]

Hi!

I have configured sendmail in HP-UX without DNS. The problem is when i try to send mail using the following i get
echo "Hi, this is a test"|/usr/sbin/sendmail -v test@kumaran.com
am getting test@203.199.209.131... Deferred: Connection timed out with [203.199.209.131]
The ip has been added in the /etc/hosts file and the nsswitch.conf file has been modified to lookup only for files and not dns.
The smart host option is also set to 203.199.209.131.
The Daemonportoptions available in sendmail.cf is
O DaemonPortOptions=Name=MTA, Port=587
i doubt whether it actually takes this port(587). How to confirm it?
Am able to do ping and nslookup. Also am able to telnet to ip with port 587.
Should this port be available in submit.cf DaemonPortOption too?
Any suggestions of urs ll be of grt help.
Thanks in advance!
5 REPLIES 5
johnsonpk
Honored Contributor

Re: Sendmail Deferred: Connection timed out with [xxx.xxx.xxx.xxx]

Hi Anusha,

Try to execute sendamil with debug options to dig more

sendmail -v -d7.99 -d38.99




AnushaGopalan
New Member

Re: Sendmail Deferred: Connection timed out with [xxx.xxx.xxx.xxx]

Thanks for ur quick response!!
i tried using the command u said...
# sendmail -v -d7.99 -d38.99 test@203.199.209.131
assign_queueid: random_offset = 400743405 (2205)
assign_queueid: assigned id o1B34Vaj005799, e=0x4006db40
assign_queueid: random_offset = 400743405 (2206)
assign_queueid: assigned id o1B34Vak005799, e=0x4006db40
queuename: ./xfo1B34Vak005799
openmap() dequote:dequote NULL: valid
openmap() host:host NULL: valid
getcanonname(203.199.209.131), trying files
text_getcanonname(203.199.209.131)
getcanonname(203.199.209.131), failed, status=68

and it is still in the waiting state for a very long time and got nothing more in the console. I tried with some google search on it. Some search say it does not consider the relay at all but in my mail.log file the relay is the same as i have mentioned in the smart host.
Am trying dig it more.
Kindly provide ur comments.
Thanks.
johnsonpk
Honored Contributor

Re: Sendmail Deferred: Connection timed out with [xxx.xxx.xxx.xxx]

check the smtp port is opened or not(telnet on 25 port)

telnet 203.199.209.131 25
and do sendmail with valid email id (not the ipaddress)


AnushaGopalan
New Member

Re: Sendmail Deferred: Connection timed out with [xxx.xxx.xxx.xxx]

when i tried doing telnet on port 25 the smtp prompt did not appear it was only in trying state for a long time
telnet 203.199.209.131 25
Trying...
But our mail server is configured for port 587 and not 25.

and when i try with the complete email id instead of ip
test@kumaran.com... Connecting to [127.0.0.1] via relay...
test@kumaran.com... Deferred: Connection refused by [127.0.0.1]

it did not use the smart relay host option at all.

sendmail -v -d7.99 -d38.99 test@kumaran.com
assign_queueid: random_offset = 1472536300 (3100)
assign_queueid: assigned id o1B3rlpe008174, e=0x4006db40
assign_queueid: random_offset = 1472536300 (3101)
assign_queueid: assigned id o1B3rlpf008174, e=0x4006db40
queuename: ./xfo1B3rlpf008174
openmap() dequote:dequote NULL: valid
openmap() host:host NULL: valid
getcanonname(kumaran.com), trying files
text_getcanonname(kumaran.com)
getcanonname(kumaran.com), found
and nothing more obtained on the console.

Pl correct me if am doin anythin wrong.
Thanks!
Steven E. Protter
Exalted Contributor

Re: Sendmail Deferred: Connection timed out with [xxx.xxx.xxx.xxx]

Shalom,

The target smtp server is not listening on port 25

telnet hostname 25
or 587

Confirms this.

It also appears that sendmail is not listening locally to pick up local mail and attempt delivery.

You don't need to run the sendmail daemon to do this, but for diagnostics, temporarily doing so is very helpful.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com