mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-23 20:24:54 +02:00
scripts: disallow alias = account (#3270)
This commit is contained in:
parent
4b937fda5b
commit
3f22cbce01
2 changed files with 8 additions and 0 deletions
|
@ -74,6 +74,10 @@ function _arg_expect_mail_account
|
|||
function _account_should_not_exist_yet
|
||||
{
|
||||
__account_already_exists && _exit_with_error "'${MAIL_ACCOUNT}' already exists"
|
||||
if [[ -f ${DATABASE_VIRTUAL} ]] && grep -q "^${MAIL_ACCOUNT}" "${DATABASE_VIRTUAL}"
|
||||
then
|
||||
_exit_with_error "'${MAIL_ACCOUNT}' is already defined as an alias"
|
||||
fi
|
||||
}
|
||||
|
||||
# Also used by delmailuser, setquota, delquota
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue