1

Topic: Hosting email and websites on seperate servers

==== Required information ====
- iRedMail version: 0.8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04 LTS Server 32bit
- Related log if you're reporting an issue: n/a
====

Hi all, I'm after some clarification hopefully!

I have two servers, one to host email with iRedMail and one to host websites using Apache and virtual domains.

Could somebody more knowledge please confirm that I would be correct in doing the following:

Namecheap.com DNS pointing "@" and "www" (A Records) to the ip address of my webserver
Namecheap.com DNS pointing "mail" (MXE) to the ip address of my mailserver

I have an SSL certificate for mail.domain1.com  - all other domains access their email through mail.domain1.com


What I can't work out is, if this is correct, what happens when someone tries to access https://mail.domain1.com or https://domain.com/iredadmin if my websites are being pointed at the webserver? 

Am I overcomplicating it by doing this?!! I wanted to do it because there have been some DDoS attacks on UK-based VPSes recently and I would ideally like to host it seperately, so hopefully if one goes down, at least the other is still up.


Currently, I have a webserver which is sitting pretty, doing nothing (just has a 1:1 copy of websites and related databases) and all websites and email are being served by the single server.

Thank you in advance!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Hosting email and websites on seperate servers

randoof wrote:

Namecheap.com DNS pointing "@" and "www" (A Records) to the ip address of my webserver
Namecheap.com DNS pointing "mail" (MXE) to the ip address of my mailserver
I have an SSL certificate for mail.domain1.com  - all other domains access their email through mail.domain1.com

*) If you want to provide webmail on iRedMail server, you should point both A and MX records of "mail" to mail server.
*) If you don't want to provide webmail on mail server, you can setup webmail on webserver, and config webmail to use IMAP/SMTP server on mail server.

About iRedAdmin (httpS://domain.com/iredadmin/):
*) you can announce its URL to be httpS://[mail_server]/iredadmin/, then no httpS://domain.com/iredadmin/ at all.
*) Or, add a simple HTML file under httpS://domain.com/iredadmin/ to redirect all access to httpS://[mail_server]/iredadmin/.
*) Or, run iRedAdmin on webserver, but configure it to connect SQL/LDAP servers on mailserver. You can define them in iRedAdmin config file "settings.ini" (/usr/share/apache2/iredadmin/settings.ini).