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-part-7 [2022/08/31 13:13] – ↷ Nom de la page changé de tutoriaux:install-email-server-part-8 à tutoriaux:install-email-server-part-7 fratertutoriaux: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 26: Ligne 36:
 <code bash>postconf -m</code> <code bash>postconf -m</code>
  
-{{ :tutoriaux:pasted:20220830-135305.png |}}+{{ tutoriaux:debian-email:debian-postconf.png |}}
 ==== Header Checks ==== ==== Header Checks ====
  
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.
Ligne 136: Ligne 150:
 ==== Install SpamAssassin ==== ==== Install SpamAssassin ====
  
-<WRAP center round info 80%>+<WRAP round info>
 If you used iRedMail to set up your mail server, then SpamAssassin is already installed alongside Amavis, which can read SpamAssassin rules. You don’t need to follow the instructions in this section. If you used iRedMail to set up your mail server, then SpamAssassin is already installed alongside Amavis, which can read SpamAssassin rules. You don’t need to follow the instructions in this section.
 </WRAP> </WRAP>
Ligne 171: Ligne 185:
 </code> </code>
  
-If you have configured [[tutoriaux:install-email-server-part-4|OpenDKIM]] and [[tutoriaux:install-email-server-part-5|OpenDMARC]], then these lines should look like below. The order matters.+If you have configured [[tutoriaux:install-email-server:install-email-server-part-4|OpenDKIM]] and [[tutoriaux:install-email-server:install-email-server-part-5|OpenDMARC]], then these lines should look like below. The order matters.
  
 <code> <code>
Ligne 203: Ligne 217:
 <code bash>sudo systemctl restart postfix spamass-milter</code> <code bash>sudo systemctl restart postfix spamass-milter</code>
  
-<WRAP center round tip 80%>+<WRAP round tip>
 iRedMail users need to start the SpamAssassin service in order to use ''spamass-milter''. iRedMail users need to start the SpamAssassin service in order to use ''spamass-milter''.
 </WRAP> </WRAP>
Ligne 313: Ligne 327:
 </code> </code>
  
-If you have configured [[tutoriaux:install-email-server-part-6|OpenDMARC]] on your mail server, you can now add the following lines to add scores to emails that fail DMARC check.+If you have configured [[tutoriaux:install-email-server:install-email-server-part-6|OpenDMARC]] on your mail server, you can now add the following lines to add scores to emails that fail DMARC check.
  
 <code> <code>
Ligne 433: Ligne 447:
 ==== Move Spam into the Junk Folder ==== ==== Move Spam into the Junk Folder ====
  
-<WRAP center round important 60%>+<WRAP round important>
 iRedMail has this configured out-of-the-box. iRedMail has this configured out-of-the-box.
 </WRAP> </WRAP>
tutoriaux/install-email-server/install-email-server-part-7.txt · Dernière modification : 2023/05/25 20:17 de frater