I am fixing a 6 mm aluminium bracket to a galvanised steel frame outdoors, near the coast, using M8 bolts. I have read that aluminium and steel in contact corrode each other, and also that stainless bolts in aluminium are even worse, yet I see both combinations used everywhere.
Which metal actually corrodes in each case, how do I judge whether a combination is acceptable, and what is the right way to assemble the joint so it lasts?




