From dab754275362d044578f5d934d6b41f4373f2a8b Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 2 Jan 2014 16:24:12 +0100 Subject: [PATCH] Wrong queries fixed. see #469 --- modoboa/core/commands/postfix_maps.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modoboa/core/commands/postfix_maps.py b/modoboa/core/commands/postfix_maps.py index 37336ebf1..5ac75ce8a 100644 --- a/modoboa/core/commands/postfix_maps.py +++ b/modoboa/core/commands/postfix_maps.py @@ -151,9 +151,9 @@ class AutoRepliesMap(MapFile): class RelayDomainsMap(MapFile): category = "relaydomains" filename = "sql-relaydomains.cf" - mysql = "SELECT name FROM postfix_relay_domains_domain WHERE name='%s' AND enabled=1" - postgres = "SELECT name FROM postfix_relay_domains_domain WHERE name='%s' AND enabled" - sqlite = "SELECT name FROM postfix_relay_domains_domain WHERE name='%s' AND enabled=1" + mysql = "SELECT name FROM postfix_relay_domains_relaydomain WHERE name='%s' AND enabled=1" + postgres = "SELECT name FROM postfix_relay_domains_relaydomain WHERE name='%s' AND enabled" + sqlite = "SELECT name FROM postfix_relay_domains_relaydomain WHERE name='%s' AND enabled=1" class RelayDomainsTransportMap(MapFile):