postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Transport maps for a specfic user attached to

Re: Transport maps for a specfic user attached to a virtual domain

From: Victor Duchovni <Victor.Duchovni_at_nospam>
Date: Fri Oct 08 2010 - 19:30:00 GMT
To: postfix-users@postfix.org

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?

> Now i would want this step : Redirect a specific account foo@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.

> I wonder if it was possible to do this with the transport maps feature or
> not. I tried to declare a transport_maps with "foo@domain.com
> smtp:<my_other_smtp>" but postfix rejected me the mail telling me this
> account is not a virtual mailbox (which seems to be logical).
>
> The main objective is to redirect a specific address which is a mailing
> list addres to the mailing list server without using a subdomain.

To retain the address of the mailbox use "smtp_generic_maps" to undo
the rewrite, as described in an earlier thread today about LDAP on
MX hosts.

-- Viktor.