Added debug flag to init for SMTPServer and wrapped logging calls with check for debug