diff --git a/Lib/smtpd.py b/Lib/smtpd.py index 69cdcdc4468..dd410b8e169 100755 --- a/Lib/smtpd.py +++ b/Lib/smtpd.py @@ -525,9 +525,6 @@ def smtp_MAIL(self, arg): if not self.extended_smtp and params: self.push(syntaxerr) return - if not address: - self.push(syntaxerr) - return if self.mailfrom: self.push('503 Error: nested MAIL command') return @@ -586,15 +583,9 @@ def smtp_RCPT(self, arg): else: self.push(syntaxerr) return - if not address: - self.push(syntaxerr) - return if params and len(params.keys()) > 0: self.push('555 RCPT TO parameters not recognized or not implemented') return - if not address: - self.push('501 Syntax: RCPT TO:
') - return self.rcpttos.append(address) print('recips:', self.rcpttos, file=DEBUGSTREAM) self.push('250 OK')