Minor bugfixes and sendmail enabling