SMTP module, web interface, and various fixes