in reply to Re: Re: Email::Valid appears to disqualify valid email addresses
in thread Email::Valid appears to disqualify valid email addresses

Oh, and please add the other private address ranges also (RFC1918 - Address Allocation for Private Internets). The same logic applies to all four ranges - these are local addresses not usable for Internet addressing. 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.

I know our local email admin hates the _obvious_ MX obfuscation that spammers employ...

  • Comment on Re: Re: Re: Email::Valid appears to disqualify valid email addresses

Replies are listed 'Best First'.
Re: Email::Valid appears to disqualify valid email addresses
by jonadab (Parson) on Aug 25, 2003 at 17:03 UTC
    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$/