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. 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.

> 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.

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to