Month: June 2019

Filter mailing lists with Dovecot Sieve

require ["fileinto", "variables"];

if header :matches "List-Post" "*<mailto:**@*.*.*>" {
  fileinto "INBOX.lists.${5}.${3}"; stop;
}

if header :matches "List-Post" "*<mailto:**@*.*>" {
  fileinto "INBOX.lists.${4}.${3}"; stop;
}

if header :matches "X-Mailing-List" "*@*.*.*" {
  fileinto "INBOX.lists.${3}.${1}"; stop;
}

if header :matches "X-Mailing-List" "*@*.*" {
  fileinto "INBOX.lists.${2}.${1}"; stop;
}

Teamspeak Dockerfile > Healthcheck

FROM teamspeak

RUN apk --update --no-cache add netcat-openbsd

HEALTHCHECK --interval=15s --timeout=1s --start-period=5s --retries=3 CMD echo quit | nc 127.0.0.1 10011 || false
# docker ps --filter ancestor=teamspeak

CONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS                 PORTS                                                                        NAMES
748e7f873a07        teamspeak_teamspeak   "entrypoint.sh ts3se…"   5 hours ago         Up 5 hours (healthy)   0.0.0.0:10011->10011/tcp, 0.0.0.0:9987->9987/udp, 0.0.0.0:30033->30033/tcp   dvaec_teamspeak

fail2ban – Proxmox Webinterface

/etc/fail2ban/jail.local
[proxmox]
enabled = true
port = 8006
filter = proxmox
logpath = /var/log/daemon.log
maxretry = 3
bantime = 86400
/etc/fail2ban/filter.d/proxmox.conf
[Definition]
failregex = pvedaemon\[.*authentication failure; rhost=<HOST> user=.*msg=.*
ignoreregex =