You should use network tools to provide that solution.

I use SNAT to route our internal traffic to other postfix nodes into my 
internal network.

The only think that you must do is setup SNAT with port too!

Checkout in Google "iptables SNAT" or "iptables -j SNAT --help"

Best regards
Newton Pasqualini Filho
newtonpasqual...@gmail.com



Em 13/06/2013, às 19:17, Matthew Barr <mb...@snap-interactive.com> escreveu:

> On Jun 13, 2013, at 6:04 PM, Newton Pasqualini Filho 
> <newtonpasqual...@gmail.com> wrote:
> 
>> You can do this with iptables rules using SNAT.
> 
> I'm sorry, I should have mentioned this need to happen on multiple instances 
> of the postfix on the same system.
> 
> One instance will send the traffic to :2501, another to :2502, etc.
> 
> It's a way to hint to the loadbalancer which external IP to use.
> 
> (We have a small number of external IP's, and need to ensure that the correct 
> type of email traffic comes out the right IP, basically.)
> 
> Thanks!
> 
> Matthew
> 
> 
> 
>> Em 13/06/2013, às 19:01, Matthew Barr <mb...@snap-interactive.com> escreveu:
>> 
>>> I'm looking for a way to change the default destination port for SMTP, 
>>> similar to the effect of lmtp_tcp_port.
>>> 
>>> This is due to an interesting outbound NAT setup, which will rewrite the 
>>> actual connection port  for the destination hosts to be 25.
>>> 
>>> The smtp(5) command doesn't have an option to set default port.
>>> 
>>> Is there any way to do this?
>>> 
> 

Reply via email to