Preheat a panini grill. OR, heat a grill pan or cast iron skillet over medium heat.
Make the sauce by combining the ketchup, mayonnaise, sweet relish, and dried mustard in a dish; mix until well combined.
Prepare the sandwich by slathering a piece of rye bread with some of the sauce then top with pastrami, well-drained sauerkraut, and Swiss cheese. Add more sauce to the remaining piece of bread, if desired, then place on top of the sandwich.
Cook the sandwich by placing it in the preheated panini maker and cook for 5 minutes or until golden brown and crunchy.
For the stovetop, cook the sandwich in a grill pan or cast iron skillet over medium heat for a few minutes on each side until golden brown, warmed through, and the cheese is gooey. Side Note: You don't need to spread butter on the outside pieces of bread to make this sandwich crunchy. It's so much better for you too! Enjoy.