Não se usa postmap em tabelas (table lookups) do tipo 'pcre', somente
em tabelas 'hash'.

Do man postmap:

The*postmap*(1)  <http://www.postfix.org/postmap.1.html>  command can query any 
supported file
              type,  but  it  can  create only the following file
              types:

              *btree*   The output  file  is  a  btree  file,  named
                     /file/*_*/name/*.db*.   This is available on systems
                     with support for*db*  databases.

              *cdb*     The  output  consists  of  one  file,  named
                     /file/*_*/name/*.cdb*.  This is available on systems
                     with support for*cdb*  databases.

              *dbm*     The output  consists  of  two  files,  named
                     /file/*_*/name/*.pag*   and/file/*_*/name/*.dir*.   This is
                     available on systems with  support  for*dbm*
                     databases.

              *hash*    The  output  file  is  a  hashed file, named
                     /file/*_*/name/*.db*.  This is available on  systems
                     with support for*db*  databases.

              *sdbm*    The  output  consists  of  two  files, named
                     /file/*_*/name/*.pag*  and/file/*_*/name/*.dir*.   This  is
                     available  on  systems with support for*sdbm*
                     databases.

-----------------------------
    _    Julio Cesar Covolato
   0v0<[email protected]>
  /(_)\  F: 55-11-3129-3366
   ^ ^   PSI INTERNET
-----------------------------


Em 09/11/2010 14:43, Reinaldo de Carvalho escreveu:
2010/11/9 irado furioso com tudo<[email protected]>:
no main.cf:

header_checks = pcre:/etc/postfix/header_checks
nested_header_checks = $header_checks

no header_checks:
# Bloqueio de assuntos manjados
/VIAGRA*|Viagra*|viagra*/ REJECT Mensagem recusada - Spams nao sao
permitidos aqui
/Electronic Federal Tax Payment/ REJECT - Spam

Desta forma, cada termo (os termos são separados por pipes), será
buscado em todos os cabeçalhos e não apenas no Subject.

reparem que embora eu POSSA usar o convencional:
^/Subject: (etc)
eu não o fiz, deixei mesmo só o texto. Experimentei a sequencia que o
colega do post original (Egberto Monteiro) informou.

o resto é o convencional: postmap header_checks, postfix reload e
pronto :)

Não se usa postmap em tabelas (table lookups) do tipo 'pcre', somente
em tabelas 'hash'.

Grato a todos que deram sua opinião.

_______________________________________________
Postfix-BR mailing list
[email protected]
http://listas.softwarelivre.org/mailman/listinfo/postfix-br

Responder a