Spin correlations for a classical linear magnet with exchange and single-site anisotropy energies