A generalization of the kubo—freed relaxation theory