restricting sendmail functionality