Remove dovecot-service-checksuspended - no longer used.
This commit is contained in:
parent
99e00af9cc
commit
6c697fb7e1
1 changed files with 0 additions and 18 deletions
|
|
@ -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 "$@"
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue