In my Optics textbook, Rayleigh scattering is introduced as producing the blue color of the sky by predominantly scattering short wavelengths because of the well-known $\lambda^{-4}$-dependency. It is further explained that in dense optical media (e.g. glass, but also the lower atmosphere), destructive interference occurs in all except the forward direction, thus no scattering sideways occurs. Only in less dense media in which the mean free photon path length exceeds one wavelength (or period), light is incoherently scattered to the sides because the net interference cancels out.
It is concluded, that Rayleigh scattering occurs only high up in the atmosphere. This is supported by the fact that horizontally far away objects close to the surface, e.g. mountains, are not red (like the sunset as blue photons are scattered out of the line of sight). So obviously there is no or only minor Rayleigh scattering close to the surface.
So far so good. But now is said that in the lower and middle atmosphere the air is too dense to allow Rayleigh-scattering, so that the blue color must have another reason, and that's density fluctuations (found by Einstein and Smoluchowski, but not further discussed). I don't understand this since the previous finding that blue Rayleigh-scattering sideways occurs only high up in atmosphere seems to match observations (no red mountains).
So, in which altitude is the blue light due to Rayleigh scattering produced? And what is the role of density fluctuations? Are they needed, or is the precondition (low density, so that mean free path length $> 2\pi$ ) sufficient?
Note, there is a similar question here Where in the atmosphere is the blue light scattered? (and I found also some others, but none was solving my problem). 1) It's still unclear to me in which altitude the blue photons are scattered (sideways), and 2) either high altitudes (thin air) is enough, which fits to the explanation of no red mountains, or density fluctuations are required in thicker air, but then sideways Rayleigh-scattering occurs in low altitudes and mountains would be red...