LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-06-2006, 09:08 AM   #1
saf
LQ Newbie
 
Registered: Mar 2004
Location: Bucharest
Distribution: Slackware 10.2
Posts: 26

Rep: Reputation: 15
Two (or more) mail servers for one domain


Hello

I would like to build a somewhat unusual setup.
It involves having multiple locations, a single mail domain and two or more linux mail servers (the distro is slackware, but for the mail servers i'm opened to suggestions - sendmail/qmail/postfix).
What I would like to do is to have a backup MX, in case the first one fails, but also to have users send and receive mails from the server which is "closest" to them (and is available, of course).
Also, the mail server should support per-user and per-group quotas (this is not a requirement, but it would be a very nice feature to have).

I don't know if I fully explained the situation, please reply if there are further clarifications needed.

Thanks
 
Old 12-06-2006, 03:36 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Bear in mind that sending and receiving mails are separate functions - the users will pick up mail from a POP or IMAP service. IIRC, Cyrus IMAPd supports quotas, and can be clustered. For SMTP I'd recommend Postfix or Exim - qmail is not open source, and Sendmail is harder to manage without any benefit.

The geographical location of the servers isn't really relevant - it's only the speed and reliability of the connection between the client and the server that matters. So whilst you could write a script or application for clients that tests the connection speeds and switches to the fastest server it's probably not the most useful way to address whatever concern is involved.
 
Old 12-06-2006, 03:44 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Also in almost all real world setups with MX or Mail servers, you should always have a primary and secondary MX server. If the first fails, all mail is routed to the secondary server. Now setting it up beyond that depends on your own needs. Some people cluster their mail servers so they share the final location where their users pick up their email, etc. You could load balance them or whatever, but even if you don't cluster and I don't see a need to have users use the "closest" server which shouldn't even matter, a secondary MX record to point mail to if the first fails is always a good thing to have.
 
Old 12-07-2006, 12:08 AM   #4
saf
LQ Newbie
 
Registered: Mar 2004
Location: Bucharest
Distribution: Slackware 10.2
Posts: 26

Original Poster
Rep: Reputation: 15
I could go with clustering the servers, but I would like to minimize the duration and traffic in the moment the user presses the send/receive button (since a user could download 2~300MB of mails, it's preferable to download it from a server in LAN instead of a 512kb internet connection).
I could separate the users by defining a group for the second location and forwarding all mails from mx1 to mx2, but the problem remains with roaming users: what if an user from location 2 takes his/her notebook and goes to location 1? The DNS will point him to mx1, but all the mails are on mx2.
Furthermore, doesn't clustering the servers require a "master server"?
 
Old 12-07-2006, 03:44 PM   #5
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Quote:
Originally Posted by saf
I could go with clustering the servers, but I would like to minimize the duration and traffic in the moment the user presses the send/receive button (since a user could download 2~300MB of mails, it's preferable to download it from a server in LAN instead of a 512kb internet connection).
If you use IMAP then the clients may only download the headers for each mail, so in practice this isn't really an issue. I suspect that you are overthinking this - mail software is efficient enough that a single server can support hundreds of users, and a regular dial-up connection is enough for clients, unless somebody sends very large attachments. Any mail server software will enable you to set whatever maximum mail size you feel is appropriate.
 
Old 12-07-2006, 11:13 PM   #6
saf
LQ Newbie
 
Registered: Mar 2004
Location: Bucharest
Distribution: Slackware 10.2
Posts: 26

Original Poster
Rep: Reputation: 15
It's not about overloading the server, it's about overloading the internet connection.
 
Old 12-09-2006, 02:40 PM   #7
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
I think that you need to investigate IMAP in more depth: with an IMAP facility the mail remains on the server, and the clients don't download mail data over the connection in the way that happens with POP.
 
Old 12-10-2006, 08:56 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Perhaps a webmail solution would work best in this situation then..
 
Old 12-11-2006, 02:12 AM   #9
saf
LQ Newbie
 
Registered: Mar 2004
Location: Bucharest
Distribution: Slackware 10.2
Posts: 26

Original Poster
Rep: Reputation: 15
Unfortunately we can only use POP3
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can only get mail for myhost.domain.com. I cannot get my mail for domain.com. adamrau Linux - Software 1 04-22-2007 03:07 PM
Samba 3.0.21a and Samba Domain Member Servers in a Windows 2003 ADS Domain ramz Linux - Networking 3 04-09-2006 08:26 PM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 11:16 AM
Unable to send mail to some mail servers due smtp greetings malformed atotomex Linux - Networking 6 12-20-2005 04:38 PM
parsing mail.log with perl and calculate mail traffic on domain base markus1982 Programming 1 03-18-2003 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration