The gang were arrested following concerns raised by worshippers at the FaizanE-Madinah mosque in Gladstone Street in meetings with the police.
Mosque chairman Abdul Choudhuri said he was pleased the men were behind bars - but said he thought the sentences would not act as a deterrent.
He said: “Anyone who does this should be put behind bars. We welcome this, but there are still people out on the streets selling drugs.
“It is a big concern - we are concerned about the younger generations, who may not un- derstand the dangers of drugs.
“I don’t think some of the sentences are long enough.
“If they are sentenced for two and a half years, they will be out within a year. We don’t know how much money they have made, or how many victims there are out there as a result of these actions.
“People selling drugs need to be behind bars for a long time to act as a proper deterrent.
“We are always talking to police about areas we are concerned about in the city. We have to try and take all the drugs off Peterborough streets.”