Benoit Tellier created JAMES-4164:
-------------------------------------

             Summary: FORWARDs + vacation
                 Key: JAMES-4164
                 URL: https://issues.apache.org/jira/browse/JAMES-4164
             Project: James Server
          Issue Type: Bug
          Components: JMAP, Mailet Contributions
    Affects Versions: 3.9.0
            Reporter: Benoit Tellier
            Assignee: Antoine Duprat


```
GIVEN externalUserA sends mail to externalUserB
AND externalUserB redirects to internalUser
WHEN internalUser has a vacation
THEN the answer is sent to externalUserB and not externalUserA
```

This also happens for forwards with internal users when we rewritte MAIL FROM. 
(but bear in mind that forward can happen upfront James too, or that some 
forwarders might implement Sender Rewrite Scheme that defeats vacations)

I suggest that we rely on `Reply-To` header instead of `MAIL FROM` envelope

I suggest to preserve the existing behaviour, as a configurable option.

CF:

```
<mailet match="RecipientIsLocal" 
class="org.apache.james.transport.mailets.VacationMailet">
   <replyMode>replyToHeader</replyMode> <!-- default behaviour -->
   <!-- <replyMode>enveloppe</replyMode> -->
</mailet>
``` 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to