The defendant was arrested in August after eight months of offending, which his counsel Andrew Dawson said was exceptionally straightforward to commit.
"For someone who knows what they're doing with a computer, a few clicks and there [the drugs] are," he said.
It was "relatively unsophisticated", Judge John Macdonald said.
During the eight-month period, Customs intercepted eight packages — containing a total of 115.5g of the class B substance — destined for Clarke's Dunedin home.
However, several consignments slipped through the net.
Clarke received 40g of MDMA, which he sold at $160 to $200 a gram.