On Fri, Jan 16, 2009 at 03:10:01PM +0000, Rob Horton wrote:

> I'm having some problems with setting a regexp transport map. What I
> want is:

You don't need regexp transport tables for this.

> 1) Mail for u...@domain.com is delivered locally via the Zimbra system.

List this domain in mydestination or virtual_mailbox_maps as appropriate,
and configure a suitable mailbox_transport or virtual_transport.

> 2) Mail for u...@machine.domain.com should be delivered directly to that
> machine.

In the transport table:

        # local or virtual as configured in main.cf
        example.com     :

        # "smtp" or "relay" per main.cf
        .example.com    :

> 3) All other (i.e. external) mail should be relayed via
> relay.domain.com.

        # Punt to a smarthost, do not set relayhost in main.cf
        *               smtp:[relay.example.com]

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to