A condition in which the epididymis, the tube located behind each testicle that stores sperm prior to ejaculation, gets inflamed due to bacteria from a sexually transmitted infection or a urinary tract infection.