What are the preferred conditions for bacteria that help produce socially useful pheromones?

and

What is the preferred conditions for bacteria that produce bad body odour?

Or... where and what should be the words to search for research papers to find out?