News for hackers. Stuff that matters.
Re:Let them paste passwords by marksomnian on Thursday May 18, 2017 @10:46AM (#14367632)
.+@.+\..+
Re:Let them paste passwords by nradov on Thursday May 18, 2017 @11:41AM (#14368166)
That regex is defective. See benchaney's reply above.
Re:Let them paste passwords by hfsktr on Thursday May 18, 2017 @12:03PM (#14368387)
.+@.+(\..+)?

should satisfy you both right? I use the original or a form of usually when I had to check emails.

Re:Let them paste passwords by dasil003 on Thursday May 18, 2017 @12:37PM (#14368688)
That's identical to just doing .+@.+
Re:Let them paste passwords by simcop2387 on Thursday May 18, 2017 @12:17PM (#14368491)
Fully qualified domains actually end in a . If you're allowing sally@google then you must also allow sally@google. To be valid
Re:Let them paste passwords by eridius on Thursday May 18, 2017 @01:38PM (#14369289)
No you don't. Email addresses explicitly require any periods in the domain to have at least one (non-period) character after the period. From RFC 5322, the relevant grammar production for the domain looks like

  dot-atom-text   =   1*atext *("." 1*atext)
(where atext is letters, digits, or a set of specific punctuation characters that doesn't include periods).
Re:Let them paste passwords by simcop2387 on Saturday May 20, 2017 @03:16AM (#14381374)
Ah, I wasn't aware that email addresses defined that differently. it looks like it's also the same way as part of obs-domain as defined by the addr-spec part of that. RFC 822 also seems to say the same thing, it's been way too long since i've tried to read those RFCs.
Re:Let them paste passwords by glandium on Thursday May 18, 2017 @08:13PM (#14372106)
One (probably forgotten) reason people validated email addresses with convoluted regexps is that there are multiple (actually valid per RFC) email addresses formats that can do nasty things. Like explicitly specifying a series of mail servers to go through. They're (hopefully) deprecated and rejected by most servers nowadays, though.
Re:Let them paste passwords by snakeanus on Friday May 19, 2017 @07:17AM (#14374499)
> hopefully

Why?

Re:Let them paste passwords by contras1970 on Friday May 19, 2017 @09:25AM (#14375354)
> By default, this feature is turned off. This closes a nasty open relay loophole where a backup MX host can be tricked into forwarding junk mail to a primary MX host which then spams it out to the world.

http://www.postfix.org/postconf.5.html#allow_untrusted_routi...

Re:Let them paste passwords by sgustard on Thursday May 18, 2017 @12:57PM (#14368877)
Thankfully my email is @@@@@@@.......