Benoit Tellier created JAMES-3787:
-------------------------------------
Summary: RemoteDelivery: Error upon enqueue lead to email loss
Key: JAMES-3787
URL: https://issues.apache.org/jira/browse/JAMES-3787
Project: James Server
Issue Type: Improvement
Components: Mailet Contributions
Affects Versions: 3.7.0
Reporter: Benoit Tellier
Fix For: 3.8.0
h3. Current situation
When an error happens upon enqueue the email is dropped after an error log.
This leads to email loss.
Incriminated code snipset:
{code:java}
try {
queue.enQueue(mail);
} catch (MailQueueException e) {
LOGGER.error("Unable to queue mail {} for recipients {}",
mail.getName(), mail.getRecipients(), e);
}
{code}
h3. Expected behaviour
The error should be propagated back to the mailet container.
This allows for regular error handling to be applied and allows for a
customisable behaviour. Default behaviour is to store the email in a mail
reprository (var/mail/error) thus preventing email loss.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]