Hacker News new | ask | show | jobs
by _v7gu 3019 days ago
.+@.+ seems to be the only one without too many false-negatives
1 comments

Well the best solution is to check if .+@(.+) matches and then try to lookup what the capture group returned via your DNS resolver. If it has an MX record (or CNAME to something with MX), then deliver the mail to there.

If you can't resole the domain part, return an error.