> On Thu, Feb 14, 2013 at 10:26 AM, Noel Jones <[email protected] > Virtual alias lookups are recursive, so you'll need a 1-1 mapping to > stop the recursion. Also be careful with your expressions so you > don't get unintended matches. Something like: > > > /somename+.*@example\.com$/ [email protected] > <mailto:[email protected]> > /^some...@gmail\.com$/ [email protected] <mailto:[email protected]> > > IF /@example\.com$/ > /./ [email protected] > ENDIF > > > If you really intend your wildcard to capture the whole internet > address space and redirect it to somelocaluser, you can remove the > IF and ENDIF statements. Such a setup is common in a testing lab, > but never in the real world. > > > -- Noel Jones > >
On 2/14/2013 1:01 PM, Alex wrote:> Thank you for your help. This setup is for lab/qa indeed. > > What I intend to do is have only certain email form a test account > forward to outside and everything else to a single local user. Am I OK. > correct to assume that there is no way to accomplish this with regex? > As I said above, the remove the IF and ENDIF statements from the example I supplied to capture all addresses. -- Noel Jones
