Skip to content

Read a (spam) folder in an IMAP server and add postfix filters according to the server that send the mail, the "return path" address and the "reply to" address

Notifications You must be signed in to change notification settings

ajdelgado/update-spam-filter

Repository files navigation

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

About

Read a (spam) folder in an IMAP server and add postfix filters according to the server that send the mail, the "return path" address and the "reply to" address

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages