Export Internet Account And Mailboxes

Yea it's called a cloning program or important from a Time Machine back. Also if you have both connectioned up you could use /Applications/Utilities/Migration Assistant to import certain settings
Migration Assistant import all applications, you cannot choose only Apple Mail and Internet Account.
My scope is only to export these 2 objects and afterwards to reimport again in El Capitan in fresh installation.