From 0f27123ab010cc5aa93fe668352a28e87d68d8fd Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Mon, 4 May 2015 12:58:20 +0000 Subject: [PATCH] Fixed bug domains backends --- orchestra/contrib/mailboxes/backends.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchestra/contrib/mailboxes/backends.py b/orchestra/contrib/mailboxes/backends.py index f35fba8c..340e5022 100644 --- a/orchestra/contrib/mailboxes/backends.py +++ b/orchestra/contrib/mailboxes/backends.py @@ -219,7 +219,7 @@ class PostfixAddressBackend(ServiceController): if context['domain'] != context['local_domain']: # Check if the domain is hosted on this mail server # TODO this is dependent on the domain model - if Domain.objects.filter(records__type=Record.MX, name=context['address_domain']).exists(): + if Domain.objects.filter(records__type=Record.MX, name=context['domain']).exists(): self.append(textwrap.dedent(""" [[ $(grep '^\s*%(domain)s\s*$' %(virtual_alias_domains)s) ]] || { echo '%(domain)s' >> %(virtual_alias_domains)s