A Queensland teacher who kissed and sent thousands of inappropriate emails to students has been banned indefinitely.