Waterproof your chimney and do not let rain water seep into your chimney. The waterproofing will prevent long-term corrosion and masonry damage.
Get your chimney flashing inspected and maintained from time-to-time. By keeping the flashing functioning, you can prevent rainwater and snow melt from entering your home and damaging the walls and ceilings of your home.