If you know the professor's name, then Dear _____ is a common, recognized, salutation in English. It shows respect and should be used if you are writing a formal letter or e-mail to the professor. Among good friends or family, unstructured rules can apply.