Hello welcome to 'Ask A Doctor' service.
I have reviewed your query and here is my advise.
You didn't mention your age or obstetric history.
According to your description, if we exclude infection, better to rule out the possibility of rectovaginal fistula
Which can be seen in conditions like Crohn's disease or other inflammatory bowel diseases. In case of parous lady, injury
during child birth, surgeries in pelvic areas should also be considered. As your problem is recurring, you better consult your Gynecologist once, get examined. By clinical examination and ultrasound
the exact cause of your problem can be identified and treatment can be planned accordingly.
Hope I have answered your question.
Let me know if I can assist you further.