> >Anybody know how to put make negate work in postfix pcre: ?? > > unlike hash: files, the pcre: files are "first match wins", so : > > /smtp.*\.rr\.com$/ ok > /biz\.rr\.com$/ ok > /<subscribers>\.rr\.com/ 554 ACL ..... > > The problem with this approach is that "ok" means we whitelist them from > thta point on and do not apply any later smtpd restrictions to them, so a > single /pcre/ that excludes !biz and !smtp is still desired, if > possible. anybody know?
Does the DUNNO result work in PCRE? I took a quick look at the sample-pcre-*.cf files, but saw no mention of it. Since the addition of DUNNO to smptd_*_restrictions it has made what you are describing as sort of possible, but the issues is I only know for certain it works in database maps. You could use an if/endif match with the ! to make a construct along the lines of "if not this whitelist, then is it in this blacklist?" --Eric
