welcome to health care forum,
Both females and males produce smegma
. In females, it collects around the clitoris
and in the folds of the labia minora; in males, smegma is produced and can collect under the foreskin.
in males, smegma helps keep the glans
moist and facilitates sexual intercourse by acting as a lubricant.
so nothing to worry, just relax and maintain hygiene....