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

    NAT with Spam Filter and Web Servers

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 1.5k 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.
    • S
      sam_maher
      last edited by

      We have a spam filter on the same network as our webservers sitting behind pfsense as a router/firewall

      We have the 1&1 NAT rules setup to forward each server to its virtual IP, which all works fine.

      When the web server is sending out mail to a client that is using our spam filter. The spam filter is seeing it as coming from the internal IP as it should do because NAT redirection is turned on.

      The issue we have is that the spam filter is blocking the emails from the web servers because the SPF record has got the external IP address on it and they are showing up from the internal IP.

      Is there a way that we can get the external IP to show up instead of the internal one or is there another way to do this?

      1 Reply Last reply Reply Quote 0
      • M
        muswellhillbilly
        last edited by

        This isn't really a pfSense question. You have to look at the config on your spam filter to see if there's a whitelist option to allow relays from your internal web server. Otherwise, smart host your webserver to some other MTA that won't bother checking the SPF record.

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