scratch code for smtp proxy based on eventmachine