Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine 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.1 | tutoriaux:install-email-server:install-email-server-part-8 [2024/07/06 01:17] (Version actuelle) – frater | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== Part 8 - Setting Up Amavis and ClamAV ====== |
In this article, I will show you how to use **Amavis** and **ClamAV** to scan viruses in email messages. | In this article, I will show you how to use **Amavis** and **ClamAV** to scan viruses in email messages. | ||
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> | ||
+ | |||
+ | the package is self installing, you have noting to change to the postfix' | ||
+ | ==== Configuration ==== | ||
+ | |||
+ | '' | ||
+ | |||
+ | You may want to " | ||
+ | |||
+ | Edit the two files in ''/ | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ==== examples ==== | ||
+ | |||
+ | <code sshconfig whitelist_recipients> | ||
+ | # postgrey whitelist for mail recipients | ||
+ | # -------------------------------------- | ||
+ | # put this file in / | ||
+ | |||
+ | # do not delay mail to : | ||
+ | postmaster@ | ||
+ | abuse@ | ||
+ | </ | ||
+ | |||
+ | <code sshconfig whitelist_clients> | ||
+ | # postgrey whitelist for mail client hostnames | ||
+ | # -------------------------------------------- | ||
+ | # put this file in / | ||
+ | # | ||
+ | # 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: | ||
+ | / | ||
+ | </ | ||
===== Skip Virus-Checking for Your Newsletters ===== | ===== Skip Virus-Checking for Your Newsletters ===== | ||