Polycondensates containing more than one epoxy group per molecule of polyamines with epihalohydrins or precursors thereof