1

How can I separate mail server into multiple physical machines using postfix?

I wish that some users were on one server and some on the other and that there were no problems with the verses 5xx.

I would like to do something like Postfix cluster.

Or part of user accounts with the letter A, B on a single server, C, D on another and so on.? Is it possible to Postfix?

Thank you for your response.

yavorr
  • 19
  • 2

1 Answers1

2

This is entirely possible, there are a few caveats however.

The easiest way to go about this is a a load balancer, then use a separate mailstore (NAS/SAN/whatever floats your boat) and a MySQL (or any other) backend, redundant if you wish. The Public IP for your mailserver is assigned to the load balancer. The mail itself is stored outside the single mail server, that way, any single machine being unavailable doesn't mean people cannot access their mail. A separate DB means the user data is shared, so any server can verify any user.

That's a pretty basic outline.

The caveats are that each server will have its own queue (for incoming and outgoing mail), these CANNOT be shared between servers, so some work may have to be done if any single machine has a fault (this could be somewhat mitigated if you used some sort of external storage like NFS, but what you gain in fault tolerance you lose in speed)

Another caveat is that there will be some duplication of requests, you need to make sure that your LDA is aware of clustering (Dovecot is getting quite good), as building/rebuilding large indexes can be a heavy load if you don't take full advantage of caching.

Read up on it, you're far from the first person to be interested in this sort of idea.

NickW
  • 10,263
  • 1
  • 20
  • 27
  • ok, my current problem is a disk quota for mail files. is any solution for add more drivers for postfix to store mails? I need over 3 TB+ for users mail O_O – yavorr Jan 02 '15 at 13:11
  • NFS supports quotas, as do Dovecot, Postfix, and I'm sure other MTAs and LDAs do as well. 3TB is nothing for a NAS, it's possibly a bit much to have that amount on multiple servers. Storage backends are one of the best solutions to the space problem. – NickW Jan 02 '15 at 13:14