Professor bans emails from students except to set up office appointment