From 54bb7d36ec8f4b16cf0983351bb54413ce778dd2 Mon Sep 17 00:00:00 2001 From: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Date: Wed, 23 Apr 2025 18:12:22 +1200 Subject: [PATCH] fix: `setup email list` should only work with `ACCOUNT_PROVISIONER=FILE` --- target/bin/listmailuser | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/bin/listmailuser b/target/bin/listmailuser index 1253c448..226bc1af 100755 --- a/target/bin/listmailuser +++ b/target/bin/listmailuser @@ -8,6 +8,10 @@ source /usr/local/bin/helpers/index.sh source /etc/dms-settings 2>/dev/null function _main() { + if [[ ${ACCOUNT_PROVISIONER} != 'FILE' ]]; then + _exit_with_error "This command is only compatible with 'ACCOUNT_PROVISIONER=FILE'" + fi + local DATABASE_ACCOUNTS='/tmp/docker-mailserver/postfix-accounts.cf' local DATABASE_VIRTUAL='/tmp/docker-mailserver/postfix-virtual.cf'