On Thu, Jan 29, 2009 at 12:48:14AM -0500, Dave wrote: > > 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. > > > > 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
No, not what goes in the file, but what maptype to use. The "hash" map type can not produce a fixed output for all possible inputs. > 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? No not "using generic", rather using a table that returns a fixed output regardless of the input. The list of supported tables is still in the same place, and looking through it top to bottom will quickly expose the right table type for the job. -- 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.