Skip to content

Instantly share code, notes, and snippets.

View suenkler's full-sized avatar

Hendrik Sünkler suenkler

View GitHub Profile
@suenkler
suenkler / process_postfix_queue.py
Last active June 13, 2023 19:17
This Python script checks Postfix's mail queue for messages that were deferred for a defined reason, deletes these mails and notifies the sender.
# -*- coding: utf-8 -*-
"""
This Python script checks Postfix's mail queue for messages that
were deferred for a defined reason, deletes these mails and
notifies the sender.
This script uses Python 3 and is tested on Ubuntu 14.04.
Copyright (C) 2016 Hendrik Sünkler <mailbox@suenkler.info>