Re: Changing SMTP Default destination port

2013-06-13 Thread Newton Pasqualini Filho
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 Pasq

Re: Changing SMTP Default destination port

2013-06-13 Thread Matthew Barr
On Jun 13, 2013, at 6:04 PM, Newton Pasqualini Filho 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

Re: Changing SMTP Default destination port

2013-06-13 Thread Viktor Dukhovni
On Thu, Jun 13, 2013 at 06:01:26PM -0400, Matthew Barr wrote: > I'm looking for a way to change the default destination port for > SMTP, similar to the effect of lmtp_tcp_port. The default port for SMTP is not "25" it is the "smtp/tcp" entry in /etc/services. But don't change that, since making

Re: Changing SMTP Default destination port

2013-06-13 Thread Newton Pasqualini Filho
You can do this with iptables rules using SNAT. Regards Newton Pasqualini Filho newtonpasqual...@gmail.com Em 13/06/2013, às 19:01, Matthew Barr 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

Changing SMTP Default destination port

2013-06-13 Thread Matthew Barr
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 d