Java port of Kicksend mailcheck