summaryrefslogtreecommitdiff
path: root/src/mailman/mta/postfix.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-08-26 02:27:37 -0400
committerBarry Warsaw2009-08-26 02:27:37 -0400
commit9ad8c1e5524bc9479fd356757016ec160f392dd7 (patch)
tree2e8f5aab9ed6d9c52f03ae355dbed080602ee5b1 /src/mailman/mta/postfix.py
parent0ce2f82735911c738349b1812c86e09355ecee60 (diff)
downloadmailman-9ad8c1e5524bc9479fd356757016ec160f392dd7.tar.gz
mailman-9ad8c1e5524bc9479fd356757016ec160f392dd7.tar.zst
mailman-9ad8c1e5524bc9479fd356757016ec160f392dd7.zip
Diffstat (limited to 'src/mailman/mta/postfix.py')
-rw-r--r--src/mailman/mta/postfix.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/mta/postfix.py b/src/mailman/mta/postfix.py
index e9398f11d..d68c3d19b 100644
--- a/src/mailman/mta/postfix.py
+++ b/src/mailman/mta/postfix.py
@@ -34,6 +34,7 @@ import logging
import datetime
from locknix.lockfile import Lock
+from zope.component import getUtility
from zope.interface import implements
from mailman import Utils
@@ -80,7 +81,7 @@ class LMTP:
# Sort all existing mailing list names first by domain, then my local
# part. For postfix we need a dummy entry for the domain.
by_domain = {}
- for mailing_list in IListManager(config).mailing_lists:
+ for mailing_list in getUtility(IListManager).mailing_lists:
by_domain.setdefault(mailing_list.host_name, []).append(
mailing_list.list_name)
with open(path + '.new', 'w') as fp: