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 Use Cloudron email for sending email (smtp) on application hosted outside Cloudron

    Support
    mail
    3
    8
    448
    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
      andirahmat last edited by girish

      Hi. I have this need of using Cloudron email as and email server (smtp email relay/sending email) on application outside Cloudron. I have follow guide in here : https://docs.cloudron.io/email/#smtp

      In the application i have setup smtp config as follow :
      Driver : smtp
      Host : my.xxx.yyy (my main cloudron domain)
      Port : 587
      User : abc@xxx.yyy (i have created this mailbox in the cloudron email setting)
      Password : My Cloudron password where my user assign to the mailbox as owner
      Encryption : STARTTLS

      But when i test sending email, it says failed.

      I tried send and recieve email from roundcube it works fine.

      I need this to replace gmail smtp email relay using less secure app setting (on).

      Is there anyone face this problem before?

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

        @andirahmat Your settings seem correct. Does the app have any error logs?

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

          @girish I could not find error log related email. There is no error log on the apache.
          I tried send and recieve email from roundcube it works fine on cloudron.

          Can I use TLS as encryption on cloudron email server? Because when i use gmail as smtp with TLS it works fine. Or is it possible the app does not support STARTTLS.

          1 Reply Last reply Reply Quote 0
          • subven
            subven last edited by

            What app are we talking about?

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

              I am assuming it's a custom app. @andirahmat is it not your app? If so, why can't it log why it can't send mail?

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

                @girish yes I'm trying to contact the developer about the mail log.

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

                  @andirahmat You can test this with swaks.

                  swaks -server my.xxx.yyy:587 -tls --auth-user abc@xxx.yyy --auth-password password --to test@somemail.com --from abc@xxx.yyy
                  
                  A 1 Reply Last reply Reply Quote 0
                  • A
                    andirahmat @girish last edited by

                    @girish said in Use Cloudron email for sending email (smtp) on application hosted outside Cloudron:

                    @andirahmat You can test this with swaks.

                    swaks -server my.xxx.yyy:587 -tls --auth-user abc@xxx.yyy --auth-password password --to test@somemail.com --from abc@xxx.yyy
                    

                    I've tried this command and works well. The problem is the app, still waiting for the developer response. Thank you @girish

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