  In this paper we discuss and review several aspects of the effect of boundary
conditions and structured environments on dispersion and resonance interactions
involving atoms or molecules, as well as on vacuum field fluctuations. We first
consider the case of a perfect mirror, which is free to move around an
equilibrium position and whose mechanical degrees of freedom are treated
quantum mechanically. We investigate how the quantum fluctuations of the
mirror's position affect vacuum field fluctuations for both a one-dimensional
scalar and electromagnetic field, showing that the effect is particularly
significant in the proximity of the moving mirror. This result can be also
relevant for possible gravitational effects, since the field energy density
couples to gravity. We stress that this interaction-induced modification of the
vacuum field fluctuations can be probed through the Casimir-Polder interaction
with a polarizable body, thus allowing to detect the effect of the mirror's
quantum position fluctuations. We then consider the effect of an environment
such as an isotropic photonic crystal or a metallic waveguide, on the resonance
interaction between two entangled identical atoms, one excited and the other in
the ground state. We discuss the strong dependence of the resonance interaction
with the relative position of the atomic transition frequency with the gap of
the photonic crystal in the former case, and with the cut-off frequency of
waveguide in the latter.
