You really need to train your dog, you need to set up the situation with a patient friend to help you.
Sit in your lounge with your dog, when patient friend rings the door bell, you control your dog! he must not be allowed to get excited or run around, you do not answer the door until the dog is calm, if he gets excited when friend comes in, friend must immediately go back out, the two do not come together until dog is quiet and relaxed. No visitor can be allowed to greet the dog in an excited manner, this is usually what starts the problem in the first place.
The door must remain closed until the dog is calm, nobody must "ever" greet your dog in an excited manner, just very calm and affectionate.
Look up dog training on you tube, lots of good advice.
Look up, Ian Dunbar, Cesar Milan.
There is no 5 minute cure, it takes time and patience and commitment but it pays off in the long run. Dop not shout at your dog or hit him.!!!!!!