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

    Email server rules configuration

    Scheduled Pinned Locked Moved NAT
    4 Posts 3 Posters 985 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
      sbkom
      last edited by

      Hi,

      I have PfSense 2.1.5 installed and NAT is configured between the FWs WAN Interface 64.100.100.50 and internal network 192.168.33.0/24 with FW LAN Interface=192.168.33.1

      A mail server is installed at 192.168.33.30

      Inbound mail is given the address of the FW (Internal Interface=192.168.33.1) and the email server's blocklist function can't work since it needs the originating IP instead if FW's inherited internal IP. All emails arriving to the email address are marked as originated from 192.168.33.30

      How do I solve this?

      Should I create a transparent bridge, or assign a virtual external IP to the WAN interface?

      Could you tell me which rules to use in detail since I am new to PfSense..

      Thank you in advance.

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        When you have inbound NAT rules and a connection comes in from outside, the source IP of the packet when it hits the internal server is still the outside IP address of the originating machine, not the internal interface.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • S
          sbkom
          last edited by

          Hmm. Maybe I was doing something wrong.. I will double check.

          Thank you very much Derelict!

          1 Reply Last reply Reply Quote 0
          • chpalmerC
            chpalmer
            last edited by

            I use Hmail and have a similar setup.  I do not have the same issue you do so I wonder if you have a config issue on the actual email server itself.

            You don't have your email server "bound" to its own IP do you?

            Im trying to think of any other config setting….

            Triggering snowflakes one by one..
            Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

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