mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
17 lines
254 B
Bash
Executable file
17 lines
254 B
Bash
Executable file
#!/bin/bash
|
|
|
|
DATABASE=/tmp/docker-mailserver/postfix-accounts.cf
|
|
|
|
function usage {
|
|
echo "Usage: delmailuser <user@domain.tld>"
|
|
exit 1
|
|
}
|
|
|
|
if [ ! -z "$1" ]; then
|
|
USER=$1
|
|
ENTRIES=$(grep "$USER" -vi $DATABASE)
|
|
echo "$ENTRIES" > $DATABASE
|
|
else
|
|
usage
|
|
fi
|