done sendmail, logging and authorisation