[issue8503] smtpd SMTPServer does not allow domain filtering

Milan Oberkirch report at bugs.python.org
Tue Jun 10 23:58:24 CEST 2014


Milan Oberkirch added the comment:

I see no reason to restrict the filtering possibilities to the domain, so I added a method "validate_recipient_address" wich gets an address of the form "local-part at domain" and returns `True`.
SMTPChannel.smtp_RCPT checks any address with this method before appending it to the recipient list and returns "554 ..." as proposed by Mike if the validation failed.

----------
components: +email
keywords: +patch
nosy: +barry, jesstess, r.david.murray, zvyn
Added file: http://bugs.python.org/file35560/issue8503.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8503>
_______________________________________


More information about the Python-bugs-list mailing list