You just let Mac Mail configure the account for you like normal. Using two-factor authentication on the Comcast account has no effect on a desktop client like Mail, or any other.
I am not a Comcast Employee. I am a Customer Expert volunteering my time to help other customers here in the Forums. We ask that you post publicly so people with similar questions may benefit from the conversation. Was your question answered? Mark the post as Best Answer!