Spin-lattice relaxation in rare-earth salts