Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Quick question about email

Quick question about email

Scheduled Pinned Locked Moved Solved Support
email
15 Posts 3 Posters 2.0k Views 3 Watching
  • 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.
  • A abargel

    I realize that this must be quite basic, but I am new to this! 😉
    I set up Cloudron email a few days ago and everything worked fine. But then I started using OpenVPN on my computer and now I cannot send emails (but can receive). If I turn the VPN off, it works.
    Nothing else has changed, the DNS are still green 😉
    What do I need to do?

    nebulonN Offline
    nebulonN Offline
    nebulon
    Staff
    wrote on last edited by
    #2

    @abargel just to clarify, you are using OpenVPN to connect to the internet via the Cloudron OpenVPN app? And the issue is, that a desktop email client is unable to send emails via the mail server on your Coudron?

    Are there any errors, timeouts or warnings shown?

    A 1 Reply Last reply
    0
    • nebulonN nebulon marked this topic as a question on
    • nebulonN nebulon

      @abargel just to clarify, you are using OpenVPN to connect to the internet via the Cloudron OpenVPN app? And the issue is, that a desktop email client is unable to send emails via the mail server on your Coudron?

      Are there any errors, timeouts or warnings shown?

      A Offline
      A Offline
      abargel
      wrote on last edited by
      #3

      @nebulon I am using a separate Open VPN instance (on another VPS). Yes to the desktop email client (Evolution), in which I have configured the Cloudron mail server.
      The error message is: “Could not connect to my.XXX.net: Connection refused”
      Thank you!!

      nebulonN 1 Reply Last reply
      0
      • A abargel

        @nebulon I am using a separate Open VPN instance (on another VPS). Yes to the desktop email client (Evolution), in which I have configured the Cloudron mail server.
        The error message is: “Could not connect to my.XXX.net: Connection refused”
        Thank you!!

        nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #4

        @abargel can you check if you can connect to the smtp port in question 587 ? Not sure how your tunnel is setup and works, but if IMAP (receiving) works, then I suspect this is some special firewall setting when using the tunnel on either the tunnel side or your OpenVPN client configs.

        A 1 Reply Last reply
        0
        • nebulonN nebulon

          @abargel can you check if you can connect to the smtp port in question 587 ? Not sure how your tunnel is setup and works, but if IMAP (receiving) works, then I suspect this is some special firewall setting when using the tunnel on either the tunnel side or your OpenVPN client configs.

          A Offline
          A Offline
          abargel
          wrote on last edited by
          #5

          @nebulon Well, Evolution "sending mail" is set up to port 465 with TLS over a dedicated port. The instructions say 587 or 465 and I don't know the difference...
          I'm not sure what is a tunnel not how it is setup...
          My OpenVPN client is the Cloudron app as well, just on a separate server (which does not allow SMTP OUT, by the way) so a separate Cloudron account as well.
          Hope you can make sense of this, I realize that there are gaping holes in what I understand and therefore can tell you!

          A girishG 2 Replies Last reply
          0
          • A abargel

            @nebulon Well, Evolution "sending mail" is set up to port 465 with TLS over a dedicated port. The instructions say 587 or 465 and I don't know the difference...
            I'm not sure what is a tunnel not how it is setup...
            My OpenVPN client is the Cloudron app as well, just on a separate server (which does not allow SMTP OUT, by the way) so a separate Cloudron account as well.
            Hope you can make sense of this, I realize that there are gaping holes in what I understand and therefore can tell you!

            A Offline
            A Offline
            abargel
            wrote on last edited by
            #6

            @abargel *nor how it is setup

            1 Reply Last reply
            0
            • A abargel

              @nebulon Well, Evolution "sending mail" is set up to port 465 with TLS over a dedicated port. The instructions say 587 or 465 and I don't know the difference...
              I'm not sure what is a tunnel not how it is setup...
              My OpenVPN client is the Cloudron app as well, just on a separate server (which does not allow SMTP OUT, by the way) so a separate Cloudron account as well.
              Hope you can make sense of this, I realize that there are gaping holes in what I understand and therefore can tell you!

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #7

              @abargel said in Quick question about email:

              The instructions say 587 or 465 and I don't know the difference

              Port 587 is STARTTLS. Port 465 is TLS.

              Can you try "telnet my.xxx.net 465" on your PC after connecting to VPN? Does it connect ? This could also be an IPv6 related issue, but let's see what telnet says.

              A 1 Reply Last reply
              0
              • girishG girish

                @abargel said in Quick question about email:

                The instructions say 587 or 465 and I don't know the difference

                Port 587 is STARTTLS. Port 465 is TLS.

                Can you try "telnet my.xxx.net 465" on your PC after connecting to VPN? Does it connect ? This could also be an IPv6 related issue, but let's see what telnet says.

                A Offline
                A Offline
                abargel
                wrote on last edited by
                #8

                @girish telnet says "Unable to connect to host: connection refused".
                Without the VPN, telnet connects.
                It's the same from both my computers, on which I use VPN from the same server.

                girishG 1 Reply Last reply
                0
                • A abargel

                  @girish telnet says "Unable to connect to host: connection refused".
                  Without the VPN, telnet connects.
                  It's the same from both my computers, on which I use VPN from the same server.

                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #9

                  @abargel Can you try "telnet -4 my.xxx.com 465" just to make sure it's IPv4 ? I wonder if this might be a client side VPN issue - what OS is your client?

                  A 1 Reply Last reply
                  0
                  • girishG girish

                    @abargel Can you try "telnet -4 my.xxx.com 465" just to make sure it's IPv4 ? I wonder if this might be a client side VPN issue - what OS is your client?

                    A Offline
                    A Offline
                    abargel
                    wrote on last edited by
                    #10

                    @girish Same results. I'm on Ubuntu (different versions) on both computers.

                    girishG 1 Reply Last reply
                    0
                    • A abargel

                      @girish Same results. I'm on Ubuntu (different versions) on both computers.

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #11

                      @abargel Do port 587 (starttls) , 443 (https) , 80 (http) work? Or do all fail?

                      A 1 Reply Last reply
                      0
                      • girishG girish

                        @abargel Do port 587 (starttls) , 443 (https) , 80 (http) work? Or do all fail?

                        A Offline
                        A Offline
                        abargel
                        wrote on last edited by
                        #12

                        @girish 80 and 443 work, 587 doesn't

                        girishG 1 Reply Last reply
                        0
                        • A abargel

                          @girish 80 and 443 work, 587 doesn't

                          girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by
                          #13

                          @abargel mmm. Just to double check, can you check if all traffic is indeed going via the VPN ? (curl https://ipv4.api.cloudron.io/api/v1/helper/public_ip)

                          Next step to debug after confirming above:

                          • Open Web terminal in VPN app.
                          • Run the telnet commands on different ports. I suspect things are failing here too. If so, then there is some routing issue.
                          A 2 Replies Last reply
                          0
                          • girishG girish

                            @abargel mmm. Just to double check, can you check if all traffic is indeed going via the VPN ? (curl https://ipv4.api.cloudron.io/api/v1/helper/public_ip)

                            Next step to debug after confirming above:

                            • Open Web terminal in VPN app.
                            • Run the telnet commands on different ports. I suspect things are failing here too. If so, then there is some routing issue.
                            A Offline
                            A Offline
                            abargel
                            wrote on last edited by
                            #14

                            @girish The curl command gives this (first with VPN off, then VPN on) The second IP is indeed that of my VPS where OpenVPN is.

                            minipc@minipc-iPC45:~$ curl https://ipv4.api.cloudron.io/api/v1/helper/public_ip
                            {
                              "ip": "91.163.111.16"
                            }minipc@minipc-iPC45:~$ curl https://ipv4.api.cloudron.io/api/v1/helper/public_p
                            { 
                              "ip": "91.199.223.67"
                            
                            

                            Running the telnet command in the Web terminal gives the same results as before.

                            On my end, I tried checking the open ports on that VPS with "ss -tunlp" and it seems that ports 465 and 587 are not open, but 80 and 443 are. I tried opening the port with "nc -lk 465" command, but nothing happens. In doubt, I opened a ticket with the VPS provider asking if they can open port 465. Waiting for answer.

                            Other thought was, do I need to enable email in Cloudron that is on that VPS, so that the ports for email are open?

                            1 Reply Last reply
                            0
                            • girishG girish

                              @abargel mmm. Just to double check, can you check if all traffic is indeed going via the VPN ? (curl https://ipv4.api.cloudron.io/api/v1/helper/public_ip)

                              Next step to debug after confirming above:

                              • Open Web terminal in VPN app.
                              • Run the telnet commands on different ports. I suspect things are failing here too. If so, then there is some routing issue.
                              A Offline
                              A Offline
                              abargel
                              wrote on last edited by
                              #15

                              @girish Oh, never mind, it was an SMTP OUT block by the VPS provider... I didn't think that it would apply to running email from another server through OpenVPN on this one...
                              Sorry for taking your time with this, and thanks again.

                              1 Reply Last reply
                              1
                              • A abargel has marked this topic as solved on
                              • girishG girish has marked this topic as unsolved on
                              • girishG girish has marked this topic as solved on
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Bookmarks
                              • Search