summaryrefslogtreecommitdiff
path: root/src/mailman/mta
diff options
context:
space:
mode:
authorStephen J. Turnbull2013-09-25 02:25:23 +0900
committerStephen J. Turnbull2013-09-25 02:25:23 +0900
commitbcf2f0ec39582ba0bd30911ade71bdff182a1481 (patch)
tree70e36c407041c0fb8a0bef8771aa80ef119c7bc0 /src/mailman/mta
parent442037b1374ccb2821a48a7ea7606f137ce28241 (diff)
downloadmailman-bcf2f0ec39582ba0bd30911ade71bdff182a1481.tar.gz
mailman-bcf2f0ec39582ba0bd30911ade71bdff182a1481.tar.zst
mailman-bcf2f0ec39582ba0bd30911ade71bdff182a1481.zip
New modules config.exim4 and mta.exim4 support the Exim4 MTA.
Documentation added to docs/MTA.rst (with some stylistic changes to existing text.
Diffstat (limited to 'src/mailman/mta')
-rw-r--r--src/mailman/mta/exim4.py50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/mailman/mta/exim4.py b/src/mailman/mta/exim4.py
new file mode 100644
index 000000000..d66d8d6bc
--- /dev/null
+++ b/src/mailman/mta/exim4.py
@@ -0,0 +1,50 @@
+# Copyright (C) 2001-2013 by the Free Software Foundation, Inc.
+#
+# This file is part of GNU Mailman.
+#
+# GNU Mailman is free software: you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+#
+# GNU Mailman is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# GNU Mailman. If not, see <http://www.gnu.org/licenses/>.
+
+"""Creation/deletion hooks for the Exim4 MTA."""
+
+# if needed:
+# from __future__ import absolute_import, print_function, unicode_literals
+
+__metaclass__ = type
+__all__ = [
+ 'LMTP',
+ ]
+
+from zope.interface import implementer
+from mailman.interfaces.mta import IMailTransportAgentLifecycle
+
+
+
+@implementer(IMailTransportAgentLifecycle)
+class LMTP:
+ """Connect Mailman to Exim4 via LMTP.
+
+ See `IMailTransportAgentLifecycle`."""
+
+ # Exim4 handles all configuration itself, by finding the list config file.
+ def __init__(self):
+ pass
+
+ def create(self, mlist):
+ pass
+
+ delete = create
+
+ def regenerate(self, directory=None):
+ """See `IMailTransportAgentLifecycle`."""
+ pass