The salivary glands are responsible for producing saliva to help you digest food and protect against infections. There are three pairs of major salivary glands; the largest of those, the parotid glands, are found just in front of each ear.