Ah ok now I see what makes you wonder... thats right. isLocalEmail works only after the vut mappings was done. Thats prolly a problem in some cases..
Cheers, Norman 2008/12/14 Robert Burrell Donkin <[email protected]>: > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
