fix create list with same name and addres_name

This commit is contained in:
Jorge Pastor 2024-03-06 13:11:17 +01:00
parent 15fe9fa8cf
commit 39267baaad
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class MailmanController(MailmanVirtualDomainController):
for suffix in self.address_suffixes:
context['suffix'] = suffix
# Because mailman doesn't properly handle lists aliases we need virtual aliases
if context['address_name'] != context['name']:
if context['address_name'] != context['name'] or context['address_domain'] != settings.LISTS_DEFAULT_DOMAIN:
aliases.append("%(address_name)s%(suffix)s@%(domain)s\t%(name)s%(suffix)s@grups.pangea.org" % context)
return '\n'.join(aliases)