View Issue Details

IDProjectCategoryView StatusLast Update
0021128mantisbtemailpublic2018-02-10 15:36
Reportermhudak Assigned Tovboctor  
PriorityhighSeverityfeatureReproducibilityrandom
Status closedResolutionduplicate 
Product Version1.3.0-rc.2 
Summary0021128: E-mail sender should limit the number of delivery retries (opt-in)
Description

There are some edge cases, when PHPMailer reports e-mail message as undelivered, but the message itself is delivered successfully to the recipient, causing large amount of e-mail messages delivered until the message record is manually removed from mantis_email_table. As the Mantis e-mail sender reacts to PHPMailer exception as to a delivery failure, there is a possible extension point to increment delivery failures counter and mitigate this issue.

The proposed feature would be opt-in maximum delivery retries (e.g. by specifying number instead of NO for some configuration directive - proposed $g_email_limit_retries, default NO), which will then be checked when e-mail is actually considered undelivered by e-mail sender and in case the number of retries reached the limit, e-mail is deleted using email_queue_delete function and the fact is logged.

Additional Information

Additional information can be found in PR: https://github.com/mantisbt/mantisbt/pull/790

TagsNo tags attached.

Relationships

duplicate of 0016070 closedvboctor Delay due to Mantis trying sending emails to non existent address 

Activities

There are no notes attached to this issue.