Scaling IMAP and POP3

Just thought I'd drop a brief suggestion to anyone building a large mail system. Our solution for scaling mail pickup was to develop a sharded architecture whereby accounts are spread across a cluster of servers, each with imap/pop3 capability. Then we use a cluster of reverse proxies (Perdition) speaking to the backend imap/pop3 servers . The benefit of this approach is you can use simply use round-robin or HA loadbalancing on the perdition servers that end users connect to (e.g. admins can easily move accounts around on the backend storage servers without affecting end users). Perdition manages routing users to the appropriate backend servers and has MySQL support. What we also liked about this approach was that it had no dependency on a distributed or networked filesystem, so less chance of corruption or data consistency issues. When an individual server reaches capacity, we just off load users to a less used server. If any server goes offline, it only affects the fraction of users assigned to that server.

Best,

Erik Osterman

Sounds nice

As a load balancer Perdition sounds nice, however, how do you handle availability issues? E.g. if one of your "storage" mail servers explodes. Perhaps users will complain if they've lost their mailboxes.

Re: Scaling IMAP and POP3

Re: Scaling IMAP and POP3

I have scaled POP3/IMAP by using IPVS and a cluster of servers running a POP3/IMAP server.
User accounts are on a LDAP server and storage is on a NFS.
IPVS takes care about load balancing (all servers receive same number of connections) and is fault-tolerant.

Its easy to scale because servers are Xen paravirtualized machines, and setting up a server are as easy as deploy a new disk image.

But perdition is a good product with useful features too :)

Re: Scaling IMAP and POP3

Hi
I am trying use Nginx as a proxy POP3 server.
My goal is use it as follows
Pop3/web client <-> nginx_proxy_pop3_server <-> Actual POP3 server.

Can somebody please provide a example proxy POP3 configuration for Nginx.

I really appreciate any help in this regard.

Thanks and regards

Achary

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><div ?=?><p ?=?> <img ?=?><h1 ?=?><h2 ?=?><h3 ?=?>
  • Lines and paragraphs break automatically.
  • Glossary terms will be automatically marked with links to their descriptions
  • You may link to webpages through the weblinks registry

More information about formatting options

To combat spam, please enter the code in the image.