On Wed, Jan 28, 2009 at 9:18 PM, Victor Duchovni < victor.ducho...@morganstanley.com> wrote:
> On Wed, Jan 28, 2009 at 09:04:48PM -0500, Dave wrote: > > > > Google is full of noise. Try: > > > > > > http://www.postfix.org/documentation.html > > > http://www.postfix.org/ADDRESS_REWRITING_README.html > > > http://www.postfix.org/ADDRESS_REWRITING_README.html#generic > > > http://www.postfix.org/generic.5.html > > > http://www.postfix.org/DATABASE_README.html#types > > > http://www.postfix.org/pcre_table.5.html > > > http://www.postfix.org/regexp_table.5.html > > > > > > > I still do not have an answer to this question. if you have it, how > about > > > > being a gentleman and sharing it or pointing me to the right place. > > > Thanks. > > > > > > The specific answer is in generic(5). While you can construct a table > > > that rewrites all addresses to a fixed value, that would be a mistake. > > > Consider what will happen to recipient addresses. > > > > http://www.postfix.org/ADDRESS_REWRITING_README.html#generic > > > > The problem is that it only shows "@localdomain.local" > > as an example of a wildcard. > > The generic(5) document lists all the lookup keys used with a given > address. That was a fairly difficult document for me to understand, but it is starting to make sense. But if my answer is in there, I still don't see it. > You need a table that returns the desired value given one > of those lookup keys. Postfix has lots of different table types > you can use. > > > would any of these work? > > @ my-new-addr...@example.com > > @ my-new-address > > The list of LHS lookup keys is documented in generic(5). "@" is not > among them. I noticed that, but I wasn't immediately able to figure out that the items shown were a comprehensive list rather than selected examples. > > > > BTW, I am not sure what you mean by "Consider what will happen to > recipient > > addresses." What will happen? And which recipient addresses would be the > > problem? I don't expect to receive any mail at this postfix server. I > just > > want to send system messages to my gmail account. > > All recipient addresses will also match any global wildcard, so you'll > never be able to address any email to someone other then the single > wildcard rewrite recipient. If that works for you, go for it. That is exactly the result I was hoping to achieve. But I'm still not sure HOW to do it. So, how do I do it?