For this sort of doggy hygiene problem, male or female, a daily wipe down with a wet flannel dipped in a 'baby bath' solution ( no rinsing ) can help.
I keep a bottle ready made up, & baby wipes, handy in the kitchen.

Thats a good idea Margaret.....Leo could sometimes benefit from this