Outils pour utilisateurs

Outils du site


tutoriaux:install-email-server:install-email-server-part-8

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-8 [2023/01/06 18:08] – créée - modification externe 127.0.0.1tutoriaux:install-email-server:install-email-server-part-8 [2023/04/23 16:48] (Version actuelle) – [Installation] frater
Ligne 415: Ligne 415:
  
 Press Ctrl+C to stop amavisd-nanny. Press Ctrl+C to stop amavisd-nanny.
 +
 +===== PostGrey : Postfix Greylisting Policy Server  =====
 +
 +When a request for delivery of a mail is received by Postfix via SMTP, the triplet CLIENT_IP / SENDER / RECIPIENT is built. If it is the first time that this triplet is seen, or if the triplet was first seen, less than 5 minutes ago, then the mail gets rejected with a temporary error. Hopefully spammers or viruses will not try again later, as it is however required per RFC.
 +
 +==== Installation ====
 +
 +<code bash>sudo apt install postgrey</code>
 +
 +the package is self installing, you have noting to change to the postfix's configuration files.
 +==== Configuration ====
 +
 +''postgrey'' is, out-of-the-box working (by replying to unknown sender to retry sending later (usually 5 minutes).
 +
 +You may want to "whitelist" sender or destination email (by white listing you're **NOT** applying any delay or retry policies).
 +
 +Edit the two files in ''/etc/postgey/'' directory
 +
 +    * ''whitelist_clients'' is for whitelisting the sender's hostname 
 +    * ''whitelist_reciepients'' is for not applying **ANY** delay nor retry to specific destination (internal) email.
 +
 +==== examples ====
 +
 +<code sshconfig whitelist_recipients>
 +# postgrey whitelist for mail recipients
 +# --------------------------------------
 +# put this file in /etc/postgrey or specify its path with --whitelist-recipients=xxx
 +
 +# do not delay mail to :
 +postmaster@
 +abuse@
 +</code>
 +
 +<code sshconfig whitelist_clients>
 +# postgrey whitelist for mail client hostnames
 +# --------------------------------------------
 +# put this file in /etc/postgrey or specify its path with --whitelist-clients=xxx
 +#
 +# postgrey version: 1.36, build date: 2015-09-01
 +
 +# Debian-specific additions
 +# I *know* they run real mail queues, so greylisting only creates bigger load for them.
 +debconf.org
 +debian.org
 +spi-inc.org
 +
 +# you may also add IPs
 +1.1.1.1
 +
 +# or regex expressions:
 +/^mail\d+\.telekom\.de$/
 +</code>
 ===== Skip Virus-Checking for Your Newsletters ===== ===== Skip Virus-Checking for Your Newsletters =====
  
tutoriaux/install-email-server/install-email-server-part-8.1673024929.txt.gz · Dernière modification : 2023/01/06 18:08 de 127.0.0.1