A man has been sentenced to two years in prison for people smuggling