Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Doc/library/smtpd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ MailmanProxy Objects

.. class:: MailmanProxy(localaddr, remoteaddr)

.. deprecated-removed:: 3.9 3.11

:class:`MailmanProxy` is deprecated, it depends on a ``Mailman``
module which no longer exists and therefore is already broken.


Create a new pure proxy server. Arguments are as per :class:`SMTPServer`.
Everything will be relayed to *remoteaddr*, unless local mailman configurations
knows about an address, in which case it will be handled via mailman. Note that
Expand Down
2 changes: 2 additions & 0 deletions Lib/smtpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,8 @@ def _deliver(self, mailfrom, rcpttos, data):

class MailmanProxy(PureProxy):
def __init__(self, *args, **kwargs):
warn('MailmanProxy is deprecated and will be removed '
'in future', DeprecationWarning, 2)
if 'enable_SMTPUTF8' in kwargs and kwargs['enable_SMTPUTF8']:
raise ValueError("MailmanProxy does not support SMTPUTF8.")
super(PureProxy, self).__init__(*args, **kwargs)
Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ Benjamin Collar
Jeffery Collins
Robert Collins
Paul Colomiets
Samuel Colvin
Christophe Combelles
Geremy Condra
Denver Coneybeare
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deprecate ``smtpd.MailmanProxy`` ready for future removal.