Help with Email

Hello everyone, I’m a newbie to server management and have recently switched from a shared server to a dedicated VPS. I have a VPS (“webserver”) on UpCloud running CyberPanel and hosting my websites and another UpCloud VPS that’s functioning as an email server (“mailserver”) and it’s running iredmail. My mailserver is working great, no issues there. My struggle is getting a webpage contact form to send from my webserver. I’m not sure how to set it up to either use my mailserver or if I need to set up email somehow on my webserver. Hopefully this wasn’t too confusing.

Also, if anyone has a reference book for server management that they can recommend, I’d greatly appreciate it.

Be well,