OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Virtual catchall (was: relay_recipient_maps and recipient_delimiter?)

Victor.Duchovnimorganstanley.com
Date: Fri Jan 02 2004 - 10:29:26 CST


On Fri, 2 Jan 2004, Ralf Hildebrandt wrote:

> I need to rephrase the whole thing.
>

You sure do! This has nothing to do with relay_recipient_maps (which do
recipient validation, not rewriting).

> The mail is being accepted, but, instead of being delivered to
> my account, it goes to my catchall.
>
> I expected this to happen:
>
> updateman+foocharite.de ->
> ralf.hildebrandt+foo ->
> ralf.hildebrandt+foocharite.de ->
> hildeb+foopostamt1.charite.de
>

With stacked maps each key is tried in each map, before the next key is
tried. So if "mapA" contains key "K" and "mapB" contains a catchall entry
that matches *all* keys (a wildcard regexp entry) the stacked map "mapA,
mapB" will yield the catchall entry for "K+extension".

Do not use regexp catchalls if you want extensions to work.

To see the details of address rewriting, look at "-v" output from
"cleanup" not "smtpd".

--
        Viktor.