A Malaysian court has sentenced the men behind the attack on a Malaysian-flagged products tanker to between 15 and 18 years in prison.

The eight Indonesians are alleged to have hijacked the 7,301-dwt Orkim Harmony (built 2009) on 11 June 2015.

Six of the pirates were sentenced to 15 years in jail, while the other two were handed 18-year jail sentences, a Malaysian Maritime Enforcement Agency official told AFP.

Noel