Rob Horton wrote: > Hi, > > I'm having some problems with setting a regexp transport map. What I > want is: > > 1) Mail for u...@domain.com is delivered locally via the Zimbra system. > > 2) Mail for u...@machine.domain.com should be delivered directly to that > machine. > > 3) All other (i.e. external) mail should be relayed via > relay.domain.com. > > What I've tried is setting: > > postfix_transport_maps=proxy:ldap:/opt/zimbra/conf/ldap-transport.cf \ > regexp:/opt/zimbra/conf/transport_regexp >
Well, you did not include 'postconf -n', so I'll have to *guess* the rest of your config. You should have these set: relayhost = [relay.example.com] transport_maps=hash:/path/to/map /path/to/map: -------------- machine.example.com relay:[machine.example.com] example.com local: > Where /opt/zimbra/conf/transport_regexp contains one line: > > !/domain.com/ smtp:relay.domain.com > > and has been compiled with "postmap /opt/zimbra/conf/transport_regexp" > FWIW, you do not postmap regexp maps. Brian