Maggots around the outside of the home can be controlled with PERMETHRIN. Spray all surfaces where you see them foraging.
Permethrin can be used inside the home too. Treat carpeting, under furniture and baseboards where you see them active.
Pantries and cabinets should be treated with FS MP AEROSOL. This aerosol comes with a crack and crevice tube which is suited for injecting the voids and spaces maggots like to use for pupating.