[ 
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-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to