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 <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? > > > One option that came up was to use a RegExp for a transept, but: > > You can't use a regexp for transport, because trivial rewrite will ignore the > $1, due to safety issues: > /(.*)/ smtp:$1:2501 > > The last time the trivial rewrite regexp issue came up, the response was to > use 2.2, since it still allowed this. This is for internal mail server use, > with traffic generated by trusted hosts. > > --- > > BTW- Yes, I mean destination port. No, I don't mean SMTP inbound listening > port. > > > Matthew Barr > Technical Architect > E: mb...@snap-interactive.com > AIM: matthewbarr1 > c: (646) 727-0535 >