diff options
| author | Barry Warsaw | 2016-03-25 11:48:34 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-03-25 11:48:34 -0400 |
| commit | ca4259f4abd2802f87b86907c281a8b4cdb8150b (patch) | |
| tree | cfac73fb29bb3edcc2cd83e54b7c9cc61b74d84e /src/mailman/mta/postfix.py | |
| parent | 7fd9e5ab09b0da347da0607b47d2d3838bd80f0c (diff) | |
| download | mailman-ca4259f4abd2802f87b86907c281a8b4cdb8150b.tar.gz mailman-ca4259f4abd2802f87b86907c281a8b4cdb8150b.tar.zst mailman-ca4259f4abd2802f87b86907c281a8b4cdb8150b.zip | |
Diffstat (limited to 'src/mailman/mta/postfix.py')
| -rw-r--r-- | src/mailman/mta/postfix.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mailman/mta/postfix.py b/src/mailman/mta/postfix.py index 12d7e81a6..ff4b92117 100644 --- a/src/mailman/mta/postfix.py +++ b/src/mailman/mta/postfix.py @@ -17,15 +17,11 @@ """Creation/deletion hooks for the Postfix MTA.""" -__all__ = [ - 'LMTP', - ] - - import os import logging from flufl.lock import Lock +from mailman import public from mailman.config import config from mailman.config.config import external_configuration from mailman.interfaces.listmanager import IListManager @@ -42,17 +38,16 @@ ALIASTMPL = '{0:{2}}lmtp:[{1.mta.lmtp_host}]:{1.mta.lmtp_port}' NL = '\n' - class _FakeList: """Duck-typed list for the `IMailTransportAgentAliases` interface.""" def __init__(self, list_name, mail_host): self.list_name = list_name self.mail_host = mail_host - self.posting_address = '{0}@{1}'.format(list_name, mail_host) + self.posting_address = '{}@{}'.format(list_name, mail_host) - +@public @implementer(IMailTransportAgentLifecycle) class LMTP: """Connect Mailman to Postfix via LMTP.""" |
