Hi there ~
I understand your concern. I am glad you bring this up in a public forum. What you have is secretions from glands surrounding the glans
of your penis. I hope you have good sexual hygiene and clean your genital area by pulling the foreskin back everyday. This should prevent any balanitis
which is infection and inflammation of the skin surrounding the foreskin and prevent the bad odor as well. I hope this helps.
Take care and have a lovely day !