On Thu, Jan 29, 2009 at 12:34 AM, Victor Duchovni <
victor.ducho...@morganstanley.com> wrote:

> On Wed, Jan 28, 2009 at 10:39:53PM -0500, Dave wrote:
>
> > I would want the table entry would be:
> > .*   m...@example.com
>
> Ignoring regexp table syntax problems for the moment, this is a very
> degenerate regexp table, the input is completely ignored, and a fixed
> output is produced. Postfix has a *much* simpler table type for this case,
> listed in http://www.postfix.org/DATABASE_README.html#types.
>
> All mail leaving a system so configured will have the envelope sender
> equal to the envelope recipient and equal to all addresses listed in
> The From/Sender/To/Cc headers. This makes for a very degenerate MTA,
> but if that's OK, it should work.
>
>        relayhost = gmail.com
>        smtp_generic_maps = <maptype>:<mapname>
>
> with the output of the map in question completely independent of
> the input.
>
>
Yes, that is great for my purposes. Perfect! (I am already using
smtp_generic_maps.)

My  current definition in main.cf is the typical one:

smtp_generic_maps = hash:/etc/postfix/generic

The question is what goes into the file generic? I asked before if I could
use something like this:
<wildcard>   m...@example.com

I understood the answer was no, and that regex was the alternative. I prefer
your suggestion. So how do I accomplish this task using generic?

What is the right wildcard? (The docs have not answered that question for
me.)

Reply via email to