Particles inside mesh

Hi guys,
I want particles to spawn inside a given shape and be destroyed when leaving the shape. what would be the smartest approach to this?

setting up individual collision planes looks like an option, but that means readjusting for every modified instance in a level. sounds inefficient …?