This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I need to Port map SMTP from port 25 to 26

Hi,

New to the product and I am trying to figure out how to do a PAT from my smtp server to use port 26 on  outgoing mail. Our ISP blocks port 25 and I want to send to our mail relay on port 26. Any ideas?

Thanks much in advance!


This thread was automatically locked due to age.
Parents
  • imho you must set a DNAT/SNAT rule like this:

    SRC=WAN IP, DST=ISP-Mail-IP, SERVICE=SMTP, CHANGE DEST= ISP-Mail-IP, SERVICE=Port26

    and also set a packetfilter rule for this.
  • I did try that and it does not change the outbound port. Here is my trace - 6 110 SYN_SENT src=192.168.10.10 dst=64.182.102.185 sport=14653 dport=25 [UNREPLIED] src=64.182.102.185 dst=192.168.10.10 sport=25 dport=14653 use=1    
  • what is the 192.168.x.x? it will be not route in the inet! explain your config, please.
  • True - Sitting behind a firewall that has a DMZ address of 192.168.1.xxx

    Nice because I can packet capture off the Astaro. It does not seem to want to port map. I set up a service called mail Relay with SRC=25 DST=26. Set up Network devices for Mail relay host and source mail server. It would be nice if the SMPT proxy had a value for BOTH Host and port.
Reply
  • True - Sitting behind a firewall that has a DMZ address of 192.168.1.xxx

    Nice because I can packet capture off the Astaro. It does not seem to want to port map. I set up a service called mail Relay with SRC=25 DST=26. Set up Network devices for Mail relay host and source mail server. It would be nice if the SMPT proxy had a value for BOTH Host and port.
Children
  • ups, SRC=25 is imho wrong, you havent to set it. a connection from your asl to the smarthost should be a packet like this:

    SRC IP=yourwanip, SRC PORT=>1024, DST IP=yourispip, DST PORT=26 (25)

    the smtp does not talk from both site to port 25, only the called server.

    could this be your misstake?
  • Got it!

    I set my mail relay service  to TCP only with SRC= 1:65535 DST=26

    When it was set to TCP/UDP I could not use it in the NAT definition.

    Works great now. Thanks!