I brought up my daughters to greet people vocally and to say their goodbyes, but that they didn’t have to accept any physical affection. When they were older I taught them to offer a handshake proactively and to always return every compliment with a “you too!”.