Tables inbound_email and outbound_email.
Iโve done that thing of configuring accounts from the database myself, the buggy UI is just too much hassle.
If you need to peek inside the field stored_options, just paste that content in this site: https://www.base64decode.org/