Curious whether this is typically APU or primary engine-related. (I find that the APU fumes are noticeable when the rear doors are open during loading.)
Exhaust, which is what you're smelling when the doors are open, seems like it'd be much less of a problem. Any fumes will be much more dilute from all the uncontaminated air pushed by the fan through the bypass ducts, and of course diffusion into the environment. Not to mention probably decomposed by the temps in the combustion chamber. The bleed air though comes from the engine core's compressor stages (before combustion), and it's the only source of air for the cabin, so if it's contaminated you won't have any dilution effect.