Flavors created during coffee processing as microorganisms break down sugars and organic acids. Desired: tropical fruit, wine-like complexity, sweetness. Undesired ("over-fermented"): vinegar, onion, rotten fruit.
That wine-like complexity in a natural processed coffee comes from controlled fermentation. If it smells like vinegar, the fermentation went too long or got too hot.