validators: accept email when greylisting is used
This commit is contained in:
parent
74507b2121
commit
a60505265b
|
@ -30,7 +30,7 @@ class EmailValidator(EmailValidator):
|
|||
continue
|
||||
smtp.mail('')
|
||||
status = smtp.rcpt(value)
|
||||
if status[0] != 250:
|
||||
if status[0] % 100 == 5:
|
||||
raise ValidationError(_('Invalid email address.'))
|
||||
break
|
||||
except smtplib.SMTPServerDisconnected:
|
||||
|
|
Loading…
Reference in New Issue