Viral infections such as mumps, flu, and others can cause swelling of the salivary glands. Other viral illnesses that cause salivary gland swelling include the Epstein-Barr virus (EBV), cytomegalovirus (CMV), Coxsackievirus, and the human immunodeficiency virus (HIV).