POP3, IMAP, where is this specified; in the email program or with the provider?

If an email account is operated as an IMAP account, is this a setting with the provider or in the email program on the computer? Background: I had previously set up my account as a POP3 account in Outlook, and then later switched to Thunderbird and set the account there as IMAP. I somehow thought…