New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Postfix on multiple IPs?
So I have been experimenting with postfix to load balance outgoing emails with multiple IPs, I tried assigning one IP to each instance as per here,
http://www.postfix.org/MULTI_INSTANCE_README.html
Any other methods, something much more subtle?
Comments
You could try this out - I'm not sure it's exactly what you want, but it can help. It worked for me.
https://wied.it/blog/sender-dependent-default-transport-maps-with-postfix-the-easy-way.html
I want outgoing emails to use both IPs, I'll check it out, thanks
This also looks like a solid solution to this problem: http://marinovl.blogspot.com/2012/09/postfix-how-to-balance-outgoing-emails.html
This is how I do it (I have two LEBs handling both incoming and outgoing in front of my production postfix).
I define in the DNS the following record: outgoing.example.com which has two MX records, mx1.outgoing.example.com and mx2.outgoing.example.com. Both have same priority to do round robin.
On the production postifx I have:
relayhost = outgoing.example.com
This way postfix will do the equivalent of 'host -t mx outgoing.example.com' and pick one.
note: if you put: relayhost = [outgoing.example.com] (if I recall correctly - double check) then postfix will not do a 'host -t mx', instead it will use the IP address defined as outgoing.example.com.
Thinking about this, you could potentially define two IP records for this name and achieve the same result.