Toni Van Remortel <[EMAIL PROTECTED]> wrote:
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
[snip]
use virtual_alias_maps:
[EMAIL PROTECTED] [EMAIL PROTECTED], [EMAIL PROTECTED]
Virtual_alias_maps will work for 1 transport > multiple domains.
What I want, is 1 domain > multiple transports.
Avoid stating problems and goals in terms of solutions (think in the
"problem domain", not in the "solution domain"). I am certain you don't
care about transports. what you want is the message to be delivered to
two mailboxes, one of them (or both) being hosted on a remote server.
for the message to go to two mailboxes, use virtual_alias_maps as
suggested in my previous post. now the message will be delivered to
[EMAIL PROTECTED] and [EMAIL PROTECTED] you can use transport_maps to
force delivery of these addresses using whatever transport you want. for
example:
other.example.com relay:[host.example]:12345
if in addition you want host.example to see the original recipient, you
can rewrite the address back using smtp_generic_maps:
[EMAIL PROTECTED] [EMAIL PROTECTED]
This works (does not cause a loop) because smtp_generic_maps are
"resolved" after routing (transport selection).
If you want the same thing for a whole domain, create entries for each
valid user. you can't simply use pcre or regexp because
virtual_alias_maps are used for recipient validation, and a wildcard
alias will thus break this validation (all addresses will be accepted,
then bounced later, causing backscatter). so either use a script to
generate the mappings or use *sql/ldap to generate them on the fly.