Relax your lips and drop your jaw significantly. The tongue tip lightly touches behind the bottom front teeth and the back part of the tongue presses down a little to create more dark space in the back of the mouth.

Americans pronounce optimism as AHP-tuh-mih-zuhm (/ˈɑptəˌmɪzəm/). Stress falls on the first syllable — keep everything else short and quick. You'll hear it in sentences like "Consumer confidence indices suggest cautious optimism among households".
Record yourself saying "optimism" and play it back. The mic stays on your device — nothing's uploaded.
4 syllables, 9 sounds. Tap a syllable to jump to its row, then explore each sound's mouth shape and how it's made.
Relax your lips and drop your jaw significantly. The tongue tip lightly touches behind the bottom front teeth and the back part of the tongue presses down a little to create more dark space in the back of the mouth.

Press your lips together to stop the air, then release. No vocal cord vibration.

Click any sentence to see the full breakdown — every link, every reduction, every flap-T.
The textbook way isn't wrong — it's just not how anyone actually says it.
In "optimism", the "t" is not released — the articulators get into position but hold without the burst of air. Air stops but there's no release burst — the articulators hold position.
In "optimism", the short unstressed vowel before "m" disappears — the schwa is absorbed and the "m" becomes the syllable nucleus on its own. Schwa is absorbed — consonant becomes the syllable nucleus.
Stress falls on the first syllable, not the others. Stretch AHP — keep everything else short and quick.
Don't pronounce the first syllable too fully. The unstressed syllable reduces to a schwa — the lazy "uh" sound — in casual speech.