From 6357f476c05d0c54c291fb1e949e0a019f2a2344 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Fri, 15 Oct 2021 16:46:08 -0700 Subject: [PATCH] fixed -e email query --- bin/vmail-aliases-get.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/vmail-aliases-get.sh b/bin/vmail-aliases-get.sh index 60eec50..93800fe 100755 --- a/bin/vmail-aliases-get.sh +++ b/bin/vmail-aliases-get.sh @@ -48,7 +48,7 @@ if [[ -n $alias ]]; then exit 1 fi elif [[ -n $email ]]; then - dbquery="$dbquery AND vm_aliases.alias='$mbox' AND vm_domains.domain='$domain'" + dbquery="$dbquery AND vm_mboxes.mbox='$mbox' AND vm_domains.domain='$domain'" elif [[ -n $domain ]]; then dbquery="$dbquery AND vm_domains.domain='$domain'" else