Benetton Treviso prop Ivan Nemer has been suspended until June after giving team-mate Cherif Traore a rotten banana in the club's Secret Santa gift swap.
The Italian Rugby Federation (FIR) said Nemer must complete an awareness course and coach in an FIR scheme helping asylum seekers play rugby.
His future with the Italy national team will depend on his participation and completion of the training.
"I deeply regret what happened," the 24-year-old said in a statement.
"The stupidity of my gesture, the damage caused to a friend, the harm caused to my team, to my team-mates, to the country I represent and to the game I love.
"Racism does not and will never play any role in my life, just as it should not play any role in the lives of any of us."
Following the incident in December, Traore, who was born in Guinea but has lived in Italy since the age of seven, wrote on Instagram that he did not normally react to "racist jokes" so as not to make enemies.
Benetton Treviso's squad and Nemer apologised to Traore during a meeting at the club's training ground.