I have a lot of flem in the morn, have had it for a few years, it goes away and comes back. I am a smoker so I am wondering if it's from smoking?

Could be. Smoking, amongst its many ill effects kills off the little hair like projections on the cells that line the windpipe so mucous and other airway secretions collect/pool in the lungs and are harder to cough up. So yes, smoking undoubtedly contributes to this type of problem. Simple sinus drainage is another common cause.