Skip to content

Latest commit

 

History

History
19 lines (19 loc) · 683 Bytes

README.md

File metadata and controls

19 lines (19 loc) · 683 Bytes

Update Spam filter

Description

Based on an IMAP folder with spam messages. It creates mail filters for postfix to mark as spam future messages.

Requirements

  • mysql-connector-python

Installation

  1. 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
  1. Install requirements:
python3 -m pip install -r requirements.txt
  1. Create a file with your IMAP password and protect it from other users
  2. Create a file with your MySQL password and protect it from other users