Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th December 2013, 13:52
ircf ircf is offline
Junior Member
 
Join Date: Feb 2011
Posts: 22
Thanks: 3
Thanked 6 Times in 4 Posts
Default Scalable mail architecture with ISP Config 3 ?

Hello,

Our company actually uses ISP Config 3 to admin a single mail physical server for about 600 domains and 1000 mailboxes :
Server : Linux Debian Squeeze with ISP Config 3
Ram : 16GB
CPU : 2
HD : 1TB

We plan to reach a maximum of about 2000-3000 mailboxes in the years to come, so we would like to migrate to a more important mail architecture to prevent failures and to improve QoS (in particular ensure to keep short delays in receiving and sending mails).

After having read several articles such as this one we look forward to install the following architecture (on virtual machines) :
- 1 MX/smtp-in (local relay only) server, RAM 8GB, 2CPU, HD 0.1TB
- 1 pop/imap/webmail server, RAM 8GB, 2CPU, HD 1TB
- 1 smtp-out (authenticated relay only) server, RAM 4GB, 2CPU, HD 0.1TB

Each server would run Linux Debian. RAM/CPU/HD are about the same as our current mail server for price reasons, we will be able to increase those thanks to the cloud

Here are my questions :

1. Our setup is (on will) much more simple than the one presented on the article, because our company does not need to have a huge mail architecture, we just want a more robust and a "lightly" scalable architecture. Is this architecture correct ? Any suggestion is welcome

2. We plan to install ISP Config 3 only on the pop/imap/webmail server and to setup a MySql master/slave replication between this server and the two others, so that the smtp-in postfix server could use local lookup tables and the smtp-out postfix server could use local mysql table-based authentication. Is this right ? Or should we install ISP Config on each server ?

3. If (after a few years) we want to install one more pop/imap/webmail server, then how would the MX/smtp-in server know to which pop/imap server send mails ? Can this be done "directly" using ISP Config tables (for example using the field server_id ? Or should we use tools like Perdition ?

Thank you

EDIT :

4. In the years to come, we will surely add one more MX server and do DNS balancing. We noticed there are two solutions : Use a single IP address (ALIAS balancing) or use distinct IP adresses for each MX server (MX balancing). We thought the simpler solution would be doing ALIAS balancing because this would only imply adding an alias once for all domains, instead of having to define a new MX record for each domain. Is that correct ? Are there inconvenients to ALIAS balancing against MX balancing ?

Last edited by ircf; 17th December 2013 at 13:58. Reason: one more question
Reply With Quote
Sponsored Links
  #2  
Old 18th December 2013, 15:05
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,216 Times in 4,089 Posts
Default

I recommend to install ispconfig on all nodes and use the internal ispconfig mirroring features. Thats much more stable and fault tolerant then using a mysql master/master replication.

I dont think that such a complicated setup is nescessary, in ispconfig you can have clusters of mailservers were each server is able to provide smtp, pop3 and imap service for all a accounts. if you dont want that a server provides imap or pop3, you can close that port in the firewall off course. all you need is a redundant storage for the maildirs (SAN) and ispconfig on all nodes of the cluster. the first node is the master, all other nodes are configured as mirror servers. if one server fails, even the amster, then it will not affect the other nodes.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 18th December 2013, 15:26
ircf ircf is offline
Junior Member
 
Join Date: Feb 2011
Posts: 22
Thanks: 3
Thanked 6 Times in 4 Posts
Default Thank you

Thank you for your answer

I understand that you recommend to separate our customers on many servers, every server having a complete mail setup.

The redundant storage is important as well, any idea/article where I could find informations about how to setup redundant storage for maildirs please ?

Thank you again for your help.
Reply With Quote
  #4  
Old 18th December 2013, 15:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,216 Times in 4,089 Posts
Default

You dont have o separate the customers on the servers. on a mirrored cluster, each mailbox is available on each server. So you can decide then if you give each customer a specific hostname to connect to for pop3 / imap / smtp to split them over the servers or you use round robin or you use some kind of loadbalancer.

Regarding mail storage, some options are discussed here: http://www.howtoforge.com/forums/showthread.php?t=64326
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 18th December 2013, 17:17
ircf ircf is offline
Junior Member
 
Join Date: Feb 2011
Posts: 22
Thanks: 3
Thanked 6 Times in 4 Posts
 
Default About mirroring

That's OK, we are gonna follow your advice and setup 2 complete mail servers mirrored by ISP Config and maildirs mirrored by GlusterFs like in your excellent tutorial.

Thank you again Till, you really are fantastic ! ^^
Reply With Quote
Reply

Bookmarks

Tags
architecture, isp config 3, mail, postfix, scalable

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 22:58
ISPconfig 3 some users cannot send email to outside Rockblade Installation/Configuration 7 29th April 2010 01:40
Postfix + postfixadmin = SMTP errors... Rashef Server Operation 4 25th June 2009 16:12
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 09:50
Spamsnake - Problem with spamassassin, FuzzyOcr and MySQL debuguser HOWTO-Related Questions 6 16th September 2008 18:37


All times are GMT +2. The time now is 01:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.