A common problem, it's worse on the 321 for some reason. I heard that it's due to there being a small drain hole for the flight deck floor so that engineers and crew that are wet from walk-rounds in the rain don't leave puddles. This connects to the toilet vent - hence the bad smells. Our aircraft were supposed to have the problem fixed with a one way valve but we still get the smells sometimes.