Failed to send email after trying all email hosts.
search cancel

Failed to send email after trying all email hosts.

book

Article ID: 269644

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

In SDM we are getting this error:

20XX-07-07 15:14:58:067 ERROR 18:14:58.067UTC [mailNxdActorSystem-akka.actor.default-dispatcher-19895] c.c.S.m.NXMailerActor - Failed to send mail. Reason: javax.mail.SendFailedException: Failed to send email after trying all email hosts.

Sometimes SDM cannot connect to the SMTP server.

ports: 25, 110 and 143 are open on the Firewall.

Environment

Release : 17.3

Cause

mail_nxd.log shows the following errors

1. Error 1:

20XX-07-07 15:15:33:273 ERROR  [mailNxdActorSystem-akka.actor.default-dispatcher-19921] c.c.S.m.c.JavaMailSMTPClient - The transport is not connected or is dead. Reason: {}
javax.mail.MessagingException: Got bad greeting from SMTP host: MAILSERVER.DOMAIN.COM, port: 25, response: 421 4.7.0 Too many concurrent connections.
 
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2198)
 
2. Error 2:
 
20XX-07-07 15:15:33:273 ERROR  [mailNxdActorSystem-akka.actor.default-dispatcher-19925] c.c.S.m.c.JavaMailSMTPClient - Connection error while sending message. Rc: 451, command: MAIL FROM:<[email protected]>, Reason: {}
com.sun.mail.smtp.SMTPSendFailedException: 451 4.7.0 Too Many messages.

 

Resolution

Set the MAIL_MAX_THREADS to 2 (the current value is 6).