Federal officials say Christian Lopez, a New Haven man, has been sentenced to seven years in prison for trafficking large quantities of fentanyl.