Notes (Mac) can't connect to IMAP account, Mail can
Notes accounts are usually associated with email accounts like iCloud, gmail, yahoo etc.

if you have an iCloud/iTunes account, log in to it under System Preferences-->Internet Accounts

Click the checkbox next to notes.

Open Notes, then drag your old notes into the iCloud account on the left.