Drain the sauerkraut (drained sauerkraut should weigh 450g / 16 oz), combine in a medium pot with dried mushrooms, bay leaves, and allspice berries. Add water, enough to cover the sauerkraut and mushrooms. Cook, partially covered, over medium heat for about 45 minutes or until the sauerkraut is soft.
Cut fresh mushrooms into slices, dice the onions.
Heat 2 tablespoons of oil over medium heat in a big frying pan. Cook the chopped onion with caraway seeds for about 10 minutes, stirring from time to time, until soft and translucent. Add marjoram, cook for another minute, transfer to a plate.
Increase the heat to high, add another tablespoon of oil and chopped mushrooms. Don’t stir for the first 2-3 minutes or until the mushrooms are browned at the bottom, then stir and cook until the mushrooms release water. Cook until it evaporates, stirring from time to time, then cook until nicely browned, transfer on a plate. Take the pan off the heat.
Drain the cooked sauerkraut with mushrooms (you can reserve the liquid, it can be used to enhance the flavor of many soups, including Polish Christmas Eve Beet Soup). Discard bay leaves and allspice berries.
Add the cooked sauerkraut with mushrooms, pan-fried cremini mushrooms, and sauteed onions to a food processor bowl. Pulse several times to chop finely (but not to a paste consistency). You can also chop it finely with a knife.
Season the filling with salt and pepper, to taste.
Set aside to cool then put in the fridge. The filling must be cold before you put it on the dough (important).