* Wietse Venema <wie...@porcupine.org>:
> Patrick Ben Koetter:
> > I have a question regarding the "Bounce-never mail sink" regexp:
> > 
> > postconf(5) gives this example:
> > 
> >            /^(RCPT\s+TO:.*?)\bNOTIFY=\S+\b(.*)/ $1 NOTIFY=NEVER $2
> > 
> > Isn't there a '>' missing before the '?'. As I understand it the '?' makes 
> > the
> > preceeding character optional e.g. example.com and example.co would match.
> > Shouldn't the '>' be optional instead and it is missing in the examples 
> > above.
> > 
> > My example here demonstrates the regexp as I would expect it:
> > 
> >            /^(RCPT\s+TO:.*>?)\bNOTIFY=\S+\b(.*)/ $1 NOTIFY=NEVER $2
> 
> If you believe that there is a problem, you need to demonstrate it
> with the postmap command. Note: the example is PCRE not REGEXP.

I think for the general case the original PCRE expression is working.
But if I want to use this "trick" for specific recipient domains, then
it starts to change into something more complicated (?)_

/^(RCPT\s+TO:.*@recipient\.com\.invalid>?)\bNOTIFY=\S+\b(.*)/ $1 NOTIFY=NEVER $2

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de
            

Reply via email to