A man who arranged for parcels containing firearms and bullets to be posted from America to West Yorkshire has been jailed.