Chemistry - Why do esters actually smell?
Solution 1:
Dissenter is correct about aromatic compounds and that the basic requirement for a compound to be detected by smell is for it to be volatile enough to reach the nose. This is why things like dry salt don't really smell like anything. Once they reach the nose, things become more complex.
Why many esters smell fruity while most thiols smell rather unpleasant is a rather interesting question. Just as most sugars taste sweet, many molecules that have structural similarities also smell similar. Humans have about 350 different olfactory receptors. These are G protein-coupled receptors that change conformation when they bind a compound and activate a signal pathway that is eventually sent to the brain for processing. However, since we only have 350 different receptors and there are far more than 350 odoriferous compounds, there is not a one-to-one mapping of receptors to compounds—there isn't an "acetone receptor". Instead, olfactory receptors have partial and overlapping selectivity. Each receptor type responds to more than one compound, thiols with a certain general shape, for instance, and different receptor types can respond to some of the same compounds. A given compound then has a more or less unique pattern of receptor activation. All this information gets sent to the brain and is processed into the perception of smell. Compounds that have similar structural properties activate many of the same receptors, so they smell similar.
Solution 2:
The term aromaticity originated with the discovery of unusually stable hydrocarbons that also happened to have strong smells. Many hydrocarbons smell, but not all are aromatic.
Nowadays, a compound being classified as "aromatic" has little to nothing to do with its smell and everything to do with its electron configuration. There are also non-aromatic compounds and anti-aromatic compounds. If we try to relate these to smell as well, what would an anti-aromatic compound smell like? Bad? But isn't that a little too subjective for science? Doesn't benzene smell "bad" too? Then why is it aromatic (i.e. unusually resistant to chemical change?) Why not anti-aromatic?
Esters smell partly because they exhibit weak intermolecular forces. This allows ester molecules to enter the gas phase and reach your nose. Esters don't exhibit intermolecular hydrogen bonding, unlike alcohols, for example. These are no strongly positively polarized hydrogens in esters to participate in hydrogen bonding. Consider for example ethyl butyrate, which smells like pineapples.
Most of the molecule resembles a plain aliphatic hydrocarbon! And we know these only exhibit weak van der Waals intermolecular forces. No wonder esters smell (good and bad) - they're volatile and reach our noses easily!