PostmasterAlias mailet overrides local postmaster@ user when it exists
----------------------------------------------------------------------

                 Key: JAMES-1358
                 URL: https://issues.apache.org/jira/browse/JAMES-1358
             Project: JAMES Server
          Issue Type: Improvement
          Components: Matchers/Mailets (bundled)
    Affects Versions: 3.0-beta3
            Reporter: Andrzej Rusin
            Priority: Minor


I think there's a glitch in the PostmasterAlias mailet. In my opinion there 
should be NOT:

if (addr.getLocalPart().equalsIgnoreCase("postmaster") &&
    mailetContext.isLocalServer(addr.getDomain())) {

but

if (addr.getLocalPart().equalsIgnoreCase("postmaster") &&
    mailetContext.isLocalServer(addr.getDomain()) &&
    ! mailetContext.isLocalEmail(addr) {

which means, if you have a valid postmaster@given_domain user, it should not 
get aliased.

It's quite important in "virtual"/multi-domain environment.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to