Okay, webmail logsin. Email is connecting, but I keep getting SMTP error and unable to send any emails now. Also, no emails are incoming.
Update: I restarted the server. Now SMTP/IMAP works. I had to enable mariadb on boot and now it works fine.
Thanks again @sahsanu & I will make sure not to make such mistakes again in the future. My emails are the main thing for me.