The smell test is a reliable method to assess the safety of canned tomatoes. A fresh can of tomatoes should have a clean, slightly acidic tomato aroma. If you detect sour, yeasty, or otherwise off odors, this could indicate spoilage or fermentation.
Sour or pungent smells can be indicative of lactic acid bacteria activity, while a yeasty smell might suggest the presence of yeast fermentation.