Skip to content

Instantly share code, notes, and snippets.

@troeger
troeger / checkqueue.py
Created December 9, 2017 14:20
Find hacked mail account used for spam sending (Postfix)
'''
This script checks the current Postfix mail queue for mails that
where delivered through SMTP authentication. It then shows both
the authentication user name and the sender mail adress.
Since spammers normally don't use a valid sender adress in your
administrative domain, you quickly see the problem.
Run with "python3 checkqueue.py"
'''
@troeger
troeger / minecraft-server
Last active April 5, 2023 17:22
Running a Minecraft server as daemon on Amazon Linux
#!/bin/bash
#
# chkconfig: 2345 95 05
#
### BEGIN INIT INFO
# Provides: minecraft-server
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog
# Should-Stop: $syslog