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.
On August 19, police raided the man's home where they seized $1620.
The cash, Clarke admitted, was from his ecstasy sales.
"The defendant admitted the facts... and said he imported the drugs to make easy money," a police summary said.
If all 155.5g had made it to Clarke, he could have made up to $31,100, police said.
Dawson said the illicit enterprise had been the result of his client's association with "a particular group of people".