Dacryoadenitis occurs when there is swelling of the lacrimal gland, which is in the upper outer corner of the eye socket, Diaz says. This gland helps produce tears. If you have this condition ...