I have many email accounts in my Mail app, lets say 15. Entering the necessary values and passwords etc. for each of these is a huge pain. Is it possible to somehow "save" all of those accounts and transfer them to a new Mac, so I don't need to do it manually? This would include icloud mail, gmail, exchange, etc. accounts and passwords.
Note that in this case I am using macOS Sierra. Also note that I am referring to transferring the accounts login information and email server info to receive and send emails, and not referring to transferring actual emails.