Hello and thank you for posting your health query on E health Forum.
From the history provided here, presence of foul smell in the anal canal or the perineum could be signs of an infection, which definitely needs medical attention.
In addition presence of infected hemorrhoids, fistula in ano, perineal fistulas also need to be ruled out.
You might consider getting yourself examined, as well as getting a stool examination done for ova and parasites. This will give a definitive diagnosis.
I hope you find my suggestion helpful.