A 50-year-old Dillon man received a lengthy federal prison sentence for trafficking in large quantities of methamphetamine and fentanyl, the district of Montana U.S. attorney's office said last week.