Cook the pasta a little harder than al dente. Quench and drain well.
Chop the herbs into small pieces. Add marjoram or oregano to taste.
Sauté the garlic in olive oil. Add all herbs. Then the peeled tomatoes from the can. Quarter the fresh tomatoes and add them to the pot. Let it boil well. Season with salt and pepper vigorously. If necessary, season with seasoned tomato paste or stir in approx. 125 ml of cream.
Grease a large baking dish with olive oil and fill half of the pasta into the dish. Place a third of the ham and cheese on the pasta. Pour in the remaining pasta, then the sauce and the cooked ham. Finally sprinkle the cheese on top.
In the oven at 180 ° C to 200 ° C for approx. 15 to 20 minutes.