Here are a few things you can do to maintain a healthy chimney.
 Use only seasoned wood
 build smaller hotter fires that burn more completely
 never burn quantities of cardboard, wrapping paper, trash or Christmas trees.
 On your woodstove use a flue thermometer so you can make adjustments to produce a hotter burn
 have you chimney inspected at least once a year and cleaned as needed