Here's what I've got going on:
- Vultr VPS running CentOS 8 (I have confirmed with tech support, SMTP is open )
- Apache, MariaDB
- Hosting two different websites with different domain names — so far! Planning to run more.
My goal: To be able to send and receive email from both domains (and any future domains) without paying anyone for the privilege to do so.
Incoming email I have set. I've got ImprovMX forwarding a catchall from *@domain.one to one Gmail account, and forwarding *@second.website to a different Gmail account. I just set up some MX DNS records et voilà— works perfectly.
Now if I want to set Gmail up with an alias to email from those domain names it needs an SMTP server username and password.
So my questions are:
- Is this something I can do using Postfix, Sendmail, or another mail server? Set it up just to send email (it doesn't need to receive) — and to work for both domain.one and second.website?
- Am I setting myself up for failure even just trying to do this with my own server? Is there a better option?