The 124th-ranked Italian was also fined $60,000 after being found guilty of making 120 bets with an online bookmaker from Nov. 2, 2006 to June 12 this year.
Di Mauro, who faced a maximum penalty of three years, is banned from Nov. 12 to Aug. 12, 2008.
The investigation found that none of the bets were on his matches or that any results were affected.
"This does underline our policy of players and staff wagering on tennis," ATP president Etienne de Villiers said. "If we do not have a sport with integrity, we do not have a sport.
"We recognized in 2003 the threat of online betting. We take this really seriously."
In 2003, the ATP signed an agreement with online betting company Betfair to share information over suspicious matches.