Valencia president Amadeo Salvo says Rami will move to Milan on-loan.
"There is still nothing closed either with the player or with Valencia," he told reporters in Spain.
"Logically we are moving closer in positions, but we know that in the world of football, anything can happen.
"Is this a good solution? It depends on how you look at it. The best option is for Valencia to keep hold of all its good players and for none of this to have happened.
"Within the situation, we think that this is a good operation.
"I think that all being well it will be [completed] soon, but I cannot specify as to when.
"Timing is unpredictable because it does not depend on us but on many factors, the player, the other club, and if terms are accepted by both the player and the club."
For breaking stories and all the great banter like us on Facebook: facebook.com/tribalfootball