Robert Burrell Donkin ha scritto:
> On Sun, Dec 14, 2008 at 1:55 PM, Norman Maurer <[email protected]> wrote:
>> 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..
> 
> it's the problem in my case :-)
> 
> (the code's very messy since it's trying to ensure backwards compatibility.)

Sorry but I don't agree on this one.

The way VUT works is by design. We added some support for easy virtual
hosting leaving there the backward compatibility, but the underlying
system is not aware of the VUT so you have to run the VUT in the mailet
chain before any check for "isLocalEmail" is done.

This applies to every "redirecting" mailet, such as Redirect/Forward and
not only to the VirtualUserTable stuff.

There is not a API to know what the final recipient will be given an
input email and IMHO there should not be a similar API, because I could
have some mailet with my own rules accepting some address now and some
other address later and redirecting them to some address now and some
other address later.

I and Norman simply extracted the VUT to a service so to be able to use
the same data both from a mailet and from the in protocol smtp filters,
but this is only for advanced tuning and there is no out of the box
solution at all, IMHO.

If you have a proposal try to describe it and I'll try to show you the
issues I see with the proposal ;-)

Stefano

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

Reply via email to