Kategorie szkoleń | Egzaminy | Kontakt
  • 3
  • 5
  • 213

Czy poniższe elementy konfiguracji postfixa (tablice pcre) należy postmapować  (ich postmap zwraca błąd !)?

/etc/postfix/main.cf:
    header_checks = pcre:/etc/postfix/header_checks
    body_checks = pcre:/etc/postfix/body_checks

Chodzi o obronę przed tzw. backscatterem --> http://www.postfix.org/BACKSCATTER_README.html

Jak prawidłowo skonfigurować coś takiego (przykład please)?

Dominik_Węglarz
  • Zapytał
  • @ Dominik_Węglarz | 14.04.2014
    • laureat
    • 20
    • 10
    • 88
Zaloguj się aby zadać pytanie
Pokrewne

Odpowiedzi (3)

  • 0
Dominik_Węglarz
  • Odpowiedział
  • @ Dominik_Węglarz | 14.04.2014
    • laureat
    • 20
    • 10
    • 88
Komentarze
Mój błąd. Z rozpędu pisałem ręcznie, zamiast wkleić. Ma być postmap.
Skomentował : @ TRENER ALTKOM AKADEMII ,15.04.2014
  • 0

Poza tym --> man postmap :

 The postmap(1) 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.

              fail   A table that reliably fails all requests. The lookup table name is used for logging only. This table exists to sim‐
                     plify Postfix error tests.

              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.

 

Dominik_Węglarz
  • Odpowiedział
  • @ Dominik_Węglarz | 14.04.2014
    • laureat
    • 20
    • 10
    • 88
  • 0

I jeszcze man prce_table :

http://www.postfix.org/pcre_table.5.html

"...
The  Postfix  mail  system  uses optional tables for address rewriting,
       mail routing, or access control. These tables are usually in dbm or  db
       format.

       Alternatively,  lookup tables can be specified in Perl Compatible Regu-
       lar Expression form. In this case, each input  is  compared  against  a
       list  of  patterns.  When a match is found, the corresponding result is
       returned and the search is terminated.

..."

Dominik_Węglarz
  • Odpowiedział
  • @ Dominik_Węglarz | 14.04.2014
    • laureat
    • 20
    • 10
    • 88