Relayhost to multiple hosts
Hi, I am looking for a solution where i would be able to configure one postfix instance in such a way that it rotates multiple relayhosts and acts as a host that relays emails to multiple hosts. For eg. we currently have the option of entering just one relayhost = xx.xx.xx.xx. However i need a solution where i shuld be able to map multiple relayhosts and make postfix relay via those list of hosts. P.S. The ports also might be different in some cases. Rgds Dhiraj
Re: Relayhost to multiple hosts
Quoting Dhiraj Chatpar dchat...@gmail.com: Hi, I am looking for a solution where i would be able to configure one postfix instance in such a way that it rotates multiple relayhosts and acts as a host that relays emails to multiple hosts. For eg. we currently have the option of entering just one relayhost = xx.xx.xx.xx. However i need a solution where i shuld be able to map multiple relayhosts and make postfix relay via those list of hosts. P.S. The ports also might be different in some cases. You can use iptables for that or make dns round robin entry and point relayhost to that hostname. -- Eero
Re: Relayhost to multiple hosts
can you please give me a tutorial to achieve this? Joan Crawfordhttp://www.brainyquote.com/quotes/authors/j/joan_crawford.html - I, Joan Crawford, I believe in the dollar. Everything I earn, I spend. On Wed, Nov 18, 2009 at 17:57, Eero Volotinen eero.voloti...@iki.fi wrote: Quoting Dhiraj Chatpar dchat...@gmail.com: Hi, I am looking for a solution where i would be able to configure one postfix instance in such a way that it rotates multiple relayhosts and acts as a host that relays emails to multiple hosts. For eg. we currently have the option of entering just one relayhost = xx.xx.xx.xx. However i need a solution where i shuld be able to map multiple relayhosts and make postfix relay via those list of hosts. P.S. The ports also might be different in some cases. You can use iptables for that or make dns round robin entry and point relayhost to that hostname. -- Eero
Re: Relayhost to multiple hosts
Quoting Dhiraj Chatpar dchat...@gmail.com: can you please give me a tutorial to achieve this? See the: http://cormander.com/blog/2008/05/round-robin-balancing-with-iptables/ and http://www.zytrax.com/books/dns/ch9/rr.html -- Eero
Re: Relayhost to multiple hosts
I believe there is an option within postfix too to achieve this? Ogden Nash http://www.brainyquote.com/quotes/authors/o/ogden_nash.html - The trouble with a kitten is that when it grows up, it's always a cat. On Wed, Nov 18, 2009 at 18:50, Eero Volotinen eero.voloti...@iki.fi wrote: Quoting Dhiraj Chatpar dchat...@gmail.com: can you please give me a tutorial to achieve this? See the: http://cormander.com/blog/2008/05/round-robin-balancing-with-iptables/ and http://www.zytrax.com/books/dns/ch9/rr.html -- Eero
Re: Relayhost to multiple hosts
Quoting Dhiraj Chatpar dchat...@gmail.com: I believe there is an option within postfix too to achieve this? As far as I known, postfix only supports one relayhost plus backup host. -- Eero
Re: Relayhost to multiple hosts
2009/11/19 Dhiraj Chatpar dchat...@gmail.com: I believe there is an option within postfix too to achieve this? I'm fairly sure there's not. If you don't like the idea of using iptables, the alternative would be a customised DNS entry for your relayhost. Create a virtual relayhost A-record (eg. relayhost.mydomain.com) that returns multiple IP addresses, this will produce a rudimentary form of round-robin. Then just set relayhost=relayhost.mydomain.com in main.cf
Re: Relayhost to multiple hosts
What do you think about this?? will this work? http://souptonuts.sourceforge.net/postfix_sbr.html Ted Turner http://www.brainyquote.com/quotes/authors/t/ted_turner.html - Sports is like a war without the killing. On Wed, Nov 18, 2009 at 19:08, Barney Desmond barneydesm...@gmail.comwrote: 2009/11/19 Dhiraj Chatpar dchat...@gmail.com: I believe there is an option within postfix too to achieve this? I'm fairly sure there's not. If you don't like the idea of using iptables, the alternative would be a customised DNS entry for your relayhost. Create a virtual relayhost A-record (eg. relayhost.mydomain.com) that returns multiple IP addresses, this will produce a rudimentary form of round-robin. Then just set relayhost=relayhost.mydomain.com in main.cf
Re: Relayhost to multiple hosts
We have 5 different servers.. all of them are mailing servers for our main company domain, I wish to Balance the mails across these 5 servers. Ogden Nash http://www.brainyquote.com/quotes/authors/o/ogden_nash.html - The trouble with a kitten is that when it grows up, it's always a cat. On Wed, Nov 18, 2009 at 19:34, Wietse Venema wie...@porcupine.org wrote: Dhiraj Chatpar: Hi, I am looking for a solution where i would be able to configure one postfix instance in such a way that it rotates multiple relayhosts and acts as a host that relays emails to multiple hosts. For eg. we currently have the option of entering just one relayhost = xx.xx.xx.xx. However i need a solution where i shuld be able to map multiple relayhosts and make postfix relay via those list of hosts. What problem are you trying to solve? State the problem, not the solution of multiple relayhosts and ports. Wietse
Re: Relayhost to multiple hosts
Dhiraj Chatpar: We have 5 different servers.. all of them are mailing servers for our main company domain, I wish to Balance the mails across these 5 servers. Isn't that what the DNS was invented for? You specify the domain and its servers, and then all standards-compliant mail systems will distribute the load according to MX preferences. Wietse
Re: Relayhost to multiple hosts
Yes the DNS is a good idea.. However what will i achieve if i implement the following? # Changes in /etc/postfix2/main.cf sender_based_routing = yes relay unix - - n - - smtp -o fallback_relay= smtp_act1 unix - - n - - smtp -o smtp_sasl_password_maps=hash:/etc/postfix2/sasl_passwd_act1 smtp_act2 unix - - n - - smtp -o smtp_sasl_password_maps=hash:/etc/postfix2/sasl_passwd_act2 smtp_act3 unix - - n - - smtp -o smtp_sasl_password_maps=hash:/etc/postfix2/sasl_passwd_act3 smtp_act4 unix - - n - - smtp -o smtp_sasl_password_maps=hash:/etc/postfix2/sasl_passwd_act4 #/etc/postfix2/sasl_passwd_act1 domainname.com Mike Ditka http://www.brainyquote.com/quotes/authors/m/mike_ditka.html - If God had wanted man to play soccer, he wouldn't have given us arms. On Wed, Nov 18, 2009 at 20:10, Wietse Venema wie...@porcupine.org wrote: Dhiraj Chatpar: We have 5 different servers.. all of them are mailing servers for our main company domain, I wish to Balance the mails across these 5 servers. Isn't that what the DNS was invented for? You specify the domain and its servers, and then all standards-compliant mail systems will distribute the load according to MX preferences. Wietse
Re: Relayhost to multiple hosts
Dhiraj Chatpar: Yes the DNS is a good idea.. However what will i achieve if i implement the following? The solution is to have multiple MX records in the DNS. All standards-compliant MTAs will spread the load WITHOUT ANY SENDER SIDE CONFIGURATION. Wietse
Relayhost to multiple hosts
Wietse Venema put forth on 11/18/2009 9:25 AM: Dhiraj Chatpar: Yes the DNS is a good idea.. However what will i achieve if i implement the following? The solution is to have multiple MX records in the DNS. All standards-compliant MTAs will spread the load WITHOUT ANY SENDER SIDE CONFIGURATION. Wietse That master.cf with all the sasl makes me think he's wanting to spread spam load out over 5 broadband smtp submission servers over 5 dsl lines or similar. His resistance to using DNS, which is the proper (and easy) solution for a legit operation, and the fact that he's spreading the load of only one server across 5 also smells of a spammer. Are we assisting a spammer or a legit operation? Dhiraj? What's the skinny? -- Stan
Re: Relayhost to multiple hosts
On 11/18/2009 11:47 AM, Dhiraj Chatpar wrote: Well sir its our friend yahoo which is going to get me kicked off my job as an administrator. I had an issue where a email sent to a yahoo email address from My CEO didnt end up delivering. Ever since i have been wondering for solutions. You're trying to solve a problem that you can't solve. If 99% of your mail addressed to yahoo eventually gets delivered, you've done as well as can be expected and better than most. Your real job is to explain this in terms the CEO can understand.