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

    SMTP doesn't work to Comcast servers through pfSense

    Scheduled Pinned Locked Moved Firewalling
    12 Posts 6 Posters 1.1k 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
      SteveITS Galactic Empire @danhanisch
      last edited by

      mx1.comcast.net has both A and AAAA records, could one be using IPv6?

      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
      Upvote ๐Ÿ‘ helpful posts!

      D 1 Reply Last reply Reply Quote 0
      • D
        danhanisch @SteveITS
        last edited by

        @steveits

        Thank you for the reply. I checked on the server and on the network adapter, I have IPV6 unchecked on the servers as well as the desktops.

        1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan @danhanisch
          last edited by

          @danhanisch said in SMTP doesn't work to Comcast servers through pfSense:

          "telnet mx1.comcast.net 25"

          Are you sure about that port 25 ?

          Mail clients should use port 587 or even better : 465.

          Most ISP's told their customers to use port '25' to send mails, far back in the past.
          This has been corrected, and comcast should have done so.

          @danhanisch said in SMTP doesn't work to Comcast servers through pfSense:

          So I have pfSense setup as a pass through firewall between my main router and the switch serving the computers in the network. I have pfBlockerNG setup for geolocated IP blocking

          What do you maen with "pass through firewall" ?
          From LAN to WAN is mostly pass through by default.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          S D 2 Replies Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @Gertjan
            last edited by

            @gertjan said in SMTP doesn't work to Comcast servers through pfSense:

            clients should use port 587

            I thought about port 25 being blocked by Comcast (bottom of that page) but he says it works on some PCs, and also with pfSense disconnected.

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote ๐Ÿ‘ helpful posts!

            1 Reply Last reply Reply Quote 0
            • provelsP
              provels
              last edited by provels

              @danhanisch said in SMTP doesn't work to Comcast servers through pfSense:

              mx1.comcast.net 25

              Try smtp.comcast.net 587 <- answer to a question not asked!

              Does server/server mail transport still use 25? Never thought about it.

              I'd make a log everything rule from your server and see what the logs tell you.

              Peder

              MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
              BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

              Bob.DigB GertjanG 2 Replies Last reply Reply Quote 0
              • Bob.DigB
                Bob.Dig LAYER 8 @provels
                last edited by Bob.Dig

                @provels said in SMTP doesn't work to Comcast servers through pfSense:

                Does server/server mail transport still use 25?

                Sure they do.

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

                  @danhanisch There is nothing in a default pfSense configuration that will prevent an outbound connection to a mail server on port 25. Almost all residential classes of service block such connections. They might allow them to a specific set of addresses for their own mail servers.

                  Port 587 should be used by MUAs to submit messages to MTAs. Authentication will need to be used.

                  Port 465 is a microsoft "standard" for TLS on initial connection without STARTTLS being issued, but there is no requirement for authentication like there is for port 587 (SMTP Submit).

                  The best way to submit email is to instruct the client to connect to port 587, fail if STARTTLS is not successful (To prevent an MITM from presenting an SMTP server that does not offer STARTTLS in the EHLO response), and authenticate.

                  If your mail provider does not allow such a configuration, use another mail provider.

                  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
                  • D
                    danhanisch
                    last edited by

                    Ok, so I appreciate everyone's replies, but I found what the problem was.

                    I'm not aware as to why this would only affect some addresses and not others, but when looking at the packets in Wireshark, I noticed the difference in a few things regarding the TCP settings.

                    First were the flags (such as congenstion....ECN and the like). That wasn't the cause.

                    Then I noticed on the TCP Window Scaling, the multiplier on the server machines was much higher than that of the Windows 10 machine.

                    So going into Powershell, I ran the following command:

                    Set-NetTCPSetting -AutoTuningLevelLocal Disabled

                    That takes the window multipler back down to the default level, which is where Windows 10 works.

                    Voila! It works now. Emails go out, telnet tests succeed.

                    I haven't gone through the pfSense settings to determine where this setting is. Can anyone point me in the right direction on that one?

                    Anyhow, I appreciate the responses. I checked the IPV6 scenario and that wasn't it. My communications were going out over IPV4, so I had to look at the raw packets and thankfully came to a resolution.

                    Dan

                    1 Reply Last reply Reply Quote 0
                    • D
                      danhanisch @Gertjan
                      last edited by

                      @gertjan

                      I misspoke. I meant to say "transparent", not pass-through.

                      1 Reply Last reply Reply Quote 0
                      • GertjanG
                        Gertjan @provels
                        last edited by Gertjan

                        @provels said in SMTP doesn't work to Comcast servers through pfSense:

                        Does server/server mail transport still use 25? Never thought about it.

                        They - server to server - only communicate over 25.
                        If not, 'your mail server' would never receive the mail others send to you.

                        edit :
                        See it like this : you publish a web server, but instead of have it listening to 443, you say : I use port 444.
                        Your site will work just fine, but many visitors will have issues with it ;)

                        @derelict said in SMTP doesn't work to Comcast servers through pfSense:

                        Port 587 should be used by MUAs to submit messages to MTAs. Authentication will need to be used.

                        Added for clarity :
                        MUA = in this case, the pfSense 'mail scripts' that deliver a mail to a server for dispatching. = typically your mail server at comcast, gmail, etc.
                        MTA = the (your) mail server - the one you're allowed to 'drop' mails for dispatching.

                        @derelict said in SMTP doesn't work to Comcast servers through pfSense:

                        Port 465 is a microsoft "standard" for TLS on initial connection without STARTTLS being issued, but there is no requirement for authentication like there is for port 587 (SMTP Submit).

                        Yeah, but activating '465' as a TLS only mail-drop entry implies

                        smtpd_tls_security_level=encrypt
                        

                        and in that case you "have-to" :

                        smtpd_tls_auth_only=yes
                        

                        See : http://www.postfix.org/postconf.5.html#smtpd_tls_security_level

                        Btw : 465 with 'auth' will be an an open relay. Having one in the past was funny. Today, it would be a complete disaster.

                        @danhanisch
                        Great that you found a solution ๐Ÿ‘

                        Keep in mind :
                        On a default, out of the box Windows PC with a freshly installed 'Thunderbird' mail client or Outlook Office 365, both MUA's
                        and
                        a default, pfSense install with no modification what so ever,
                        mail traffic, or actually any traffic passes just fine.

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

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

                          For reference, here's the MS document that assisted me:

                          https://docs.microsoft.com/en-us/windows-server/networking/technologies/network-subsystem/net-sub-performance-tuning-nics

                          Dan

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