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

    Can't configure two email servers. What's missing?

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 263 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.
    • D
      daro
      last edited by

      Hi all

      After unsuccesfully searching for a solution in the web I want to ask my question here in the forum.

      My goal is to have two mailservers behind the firewall up and running.

      Situation:
      I have a single WAN IP leading to my netgate/pfsense plus firewall.
      Two LAN interfaces are configured with all the ports forwarded, NAT rules set and dns resolution configured.
      LAN1 with domain1: 192.168.178.xx
      LAN2 with domain2: 192.168.180.xx

      All the configuration on the ISP’s interface is done and one mailserver is running without any problems since weeks.

      Problem:
      With all this config in place, I’ve connected the second mailserver and I can send mails from this server, but not receive. Incoming emails for domain1 get delivered to the server with domain2, which I’ve configured first on LAN2. And of course, there the mails don’t find a box to be delivered to.
      The webmail interfaces are reachable correctly by domain.

      My question is: what is missing, what did I do wrong?

      Thanks a lot for help!

      David

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @daro
        last edited by

        @daro
        You cannot forward a domain to a certain server, but just an IP. A single IP-port combination can only be forwarded to a single server.

        So if the connection to both domains bounce on your WAN IP port 25, they can only be forwarded to a single server.

        1 Reply Last reply Reply Quote 0
        • P
          Popolou
          last edited by

          As viragomann says. The simplest solution IMHO is to put the two mailservers behind a smart host that determines which server to send the mail to.

          1 Reply Last reply Reply Quote 0
          • D
            daro
            last edited by

            Thank you @viragomann and @Popolou for your help! I will do some more evaluation and consider a smart host.

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