Heat oven to 350ºF.
Put the oil and flour into a 5- to 6-quart cast-iron Dutch oven and whisk together to combine. Place on the middle shelf of the oven, uncovered, and bake for 1 1/2 hours, whisking 2 to 3 times throughout the cooking process.
While the roux is baking, de-head, peel, and devein the shrimp. Place the shrimp in a bowl and set in the refrigerator. Place the heads and shells in a 4-quart saucepan along with the water, set over high heat, and bring to a boil. Decrease the heat to low and simmer until the liquid has reduced to 1 quart, about 1 hour. Remove from the heat and strain the liquid into a container, discarding the solids.
Once the roux is done (it will be a brick red-brown), carefully remove it from the oven and set over medium-high heat. Gently add the onions, celery, green peppers, and garlic, and cook, moving constantly until the onions begin to turn translucent, about 8 minutes. Add the tomatoes, salt, black pepper, thyme, cayenne pepper, and bay leaves, and stir to combine. Gradually add the shrimp broth while whisking continually. Decrease the heat to low, cover, and cook for 35 minutes.
Turn off the heat, add the shrimp and sausage, and stir to combine. Add the filé powder while stirring constantly. Cover and allow to sit for 10 minutes prior to serving. Serve over rice.