Remove unused code in mailhost