> When MD5sums were first proposed (in place of my wild escaping), it > seemed like a great idea. However, a voice in the back of my head, > now spoken (typed?) by Rob, has been growing louder. My > implementation now merely truncates email usernames to 16 characters > (plus the noted defanging, which makes it complicated again ...) and > replaces the @ with a dot (not an underscore, that's not a legal > character).
Repeat after me, ALMOST ALL characters (octets actually) are now LEGAL in DNS queries (see RFC-2181 section 11). There is NO need for -any- kind of munging. I've set up an emailBL directly from the Google list, try: host [email protected]. IE "address.phish.icaen.uiowa.edu" NO need for hashing, no collsions, etc. Also makes it easier to deploy into an address filter/blocker in your smtp-MTA (to prevent local llusers from being reply to one of those addresses). BTW notice that the Google data is multi-valued in the TYPE field. rather than a simple enumeration of that data into an address it is better to turn it into a bit-mask, as then multiple values can be represented (and queried) in a single address/operation. EG: A == 127.0.0.2 B == 127.0.0.4 C == 127.0.0.8 D == 127.0.0.16 thus AB == 127.0.0.6 AC == 127.0.0.10 etc. So the entry for '[email protected]' only has an 'A' type. host [email protected]. => 127.0.0.10 so the entry for '[email protected]' has an 'A' & 'C' type. -- Dave Funk University of Iowa <dbfunk (at) engineering.uiowa.edu> College of Engineering 319/335-5751 FAX: 319/384-0549 1256 Seamans Center Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527 #include <std_disclaimer.h> Better is not better, 'standard' is better. B{
