Le 09/10/2010 13:32, Olivier BONHOMME a écrit :
Le 08/10/2010 21:30, Victor Duchovni a écrit :
On Fri, Oct 08, 2010 at 05:38:21PM +0200, Olivier BONHOMME wrote:
I am writing here because I have an issue trying to use
transport_maps with
a domain which is declared as VIRTUAL.
You fail to distinguish between virtual_alias_domains and
virtual_mailbox_domains. Which is it?
Sorry : it is virtual_mailbox_domain.
Now i would want this step : Redirect a specific account f...@domain.com
from the MDA to another SMTP server but this account is not declared
on the
MDA.
You can rewrite an account in a final (local, or virtual mailbox) domain
to another domain via virtual_alias_maps. Postfix will then accept mail
for the domain, and forward to the alternate mailbox.
So I have to create a dummy account to do that in order for the
virtual agent to accept the mail to be delivered ?
virtual_alias_maps is enough. chose for yuorself:
[without per user transports]
use a virtual_alias like
j...@example.com j...@host9.example.com
(and either an explicit transport entry to route mail for
host9.example.com to the correct host, or rely on DNS). Then use
smtp_generic_maps to rewrite the address back to its original form
(remove the "host9." part).
[with per user transports]
use a virtual alias like
j...@example.com j...@example.com
and a transport entry like
j...@example.com relay:[10.1.2.3]
But in that case, can I declare a transport map in order to tell
another smtp transport for this account in order to avoid a local
delivery ?
Oui, as far as the transport entry applies to the adress after all
virtual aliases are resolved.
[snip]