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

    Since switching to PFSENSE NEXTCLOUD ANS SNAPPYMAIL CAN'T REACH ANY IMAP OR SMTP SEVRER!

    General pfSense Questions
    2
    10
    1.5k
    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
      d.k
      last edited by

      Since switching to PFSENSE NEXTCLOUD ANS SNAPPYMAIL CAN'T REACH ANY IMAP OR SMTP SEVRER! My mac's still can connect with the mail program and I am able to receive and send emails but snappy mail and nextcloud can't connect the connection is SSL/TLS 995 and 465! I don't know what to do I have already added a rule but that didn't help either because chatgpt suggested that!:

      (Both instances run in virtualmin!

      Screenshot 2025-01-01 at 21.26.58.png

      Screenshot 2025-01-01 at 21.29.52.png Screenshot 2025-01-01 at 21.28.34.png

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @d.k
        last edited by johnpoz

        @d-k those rules above this are pointless

        rule.jpg

        Since this rule already allows any any..

        That error with ssl:// that is not a valid uri normally - maybe that is how this snappymail you set it up.. but ssl:// is not standard..

        But your any any rule allows port 993 over any protocol over IPv4

        I would for sanity check from that system - see if you can just make a openssl connection

        root@i9-win:/# openssl s_client -connect imap.gmail.com:993 -crlf -quiet
        depth=2 C = US, O = Google Trust Services LLC, CN = GTS Root R1
        verify return:1
        depth=1 C = US, O = Google Trust Services, CN = WR2
        verify return:1
        depth=0 CN = imap.gmail.com
        verify return:1
        * OK Gimap ready for requests from 209.snippedmypublicIP dl10mb449017108iob
        

        That would tell you for sure if the port is open through pfsense

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        D 1 Reply Last reply Reply Quote 0
        • D
          d.k @johnpoz
          last edited by

          @johnpoz Here is the output as I understand it can reach google!:
          Screenshot 2025-01-02 at 00.20.49.png

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @d.k
            last edited by

            @d-k yup exactly - and you got the cert they use.. Pfsense is not the problem here in letting you talk to that IP on that port. Like said your any any rule would allow you..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            D 1 Reply Last reply Reply Quote 0
            • D
              d.k @johnpoz
              last edited by

              @johnpoz hmm but it says it can't reach but terminal can it makes no sense, thanks though, still it used to work before switch to pfsense that's why I came here not to the instance forums! Any suggestion what I can try I am not an expert neither in networking nor server side stuff! Maybe virtualmin has something switched when it asked me to change ip adress!?

              Any way if you don't know anything else that could help me figure out thanks and have a good evening or day!

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @d.k
                last edited by johnpoz

                @d-k unless your running something else snort or something, pfsense out of the box blocking nothing outbound. Or using a proxy in pfsense?

                But if where you ran that command is routing through pfsense - then clearly pfsense is not blocking you from talking to imap.gmail.com on port 993.

                Maybe your snappymail config points to a specific dns or gateway that needs to be update to reflect your current setup. But that command clearly shows you can talk to to imap.gmail.com on 993..

                I have never ran or have any experience with snappymail or how you have it set it up - but from your output, pfsense isn't blocking it.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                D 1 Reply Last reply Reply Quote 0
                • D
                  d.k @johnpoz
                  last edited by

                  @johnpoz Your right thanks though its somewhat weird even the admin backend isn't working anymore says invalid token I. probably have to reinstall it there must be something wrong with it and as for nexcloud maybe there is something to configure in the settings!
                  Thanks for the help!

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @d.k
                    last edited by

                    @d-k Token? Maybe since your public IP changed, or its local IP changed - whatever this token is used is no longer valid..

                    If you create some local token for license or something that had used say the machines IP of 192.168.1.100 in the process, and now the machines IP is 192.168.1.200 then sure that token prob wouldn't be valid any more on a machine with a different IP, even if its the same machine.

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                    D 2 Replies Last reply Reply Quote 0
                    • D
                      d.k @johnpoz
                      last edited by

                      @johnpoz Yeah that would make sense I have to check the Doc and see if such thing is generated or created at setup! Thank You!

                      1 Reply Last reply Reply Quote 0
                      • D
                        d.k @johnpoz
                        last edited by

                        @johnpoz Found the issue I had to setup the right dhcp6 prefix in wan and enable ipv6 in the network now the server was able to reach map so the issue is that the ubuntu server seem to use primary the ipv6 instead of the ipv4 that they get!

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