LuKreme wrote:
On 14-May-2009, at 20:19, Noel Jones wrote:
You're right, that's a pcre construct and not universally supported by regexp. A more portable expression would be:

/operator#[0-...@somephishingbanksite\.com$/  REJECT phishing

Now, just to double check, if postfix is compiled with PCRE then it doesn't matter if the table is named regex or pcre, it uses and understands pcre, right?


Postfix uses the map type you specify, or $default_database_type if you don't specify a type. If you need pcre features, you _must_ specify pcre as the map type.

(The situation is confused by some linux vendors that include an enhanced regexp library with some of the pcre features. So \d may work on SOME regexp libraries, but it certainly isn't widely portable regexp syntax, and Viktor was right to point out the discrepancy.)

  -- Noel Jones

Reply via email to