If the taxpayer is a bona fide resident of Guam or the Virgin Islands, they should mail Form 8822 to the appropriate address for their territory instead of the IRS. The addresses can be found on the IRS website or by contacting the territory's tax agency.