At 1:20 am -0400 2005/04/20, jeff sacksteder wrote:
[...]
>My problem now is that I need to host several distinct user mailboxes
>on the domain. I want to be able to process incoming messages and
>deliver them to the correct party without configuring exim ahead of
>time with those addresses. If we presume for a moment that I use the
>hyphen as a delimiter, the following addresses
>
>user1-losers.com@???
>user1-morons.com@???
>user1-idiots.com@???
>
>should all be delivered into user1@???. Bonus point will be
>awarded for adding headers beased on the second half of the
>destination in the format-
>
>x-betray: losers.com
>
>Based on my casual understanding, I should be able to the first
>criteria with rewriting techniques. I'm not so sure about the second
>criteria.
>
>I invite your educated opinions...
I do not know if it will be educated... but rewriting would be a very
painful way to do this when you can with:
local_from_suffix = -*
in the main section of the config
und
local_part_suffix_optional
local_part_suffix = -*
in the relevant routers.
(Care must be taken to be able to use arbitrarily suffixed aliases
AND at the same time to be able to send differently suffixed aliases
to different users.
For instance if foo is alias for jules:
foo: jules
but
foo-2: jim
and you expect foo-whatever to go to jules but for foo-2 that should
go to jim, I think the solution is to have two aliases routers, the
first one without local_part_suffix and the second one with it.).
x-betray looks like a pointless exercise, you can see that yourself,
besides, if it's them writing why would they be betraying?
g