You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "René Cordier (Jira)" <se...@james.apache.org> on 2022/07/04 04:25:00 UTC
[jira] [Closed] (JAMES-3787) RemoteDelivery: Error upon enqueue lead to email loss
[ https://issues.apache.org/jira/browse/JAMES-3787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
René Cordier closed JAMES-3787.
-------------------------------
Resolution: Fixed
> 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
> Priority: Major
> Fix For: 3.8.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org