Man defrauded Dunedin company of $5 million