The X2 line filter capacitor failures I've seen didn't "release goo", as a
faulty electrolytic might, but they crack and release an awful-smelling
vapor, with occasional signs of heat or even brief flame.
These capacitors are designed to "heal" in the event of an internal short
by melting away the metal nearest the short, and some of the dielectric.
The melting clears the short and life goes on--most of the time. When too
much melting occurs, the capacitor can overheat and crack its case or even
explode. The resulting vaporization of the dielectric impregnant is what
produces the awful, and persistent, odor.
After a catastrophic failure, the capacitor fails open, though the power
supply fuse is usually blown in the process.
Replacement of the fuse is, of course, required, and replacement of the X2
cap is also a good idea, though the supply will work fine without it.
The line capacitor is both a spike attenuator and an interference filter,
so it's worth having for protection, even though it's not necessary for the
power supply to function.
I don't recommend wholesale replacement of capacitors "just because". Most
capacitors will have very long lives, and replacing soldered-in components
always carries some risk.
Electrolytic capacitors are most likely to fail, usually by drying out,
resulting in increased Equivalent Series Resistance and/or decreased
capacitance. But even in the case of electrolytics, my motto is "if it
ain't broke, don't fix it".
--
-michael - NadaNet 3.1 and AppleCrate II:
http://michaeljmahon.com