[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Postfix redirects



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Herbie <technowombat@yahoo.com> wrote:
>Anyone know anything about redirecting a domain to a specific address
>using transport?
>
>I have a transport.db enabled and am trying
>
>opsview-vm.cc.jerk.com                  :sysalert@jerk.com
>yahoo.com                               :bounces.cc.jerk.com
>
>the yahoo.com part works, and passes off email to the bounces machine,
>but
>mail for opsview doesn't get redirected, do I need to prefix some kind
>of
>transport, or am I just wholly wrong here?
>
>h.

I think you have that syntax messed up. The transport map takes a recipient pattern and selects the next machine it's supposed to be delivered to.  What you want is to rewrite the destination address, which would typically be done by using a virtual map.

You'd create a virtual map file like
mapped.domain VIRTUAL
@mapped.domain recipient@other.domain

And then list that file under virtual_alias_maps in main.cf and postmap the file.

- --Danny
-----BEGIN PGP SIGNATURE-----
Version: APG v1.0.8

iGoEAREIACoFAlGjbL8jHERhbm55IFNhdWVyIDxkYW5ueUBkYW5ueXNhdWVyLmNv
bT4ACgkQvtwZjjd2PN+cyQCfde81+D4xGpm4PM+pzzOyabUHCQsAnjyon+kqvxKz
RvwyboIsOM+pqc+f
=+FW3
-----END PGP SIGNATURE-----


-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.