Remove dovecot-service-checksuspended - no longer used.

This commit is contained in:
Darren 'Tadgy' Austin 2026-10-15 13:58:33 +01:00
commit 6c697fb7e1

View file

@ -1,18 +0,0 @@
#!/bin/bash
# A Dovecot service script to check whether a domain or user has been suspended from being able to use mail.
VIRTUAL_DIR="/etc/virtual"
U="${USER%%@*}"
D="${USER#*@}"
[[ -e "$VIRTUAL_DIR/$D/suspended" ]] && {
printf "* %s\\r\\n" "NO [ALERT] Domain suspended"
exit 0
}
[[ -e "$VIRTUAL_DIR/$D/$U/suspended" ]] && {
printf "* %s\\r\\n" "NO [ALERT] User suspended"
exit 0
}
exec "$@"