Discussion:
Postmap doesn't like PCRE; postconf says it should work
(too old to reply)
Stewart, John
2004-03-05 21:37:24 UTC
Permalink
I'm using 2.0.13:

bratwurst# postconf mail_version
mail_version = 2.0.13

And have got some virus checking stuff in body_checks:

bratwurst# postconf body_checks
body_checks = pcre:/etc/postfix/body_checks

And PCRE seems to be supported (I always do try to remember to compile it in
when I upgrade):

bratwurst# postconf -m
static
pcre
nis
dbm
regexp
environ
proxy
unix

However, postmap doesn't like PCRE:

bratwurst# postmap pcre:/etc/postfix/body_checks
postmap: fatal: unsupported map type: pcre

How can postmap not know about PCRE if postconf does? They were both
installed with a "make install" at the same time:

bratwurst# ls -l `which postmap`
-rwxr-xr-x 1 root other 1216936 Aug 5 2003
/usr/sbin/postmap
bratwurst# ls -l `which postconf`
-rwxr-xr-x 1 root other 1212152 Aug 5 2003
/usr/sbin/postconf


Also, since I've run postmap on body_checks without the pcre: prefix, it
seems it would be in dbm format:

bratwurst# postconf default_database_type
default_database_type = dbm

And it appears to be working (even though main.cf has it as type PCRE) with
dbm format (I'm seeing emails get blocked due to the new virus signatures I
just installed). So postfix is "smart" enough to use dbm format even though
PCRE is specified?

johnS
Magnus Bäck
2004-03-05 21:45:23 UTC
Permalink
On Friday, March 05, 2004 at 22:36 CET,
"Stewart, John" <***@artesyncp.com> wrote:

[...]
Post by Stewart, John
=20
bratwurst# postmap pcre:/etc/postfix/body_checks
postmap: fatal: unsupported map type: pcre
No, because pcre maps are not meant to be run through postmap that way.

[...]

--=20
Magnus B=E4ck
***@dsek.lth.se
Kyle Dent
2004-03-05 21:45:35 UTC
Permalink
Post by Stewart, John
[...]
And it appears to be working (even though main.cf has it as type PCRE) with
dbm format (I'm seeing emails get blocked due to the new virus signatures I
just installed). So postfix is "smart" enough to use dbm format even though
PCRE is specified?
PCRE tables do not get indexed. You don't run postmap on them.

Kyle
Robin Lynn Frank
2004-03-05 21:47:42 UTC
Permalink
Post by Stewart, John
bratwurst# postconf mail_version
mail_version = 2.0.13
bratwurst# postconf body_checks
body_checks = pcre:/etc/postfix/body_checks
Where exactly did you see that body_checks are to be postmapped?
--
Robin Lynn Frank | Director of Operations | Paradigm-Omega, LLC
Email acceptance policy: http://paradigm-omega.com/email_policy.php
=----=----=----=----=----=----=----=----=----=----=----=----=----=
The day people took their eye off UCE and began attacking defenses
against spam, the war against spam was lost.
Stewart, John
2004-03-05 21:49:14 UTC
Permalink
Post by Stewart, John
Post by Stewart, John
And it appears to be working (even though main.cf has it as
type PCRE) with
Post by Stewart, John
dbm format (I'm seeing emails get blocked due to the new
virus signatures I
Post by Stewart, John
just installed). So postfix is "smart" enough to use dbm
format even though
Post by Stewart, John
PCRE is specified?
PCRE tables do not get indexed. You don't run postmap on them.
Ahhh... thanks!

johnS

Loading...