What does it mean when a dog drools a lot?

Dogs are in a habit of drooling, but if its mouth is foaming and its eyes are red, that means it has rabies.