Re: [Pound Mailing List] Routing mail servers with pound?
Andrzej Dopierała <[email protected]> Fri, 16 Jun 2017 22:50:19 +0200
| Newsgroups | gmane.comp.web.pound.general |
|---|---|
| Message-ID | <[email protected]> |
W dniu 16.06.2017 o 22:19, Christian COMMARMOND pisze: > Hello, > > I had a look to haproxy, I don't see what I am looking for anywhere, > just load balancing of one mail.domain.com <http://mail.domain.com> to > several servers. > sltd, just one page of doc, which says: sltd daemonizes multiple slt > instances to accept TLS/SSL connections on multiple ports, but I have > only one. > > I have one IP, but two mails servers: domain1.com <http://domain1.com> > and domain2.com <http://domain2.com>. if someone sends an email to one > of these, they will try to connect to the IP on the same port. Am I > right? I thought that the communication is full text and that it > contains the full email address, so, we should be able to route this > communication to the good mail_serveur? > > But is looks like this is not possible. And maybe, I should just stop > now... > > Can someone points me to a page with the solution? I am sorry, I am > not an email expert. > > And to user two IP would need that I setup something to manage two > connections on my network, which is out of my capabilities. (I would > like, but I do not know where to start, and how to do it without > breaking what I have)... It's not simple as http load balancing. Trivial solution - is puting postfix or something on front of this mailservers. And in it - rewrite domains to specific servers. For example in /etc/postfix/transport: domain1.com smtp:server-of-domain1 domain2.com smtp:server-of-domain2 It will work for simple cases, but.. what will happen when destination e-mail doesn't exists? your balancer will accept it, try to send to server-of-domain1, and then when it will be not received - generate bounce message. -- Regards, Andrzej 'The Undefined' Dopierała http://andrzej.dopierala.name/