thanks for using healthcare magic.
i will be glad to be of assistance.
from your description, i have come to a possible diagnosis of a sebaceous cyst
that you have.
this is a cyst which can secrete sebum , thats what you have experienced in terms of white smelly material coming out.
it is now probably infected, it will now need a course of an oral antibiotic called tab. erythtromycin for 7 days.
also once the infection subsides, it will be important to get it removed out surgically. thats the modality of treatment for its cure.
hope my recommendations were useful to you. please let me know your queries.