# Proxmox mail gateway

## Блокировка содержимого в rar архивах

Для того, чтобы pmg смотрел вовнутрь rar архивов, надо дописать в конец apt источников в /etc/apt/sources.list строки non-free примерно так:

```plaintext
deb http://ftp.debian.org/debian bullseye main contrib non-free
deb http://ftp.debian.org/debian bullseye-updates main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
```

И установите следующие пакеты:

```plaintext
apt update
apt install libclamunrar p7zip-rar
```

Возможно понадобится перезапуск служб pmg.

## Автоматическое обучение

https://www.crc.id.au/2020/05/06/training-spamassassins-bayes-filter-with-proxmox-mail-gateway/