A former U.S. Customs and Border Protection officer from Macomb County will spend six years in federal prison for distributing child porn.