The Maier-Schmid theorem for infinite groups