On Sun, Dec 14, 2008 at 1:49 PM, Norman Maurer <[email protected]> wrote:
> Hi Robert,
>
> I think it works like it should... if virtualhosting is not used it
> just use the username to check if it is enable it use the complete
> emailaddress.
> Why you think it not works as aspected ?

suppose [email protected] maps to john.smith (local user)

>>    /**
>>     * @see 
>> org.apache.mailet.MailetContext#isLocalEmail(org.apache.mailet.MailAddress)
>>     */
>>    public boolean isLocalEmail(MailAddress mailAddress) {
>>    String userName = mailAddress.toString();
>>        if (!isLocalServer(mailAddress.getHost())) {
>>            return false;
>>        }
>>        if (virtualHosting == false) {
>>            userName = mailAddress.getUser();
>>        }
>>        return localusers.contains(userName);
>>    }

this checks local users for user 'support' not the mapped local user
'john.smith'

- robert

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

Reply via email to