I mean, I studied Comp Sci at university in 1997 and we were given IMAP credentials
You can use Maildir with IMAP. mbsync will do it fine. Dito with SMTP and msmtp.