Based on an IMAP folder with spam messages. It creates mail filters for postfix to mark as spam future messages.
- mysql-connector-python
- Get pip:
apt install python3-pip # Ubuntu/Debian
yum install python34-setuptools # CentOS/Red Hat
wget -O https://bootstrap.pypa.io/get-pip.py |sudo python3 - # But this might mess with a pip installed with your system package manager
- Install requirements:
python3 -m pip install -r requirements.txt
- Create a file with your IMAP password and protect it from other users
- Create a file with your MySQL password and protect it from other users