Molds on the jar’s neck are an indication of mayo spoilage. You might also feel the putrid or acidic smell when it goes bad. If there is nothing of this kind, you can use the mayo. Do check the label for instructions and expiration date.