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

    Sending IPs of email server behind pfsense

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 3 Posters 2.6k 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.
    • T Offline
      tacfit
      last edited by

      Hey folks,

      I feel like this should have a simple solution, or no solution, and I feel silly asking it, but I've Googled and thought about it… and well, here we are.

      Situation is: We have an email server behind pfsense. When that server sends out email, the originating IP that recipients see is that of our firewall. I would much rather the "sending" IP be the public IP of my mail server... but how do I do this?

      Thanks guys.

      1 Reply Last reply Reply Quote 0
      • T Offline
        tacfit
        last edited by

        never mind! I knew it was simple.

        1:1 mapping. boom. Done.

        1 Reply Last reply Reply Quote 0
        • dotdashD Offline
          dotdash
          last edited by

          Or use a port-forward and AON…

          1 Reply Last reply Reply Quote 0
          • J Offline
            jakkson
            last edited by

            I currently have the same problem could you send example of 1:1 input screen

            1 Reply Last reply Reply Quote 0
            • dotdashD Offline
              dotdash
              last edited by

              The 1-1 NAT is pretty hard to screw up. A typical entry would be:
              interface=WAN external IP=100.200.100.200/32 internal IP=192.168.1.200/32
              The AON if you were using port-forwards would be like this:
              interface=WAN source=192.168.1.200/32 * * * NAT address=100.200.100.200 * NO
              (AON rule must be placed before the auto created LAN rule)

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