diff --git a/src/mailrise/smtp.py b/src/mailrise/smtp.py index 7d0072c..6e5b268 100644 --- a/src/mailrise/smtp.py +++ b/src/mailrise/smtp.py @@ -103,17 +103,6 @@ async def handle_DATA(self, server: SMTP, session: Session, envelope: Envelope) return '250 OK' - # pylint: disable=invalid-name,unused-argument - async def handle_EHLO(self, _server: SMTP, session: Session, _envelope: Envelope, - hostname: str, responses: list[str]) -> list[str]: - """This hook is called during ``EHLO``.""" - if not self.config.authenticator: - # Workaround for SMTP clients that send MAIL FROM AUTH=<> - # It only works if we're not using SMTP authentication. - # https://github.com/aio-libs/aiosmtpd/issues/299#issuecomment-1427487291 - session.host_name = hostname # type: ignore - return [r for r in responses if not r.startswith("250-AUTH")] - def _parsemessage(msg: StdlibEmailMessage, envelope: Envelope) -> r.EmailMessage: """Parses an email message into an `EmailNotification`.