Added bounce checking to mail handling