Kirill Miazine <km-lists@???> wrote:
>
>Another format for a lookup map could be:
>
> user: local_part=foo domain=bar.example.com
>
>And a corresponding router:
>
>redirect:
> driver = redirect
> domains = ...
> local_parts = dbm;/path/to/map.db
> local_part_suffix = +*
> local_part_suffix_optional
> data = ${quote:\
> ${extract{local_part}{$address_data}}$local_part_suffix\
> }@${extract{domain}{$address_data}}
There's a cuter way of doing it: How about a lookup map of the form
user: foo@???
and a corresponding router
redirect:
driver = redirect
domains = ...
local_parts = dbm;/path/to/map.db
local_part_suffix = +*
local_part_suffix_optional
data = ${quote:\
${extract{1}{@}{$local_part_data}}$local_part_suffix\
}@${extract{2}{@}{$local_part_data}}
Tony.
--
f.a.n.finch <dot@???>
http://dotat.at/
WHITBY TO THE WASH: EAST OR SOUTHEAST 3 OR 4. FAIR. MODERATE OR GOOD. SLIGHT
TO MODERATE.