1834370 Members
2455 Online
110066 Solutions
New Discussion

Re: Cannot send mails

 
fly_fisher
Advisor

Cannot send mails

Hi all,

I have an application in HPUX 11.0 that sends lots of mails using sendmail. But I'm obtaining the next errors:

Wed Jul 03 12:57:37 CEST 2002. Work 5. ERROR : Error sending MDN:
javax.mail.SendFailedException: Sen
ding failed;
nested exception is:
javax.mail.MessagingException: Could not connect to SMTP host:
localhost, port: 25;
nested exception is:
java.net.SocketException: errno: 0, error: Error 0 for fd: 16

If I telnet localhost on port 25 I can enter sendmail.

Does anybody know what is happening?

I send you the sendmail.cf.

Thank you very much for all your help,

Best Regards.
Catch and release !!!!!!
4 REPLIES 4
Jonathan Baker
Advisor

Re: Cannot send mails

Nothing springs to mind, but I would recommend taking a look at /var/adm/syslog/mail.log. That may give you some pointers...
Devbinder Singh Marway
Valued Contributor

Re: Cannot send mails

when you did a telnet to your SMTP server port 25 , could you send mail successfully to the recipient ?

Are you going via a proxy server , if so consult who ever looks after this on how to send an external mail address via your lan proxy

Seek and you shall find
Sukant Naik
Trusted Contributor

Re: Cannot send mails

Hi,

Can you send us the output of this command

# sendmail -v abc@xyz.com < /etc/hosts

-Sukant
Who dares he wins
David Peacock
Frequent Advisor

Re: Cannot send mails

It looks like your mail goes to the relay machine to be sent. According to your attached file, the relay machine is
"mbtpmta"


I think you should: telnet mbtpmta 25
not, localhost 25

You have to be able to see the relay host
on port 25.

veni, vidi, vmstat