If you are writing to someone who has a doctorate or medical degree, use the abbreviated form: "Dr." However, for other titles, such as professor, judge, rabbi, etc., write out the full title and capitalize it. For example, your salutation in a letter to a judge would be, "Dear Judge Barnard." Or, if your correspondence was with a rabbi, you might write, "Dear Rabbi Williams."
When you know the recipient’s name, sign it “Sincerely yours” or just “Sincerely”, or in the US “Yours truly” is acceptable. Don’t try anything more cutesy or friendly unless a) you know the recipient quite well and are certain you can be informal without seeming disrespectful, or b) you have a “trademark” letter ending that’s part of your public persona (and the talent and popularity to pull it off). Signature and printed name: Signing your name is a minimal assurance that you stand behind what was written.