Hello!
The answer here would be 4. “Whom” is used to refer to an object of a preposition or verb. Since you are addressing the person, you would use “whom” and you (the subject) are doing the greeting!
Hope this makes sense. Comment if you have any questions.