Clean the mushrooms and cut into slices. Dice the ham and finely chop the onion.
First fry the ham in the butter for 3 minutes, add the mushrooms and fry for another 2 minutes, now add the onion and fry everything, stirring occasionally, until the onions are translucent. Add the remaining ingredients and let everything simmer for 10 minutes.
In the meantime, preheat the oven to 200 ° C and cook the rigatoni al dente.
Put everything in a baking dish and cover with the cheese. Bake in the oven for 15-20 minutes until the cheese is golden brown.