We analyze the proximity effect in a superconductor/ferromagnet (S/F) structure with a local inhomogeneity of the magnetization in the ferromagnet near the S/F interface. We demonstrate that not only the singlet but also the triplet component of the superconducting condensate is induced in the ferro...