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 Error using external smtp mail server

    Discourse
    3
    5
    256
    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
      SolarSimon last edited by SolarSimon

      Hi there, I successfully migrated from a selfhosted docker installation to cloudron. So far as I can see everything works fine.

      Only sending mails doesn't work. I configurated the domain to use an external smtp. I used that same smtp server for my selfhosted discourse installations.
      There I had to configure mail-login in containers/app.yml

      My App-configuration in Cloudron

      • E-Mail FROM Adresse: mail@domain
      • x Do not configure inbox

      My mail-configuration for domain

      • external smtp
      • status: test Mail arrives

      My Mail Event Log:

      no-reply@domain 	admin@domain 	Delivered mail
      community+verp-7077d0c715a9701676aba02c5ae1ce03@domain 	- 	Connection denied. Authenticated user community@domain cannot send mail as community+verp-7077d0c715a9701676aba02c5ae1ce03@domain
      

      Discourse settings: Delivery Method

      address: 	mail
      port:	2525
      domain: 	goodmotion.de
      user_name:	community@domain
      authentication: 	plain
      enable_starttls_auto: 	true
      

      I can not change these settings. Adress "mail" looks wrong, the port is also different then configured in cloudron external smtp

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

        The apps on Cloudron are packaged, so they will always use the email solution on coming with Cloudron. So your manual changes in discourse will be overwritten on every app start.

        In your case you can configure the other smtp server as the relay for that domain. This way all apps installed on that domain will have the same deliver-ability and don't need to be configured individually.

        1 Reply Last reply Reply Quote 1
        • S
          SolarSimon last edited by

          I had to enable Masquerading under settings.
          "Masquerading allows users and apps to send emails with an arbitrary username in the FROM address."

          nebulon girish 2 Replies Last reply Reply Quote 1
          • nebulon
            nebulon Staff @SolarSimon last edited by

            @solarsimon thanks for sharing your solution!

            1 Reply Last reply Reply Quote 2
            • girish
              girish Staff @SolarSimon last edited by girish

              @solarsimon mm, usually that should not be required. Did you set the mail from address of the discourse app in the Email view - https://docs.cloudron.io/apps/#mail-from-address ?

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB