On 09/22/11 15:51, Wietse Venema wrote:
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 [email protected].
@example.com [email protected]
# Except for [email protected], which stays itself.
[email protected] [email protected]
# And except for [email protected], which goes elsewhere.
[email protected] other@elsewhere
See http://www.postfix.org/DATABASE_README.html for tips to translate
this into other database formats.
Wietse
ahh however we need :
@ singleuser@domain.
I tried this but does not work.
Thanks,
RCR