Of course an extension of that idea would be to identify all the other ranges that are marked as unassigned or dubious, like 224. or 14. or 240. and so on. INTERNET PROTOCOL V4 ADDRESS SPACE and RFC3330 - Special-Use IPv4 Addresses might be a start here.

That's fairly complex, and prone to require a lot of updating as ranges are reassigned. It would be simpler to rely on an extant mechanism, such as DNS. For example, require the IP address of the sending mail server to be reverse-lookupable (PTR record in in-addr.arpa). Of course, then you'll be blocking mail from pretty much 100% of Asia... however, it would be possible to combine this with other techniques -- for example, if the IP of the sending mailserver _isn't_ reversable, check it against a whitelist, and if it's not there greylist and tempfail it for N minutes, or apply heuristics, or whatever.

Of course, all of that has pretty much nothing to do with the email address in the From field, which can generally be considered worthless for such purposes.

If you're checking an email address that someone used to sign up for some service, just require them to respond to a confirmation message. That positively guarantees the address is valid.


$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/

In reply to Re: Email::Valid appears to disqualify valid email addresses by jonadab
in thread Email::Valid appears to disqualify valid email addresses by princepawn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.