Mechanical stress governs the dynamics of viscoelastic polymer systems and supercooled glass-forming fluids. It was recently established that liquids with long terminal relaxation times are characterized by transiently frozen stress fields, which, moreover, exhibit long-range correlations contributing to the dynamically heterogeneous nature of such systems. Recent studies show that stress correlations and relaxation elastic moduli are intimately related in isotropic viscoelastic systems. However, the origin of these relations (involving spatially resolved material relaxation functions) is non-trivial: some relations are based on the fluctuation-dissipation theorem (FDT), while others involve approximations. Generalizing our recent results on 2D systems, we here rigorously derive three exact FDT relations (already established in our recent investigations and, partially, in classical studies) between spatio-temporal stress correlations and generalized relaxation moduli, and a couple of new exact relations. We also derive several new approximate relations valid in the hydrodynamic regime, taking into account the effects of thermal conductivity and composition fluctuations for arbitrary space dimension. One approximate relation was heuristically obtained in our previous studies and verified using our extended simulation data on two-dimensional (2D) glass-forming systems. As a result, we provide the means to obtain, in any spatial dimension, all stress-correlation functions in terms of relaxation moduli and vice versa. The new approximate relations are tested using simulation data on 2D systems of polydisperse Lennard-Jones particles.