Former doctor Giovanni Palumbo pleaded guilty in September to criminal harassment and had been in custody since being arrested at an awards show in Canada in March, where he showed up with a greeting card to give to Twain.
Tuesday, Palumbo was sentenced to three years of probation. He is not allowed within .5 miles of Twain, her family or any of her staff members. He is also not allowed to contact her or communicate with her and has been ordered to continue counseling.
Palumbo's attorney says his client has a mental health issue.
Twain previously testified by video link and described the numerous lovelorn letters Palumbo had mailed to her homes in Ontario and Switzerland and discussed the feelings of fear and vulnerability conjured by his unwanted visits.
He was seen at her family cottage, her grandmother's funeral and at the Juno Awards in March.
Palumbo used to work as an assistant surgeon but has since lost his medical license.
The Associated Press contributed to this report.