Topic: Setup with multiple domains

I'm about to move two websites that have been running separately to one VPS, coming from Shared Hosting. I've successfully installed everything from iRedMail to Apache Virtual Hosts, but I'm unsure about something.

Like I said, I will be running two websites (two domains) on one IP. I use Apache VirtualHosts to keep them apart for the outside world. But can somebody explain to me how I can use iRedMail to provide both domains with email addresses?

For example: what do I use as hostname?

I've also taken a look in the iRedMail admin panel and it allows me to add domains. Can I just add both my website domains there and start adding users (making email addresses)? Of course I've also Googled this, but I can't really find what I'm looking for.

Can somebody help me out? In short: I'm looking for a way to configure iRedMail so that it can supply both my domains with their corresponding email addresses.

Re: Setup with multiple domains

Tommiiee wrote:

But can somebody explain to me how I can use iRedMail to provide both domains with email addresses?

To server multiple web site, you need virtual host in Apache. But for virtual mail domains, just add mail domains and users with iRedAdmin and update your DNS settings to point MX record to this server.

Re: Setup with multiple domains

ZhangHuangbin wrote:

Tommiiee wrote:

But can somebody explain to me how I can use iRedMail to provide both domains with email addresses?

To server multiple web site, you need virtual host in Apache. But for virtual mail domains, just add mail domains and users with iRedAdmin and update your DNS settings to point MX record to this server.

Yes, I have already setup Apache virtual hosts.

So all I have to do is add 'domain1.com' and 'domain2.com' (my Apache virtual hosts) to the domains in the iRedMail admin panel, create users, point the MX record to my VPS and I'm good to go?