View Single Post
  #2   (View Single Post)  
Old 18th July 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

You can do this, but not as a standard, public access MTA, only a private-use MTA. e.g.: via dyndns.com's mailhop relay service.

It's probably easiest via pf(4). Here's an example excerpt from a redirected port 2525 to port 25 on the loopback interface:
Code:
rdr pass log on $external_nic proto tcp from any to any port 2525 \
        -> 127.0.0.1 port 25
Reply With Quote