A Boston man who posed as a lawyer to steal more than $30,000 from his victims will spend up to the next three years behind bars, according to the Suffolk County district attorney.

David Koraca, 48, who also goes by the alias David Corazza, was also sentenced Wednesday to three years probation after pleading to charges including unauthorized practice of law, larceny and forgery.

During his probation, Koraca is barred from representing himself as either an attorney or a military veteran and from using any alias. He must also pay restitution to his victims, obtain legitimate employment, remain drug and alcohol free and undergo mental health treatment.

"This was a case of outright deception," District Attorney Daniel Conley said. "The defendant deliberately held himself out as an officer of the court and swindled the people who trusted him."

Koraca, using the alias David Corazza, opened a law office with rented space at One International Place in Boston’s Financial District and virtual offices in New York and London, according to Conley. However, Koraca never graduated from law school and was not authorized to practice law in Massachusetts or elsewhere.

Koraca also falsely presented himself as a graduate of Harvard Law School, a childhood friend of Mark Walhberg who served as the actor’s personal attorney, a captain of the U.S. Army and Silver Star recipient, and a specialist in legal cases involving the recovery of artwork stolen by the Nazi regime.