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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Quick question about email

    Support
    email
    3
    15
    342
    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.
    • A
      abargel last edited by girish

      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?

      nebulon 1 Reply Last reply Reply Quote 0
      • A
        abargel @girish last edited by

        @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 Reply Quote 1
        • nebulon
          nebulon Staff @abargel last edited by

          @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 Reply Quote 0
          • Topic has been marked as a question  nebulon nebulon 
          • A
            abargel @nebulon last edited by

            @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!!

            nebulon 1 Reply Last reply Reply Quote 0
            • nebulon
              nebulon Staff @abargel last edited by

              @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 Reply Quote 0
              • A
                abargel @nebulon last edited by

                @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 girish 2 Replies Last reply Reply Quote 0
                • A
                  abargel @abargel last edited by

                  @abargel *nor how it is setup

                  1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @abargel last edited by

                    @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 Reply Quote 0
                    • A
                      abargel @girish last edited by

                      @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.

                      girish 1 Reply Last reply Reply Quote 0
                      • girish
                        girish Staff @abargel last edited by

                        @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 Reply Quote 0
                        • A
                          abargel @girish last edited by

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

                          girish 1 Reply Last reply Reply Quote 0
                          • girish
                            girish Staff @abargel last edited by

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

                            A 1 Reply Last reply Reply Quote 0
                            • A
                              abargel @girish last edited by

                              @girish 80 and 443 work, 587 doesn't

                              girish 1 Reply Last reply Reply Quote 0
                              • girish
                                girish Staff @abargel last edited by

                                @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 Reply Quote 0
                                • A
                                  abargel @girish last edited by

                                  @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 Reply Quote 0
                                  • A
                                    abargel @girish last edited by

                                    @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 Reply Quote 1
                                    • Topic has been marked as solved  A abargel 
                                    • Topic has been marked as unsolved  girish girish 
                                    • Topic has been marked as solved  girish girish 
                                    • First post
                                      Last post
                                    Powered by NodeBB