While sending mail from workflow message, I was facing the issue. Appserver log says:
SendMailException: Detail Message:JavaMail Error: DNS error.\nStack Trace:\njavax.naming.CommunicationException: DNS error [Root exception is java.net.PortUnreachableException: ICMP Port Unreachable]; remaining name 'tbrl.in'
at com.sun.jndi.dns.DnsClient.query(Unknown Source)
at com.sun.jndi.dns.Resolver.query(Unknown Source)
at com.sun.jndi.dns.DnsContext.c_getAttributes(Unknown Source)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(Unknown Source)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(Unknown Source)
at com.sun.jndi
I turned on the SMTP trace from appserver and found the error as:
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
the actual issue was with Exchange server:
You can telnet the server from you application server ans try to send the mail using command
telnet xxx.xxx.xxx.xxx 25
EHLO <your appserver IP>
MAIL FROM: <sender mail address>
RCPT TO: <receipient mail address>
DATA
Subject: Test message
Test message body
.
quit
SendMailException: Detail Message:JavaMail Error: DNS error.\nStack Trace:\njavax.naming.CommunicationException: DNS error [Root exception is java.net.PortUnreachableException: ICMP Port Unreachable]; remaining name 'tbrl.in'
at com.sun.jndi.dns.DnsClient.query(Unknown Source)
at com.sun.jndi.dns.Resolver.query(Unknown Source)
at com.sun.jndi.dns.DnsContext.c_getAttributes(Unknown Source)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(Unknown Source)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(Unknown Source)
at com.sun.jndi
I turned on the SMTP trace from appserver and found the error as:
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
the actual issue was with Exchange server:
You can telnet the server from you application server ans try to send the mail using command
telnet xxx.xxx.xxx.xxx 25
EHLO <your appserver IP>
MAIL FROM: <sender mail address>
RCPT TO: <receipient mail address>
DATA
Subject: Test message
Test message body
.
quit
if it gives the error it means the issue is with exchange server and ask you mail admin to provide required access.
Thanks,
Praveen Joshi
0 comments:
Post a Comment