Merge branch 'master' of github.com:glic3rinu/django-orchestra

This commit is contained in:
glic3 2015-05-04 15:02:11 +02:00
commit fb16320445
1 changed files with 1 additions and 1 deletions

View File

@ -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