While smegma is not generally a sign of a sexually transmitted infection (STI), discharge from in and around the genitals can indicate certain infections. These include chlamydia, gonorrhea, and herpes.