On Sun, Oct 27, 2002 at 02:46:19PM +0000, Conor Daly wrote:
> Any postfix gurus out there?
>> I'm trying to rewrite outgoing email addresses for a small network. Using
> postfix sender_canonical_maps with a regexp to rewrite
>>user at local.domain>> to
>>mailaccount+user at isp.net . My difficulty is that _all_ outgoing mail is
> being rewritten, even that for recipients in local.domain. Is there a way
> to have postfix use the sender_canonical_map _only_ for mail destined
> externally (ie. _not_ for @local.domain)?
Wouldn't this be a case of "first match wins"? I haven't done anything
with postfix in quite a while, but I'm pretty sure that if you add a
regexp first which matches @local.domain and does an identity mapping -
well the first match should win, and the second mapping will not be
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!