Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Help with forcing outgoing smtp 25 to VIP address

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 3.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gahase
      last edited by

      Hello,

      i've been attempting to force our email server to use a VIP address for outgoing with no luck.

      here's what i've attempted thus far:

      1. created nat port forwards\rules, outbound nat, from our email server 192.168.10.7 to the VIP address 173.x.x.90.

      no matter how i try to implement it, the 25 traffic still goes through our default wan IP of 173.x.x.89.

      below are our manual outgoing rules for NAT

      Mappings:

      Interface Source         Source Port Destination Destination Port NAT Address NAT Port Static Port Description
      WAN  192.168.10.0/24       *                     *       *               *               *              YES  Auto rule for LAN

      WAN  192.168.10.7/32     tcp/*               *         tcp/25 173.x.x.90               *     NO  ISERVER-OUTGOING-SMTP-7

      any advice or direction would be greatly appreciated.

      1 Reply Last reply Reply Quote 0
      • E
        echoranger
        last edited by

        You want to reverse the order of those NAT entries. NAT works on a first-match basis so your email server is hitting that first LAN NAT rule and sending the traffic out your default NAT. If you list that email server NAT rule first, your email server will use it instead (and all other LAN traffic will use your LAN NAT).

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.