It’s not too bad. Take a look at iredmail- free version makes it very easy. https://www.iredmail.org/ But even just setting up dovecot/postfix/etc manually ain’t too bad. There are a ton of guides out there. Just google “set up own Linux email server”.