I got tired of my four channel relay getting kicked around. My workbench also has an aluminum plate mounted to it so you can imagine how hard it is to do electronics on top of that.
So... I created an enclosure for it. My kids have the Snap Circuit Toys and so I designed this to use the Snap Circuit base board as my protoboard. It was modeled off of the Snap-Ino Arduino Module.
You may need to adjust this design to accommodate the layout of your relay but all the cutouts are there. Once it is printed, the relay can be dropped in. The posts can be deformed to make the mount permanent or leave it as is. It will wiggle a tiny bit but it can be removed easier in the event of failure.
See also my NodeMCU ESP8266 Snap Circuit Enclosure.
Some of the fits are a little tight and depending on your printer you will probably need to clean up the fits with an exacto knife. Be careful of the lid's tabs as they can be weak and break off if you are too aggressive.
The screw hole for the lid is an arbitrary size. I used a screw I had laying around from a plastic toy I took apart earlier. Custom drilling may be required to fit your application.
The four holes on top are sized to accept 2.75mm filament. I inserted clear filament into this hole and adjusted the length to fit the length from the board to the top of the lid. This way it acts like a fiber optic and brings the light up to the top. It kind of works but I didn't spend too much time polishing the ends which would probably help.
A lid decal or sticker would be helpful to keep track of the pins. If somebody finds this print useful and makes a label could you share your label. I would gladly add it and attribute credit.