Randy Ramsdell: > I cannot find the the way to grab all "to's" rewritten to go to a single > "to:". We need to send all mail coming out of our QA environment and > send that to a single, probably, local address. The list of senders will > be in the thousands and so using a catchall for these has to be configured. > > We will also select a few "to's" where we send these off as normal. > > No external to our network mail we need to be routed. > > So far I read about transport maps and the address rewriting but don't > see a way or the best way to accomplish this.
The Berkeley DB version: /etc/postfix/main.cf: virtual_alias_maps = hash:/etc/postfix/virtual /etc/postfix/virtual: # All example.com users become mails...@example.net. @example.com mails...@example.net # Except for f...@example.com, which stays itself. f...@example.com f...@example.com # And except for b...@example.com, which goes elsewhere. b...@example.com other@elsewhere See http://www.postfix.org/DATABASE_README.html for tips to translate this into other database formats. Wietse