On Thu, Oct 24, 2013 at 10:49:43AM +0200, Louis-David Mitterrand wrote: > On Thu, Oct 24, 2013 at 10:42:07AM +0200, Ralf Hildebrandt wrote: > > * Louis-David Mitterrand > > <[email protected]>: > > > I have a virtual_alias_maps with a pcre entry like > > > > > > /^(info|contact|etc)@/ localuser > > > > > > and it delivers [email protected] to localuser even though > > > 'anydomain.com' is not in virtual_alias_domains, is that > > > normal? > > > > Yes. > > So I have to write (and maintain) that entry like this? > > /^(info|contact|etc)@(domain1|domain2|domain3|etc).com$/ localuser > > Is there a better way?
Nested, if/endif: if /@example\.(com|net|org)$/ /^(info|contact|etc)@ [email protected] endif Change your "if" line when adding more domains. This can probably be done better with SQL tricks rather than PCRE, BTW. Not worth changing to SQL if you're not already using it, of course. -- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
