This is the answer to the question Is it possible to attach the wooden frame posts to the metal profile?
Use gaskets, as an option – paronite gasket.