Outils pour utilisateurs

Outils du site


tutoriaux:install-email-server:install-email-server-part-7

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tutoriaux:install-email-server:install-email-server-part-7 [2023/01/06 17:57] – créée - modification externe 127.0.0.1tutoriaux:install-email-server:install-email-server-part-7 [2023/05/25 20:17] (Version actuelle) – [Header Checks] frater
Ligne 12: Ligne 12:
  
 Postfix will check all inbound emails when any of the above parameters is being used. Each parameter points to a lookup table containing regular expression patterns and actions. The patterns are compared to strings within email messages (header and body). If Postfix finds a match, the specified action is executed. Header and body checks are done by the Postfix ''cleanup'' daemon. Postfix will check all inbound emails when any of the above parameters is being used. Each parameter points to a lookup table containing regular expression patterns and actions. The patterns are compared to strings within email messages (header and body). If Postfix finds a match, the specified action is executed. Header and body checks are done by the Postfix ''cleanup'' daemon.
 +
 +<WRAP center round tip>
 +when checking with those parameters, you have 2 main options:
 +
 +
 +  * DISCARD : appear to accept the message, but the message will be silently discarded
 +  * REJECT  : force the message to be bounced
 +
 +</WRAP>
 +
  
 There are mainly two types of regular expressions that can be used by Postfix. There are mainly two types of regular expressions that can be used by Postfix.
Ligne 36: Ligne 46:
  
 <code>header_checks = pcre:/etc/postfix/header_checks</code> <code>header_checks = pcre:/etc/postfix/header_checks</code>
 +
 +<WRAP round info>
 +You may use [[https://regex101.com/|https://regex101.com/]] website to test your pcre (just use problematic header sample as test string)
 +</WRAP>
  
 Save and close the file. Then you need to create the ''/etc/postfix/header_checks'' lookup file with a command line text editor such as Nano. Save and close the file. Then you need to create the ''/etc/postfix/header_checks'' lookup file with a command line text editor such as Nano.
tutoriaux/install-email-server/install-email-server-part-7.txt · Dernière modification : 2023/05/25 20:17 de frater