Federal agents say social media sites and digital purchases facilitate deliveries to rural areas.

Fentanyl can no longer be considered a distant problem confined to big cities or interstate corridors; it’s already present in rural Iowa, touching farm families in quiet towns where many may assume they’re insulated from the nation’s deadliest drug.

But the days of meeting a dealer in a back alley or on a...