Does anyone know how to get a musty smell out of pillows and linens?
Use a white vinegar and water solution!
I agree with MCW. Wash in warm water and use vinegar instead of detergent. Or use detergent and vinegar instead of fabric softener. Dry in the sun if possible.
I simply spray mine down really good with Febreze then set them outside in the sun for the day. By the time the sun goes down, they are fresh as new again!
You also might try washing with detergent and bleach. Hang the linens outside in warm or hot sunshine.
Make sure you dry the pillows in your dryer with tennis balls or drying balls. A new (very clean) tennis shoe would also work to fluff up the pillow. After the pillow is dry, hang outside in the sun to freshen even more.