JIRA Notifications Fail Occasionally Due to '452 Too many recipients received this hour'

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptom

Occasionally, notification emails fail with a "Too many recipients" exception:

com.atlassian.mail.MailException: javax.mail.SendFailedException: Invalid Addresses; nested exception is:
class com.sun.mail.smtp.SMTPAddressFailedException: 452 Too many recipients received this hour
at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:191)
...

Causes

The return code "452" is coming from SMTP server instead of either JIRA application or Java Mail. Normally, "SMTPAddressFailedException: 452 Too many recipients received this hour" is thrown when breaching the anti-spam restriction of SMTP server regarding the maximum number of recipients that can be sent (from the SMTP server) for a specific domain in a defined time period.
Normally, customers run into this problem because JIRA isn't in a trusted domain of mail server, so the mails coming from there have to go through security gateway and pass the anti-spam check.

Diagnosis

Enable mail protocol logging to find out the route of mail transmission.

Resolution

Configure the trusted domain of mail server to accept requests from the JIRA server. JIRA notification mails should access the SMTP server directly, without an anti-spam check.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.