4 ms·
Use a queue processor - but that's probably going too far for simple email validation. The simple work around - don't do it. This code is susceptible to Denial
by SudoAlex 14y ago
Use a queue processor - but that's probably going too far for simple email validation.
The simple work around - don't do it. This code is susceptible to Denial of Service problems similar to the URLField verify_exists option https://www.djangoproject.com/weblog/2011/sep/09/security-releases-issued/ https://www.djangoproject.com/weblog/2011/sep/09/security-re... - a malicious SMTP server could tarpit all your SMTP connections from Django leaving your site with no workers to process other requests.
The email validation from an EmailField is designed to ensure that it could be a valid email address, not that it's a valid mailbox. Live with the limitation instead of trying to be too smart.