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 Mail server - How to expose ports for internal network

    Support
    mail
    3
    4
    207
    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.
    • C
      ChicagoGregg last edited by girish

      Hello,

      I couldn't find this question posed anywhere in the forum here (which is a little surprising as I thought it would be somewhat a common query)...

      Nor can I find any hints at: https://docs.cloudron.io/email/#inbound-ports

      Is it possible to expose its ports (25,465,587) to the local network so that mail can be sent (relayed) through the mail server and let it handle it going outbound? Figuring that Cloudron has this capability, and I'd only have a few emails per day requiring this, it should be able to provide this.

      A docker inspect shows no ports are exposed (obviously). I haven't dug into where this could be changed to expose it -- and whether Cloudron would just overwrite it or not when starting up the next time.

      Thanks!

      -gregg

      subven girish 2 Replies Last reply Reply Quote 0
      • subven
        subven @ChicagoGregg last edited by subven

        @ChicagoGregg from the docs:

        Email can only be relayed (including same-domain emails) by authenticated users using SMTP/STARTTLS.

        So no, you have to use SMTP in order to send out mails. Not having all services and ports exposed (besides the ones on this list) is kinda vital to the overall security of Cloudron.

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

          @ChicagoGregg said in Mail server - How to expose ports for internal network:

          Is it possible to expose its ports (25,465,587) to the local network so that mail can be sent (relayed) through the mail server and let it handle it going outbound? Figuring that Cloudron has this capability, and I'd only have a few emails per day requiring this, it should be able to provide this.

          If I understand correctly, you want to relay mail via another mail server. If so, just sent the relay using the External SMTP relay configuration.

          I am not quite following the part about exposing port 25/476/587 though. These are already exposed on the server. You have to configure your router/firewall to port forward those ports to the Cloudron internal IP.

          C 1 Reply Last reply Reply Quote 0
          • C
            ChicagoGregg @girish last edited by ChicagoGregg

            @girish said in Mail server - How to expose ports for internal network:

            @ChicagoGregg said in Mail server - How to expose ports for internal network:

            Is it possible to expose its ports (25,465,587) to the local network so that mail can be sent (relayed) through the mail server and let it handle it going outbound? Figuring that Cloudron has this capability, and I'd only have a few emails per day requiring this, it should be able to provide this.

            If I understand correctly, you want to relay mail via another mail server. If so, just sent the relay using the External SMTP relay configuration.

            I am not quite following the part about exposing port 25/476/587 though. These are already exposed on the server. You have to configure your router/firewall to port forward those ports to the Cloudron internal IP.

            Sorry for the tardy reply here. Thanks for both of your replies @subven and @girish .

            Originally, I was simply wanting to do something like

            Home Network (App sends email) -> Cloudron (on home network) accepts mail for relay from local home network 10.x.x.x -> sends to server through Internet connection (to my already-configured mail relay server, External w/ authentication)

            I was looking for an unauthenticated relay on the home network.

            Well, I suppose that Cloudron can't provide an unauthenticated relay point. So, I suppose the workaround is simply to configure a user and relay using authentication using a domain that is configured.

            I'm fine going this route... And I get why it's for that reason with security. 🙂

            Thanks for the help!

            -gregg

            1 Reply Last reply Reply Quote 1
            • Topic has been marked as a question  girish girish 
            • Topic has been marked as solved  girish girish 
            • First post
              Last post
            Powered by NodeBB