diff --git a/lib/configfiles/rhel_centos.xml b/lib/configfiles/rhel_centos.xml index 0e3682f9..a31b2dfa 100644 --- a/lib/configfiles/rhel_centos.xml +++ b/lib/configfiles/rhel_centos.xml @@ -95,7 +95,7 @@ user = password = dbname = hosts = -query = SELECT destination FROM mail_virtual WHERE email = '%s' AND trim(destination) <> '' +query = SELECT destination FROM mail_virtual AS v, panel_customers AS c WHERE c.customerid = v.customerid AND c.deactivated = 0 AND v.email = '%s' AND trim(v.destination) <> '' ]]>