Michael Coats, who is a former pupil of George Heriot's School, was caught red-handed when police mounted a sting operation on a postal box after intercepting the package.
The 28-year-old bodybuilder, from Relugas Place in Blackford, admitted being concerned in the supply of the class C drug, despite insisting he thought he had been picking up his order of steroids.
Advertisement
Hide AdAdvertisement
Hide AdHe claimed he had not ordered the diazepam, worth up to 6400, and instead blamed his friend, Alexander Robb, who rented the box at Mailboxes Etc in Morningside Road.
Coats pleaded guilty during a hearing last month.