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. Email relay issue, emails don't deliver

Email relay issue, emails don't deliver

Scheduled Pinned Locked Moved Solved Support
emailrelay
4 Posts 3 Posters 667 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.
  • LanhildL Online
    LanhildL Online
    Lanhild
    App Dev
    wrote on last edited by girish
    #1

    Hello,

    I've been searching all around about an issue I have with Cloudron and the email relay.

    For context:

    • Email domain is ca.example.com
    • App domain is cal.my.example.com
    • Cloudron domain is my.domain.com
    • DNS is DigitalOcean

    I'm using Mailgun as my email service, and setup ca.example.com as the email domain on Mailgun. I've followed all their instructions about adding the required DNS records.

    I then added the email relay in Cloudron using my SMTP credentials. Connection successful, but emails don't deliver at all.

    I'm getting the following error:
    2024-02-22_18-57-25.png

    Any clues? I'm really confused here.
    Regards.

    girishG 1 Reply Last reply
    1
    • robiR Offline
      robiR Offline
      robi
      wrote on last edited by
      #2

      It doesn't like that your email domain does not match your cloudron sender domain.

      Conscious tech

      1 Reply Last reply
      1
      • LanhildL Lanhild

        Hello,

        I've been searching all around about an issue I have with Cloudron and the email relay.

        For context:

        • Email domain is ca.example.com
        • App domain is cal.my.example.com
        • Cloudron domain is my.domain.com
        • DNS is DigitalOcean

        I'm using Mailgun as my email service, and setup ca.example.com as the email domain on Mailgun. I've followed all their instructions about adding the required DNS records.

        I then added the email relay in Cloudron using my SMTP credentials. Connection successful, but emails don't deliver at all.

        I'm getting the following error:
        2024-02-22_18-57-25.png

        Any clues? I'm really confused here.
        Regards.

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

        @Lanhild said in Email relay issue, emails don't deliver:

        Email domain is ca.example.com
        App domain is cal.my.example.com
        Cloudron domain is my.domain.com

        (Assuming, none of the above are typos... For example, app is really in cal.my.example.com and not cal.example.com?)

        If you added ca.example.com in mailgun, you can only send emails from *@ca.example.com . When an app tries to send email it will send it as MAIL FROM: app@cal.my.example.com . This will go to the relay and the relay will reject it. Auth will succeed but the MAIL FROM is not matching.

        To fix, they need to match. For example, add ca.example.com as a Domain on Cloudron. Then, it will appear in the Email view. Configure mailgun as relay for this Email domain. Then, configure the App -> Email section -> choose ca.example.com as the MAIL FROM.

        LanhildL 1 Reply Last reply
        1
        • girishG girish marked this topic as a question on
        • girishG girish

          @Lanhild said in Email relay issue, emails don't deliver:

          Email domain is ca.example.com
          App domain is cal.my.example.com
          Cloudron domain is my.domain.com

          (Assuming, none of the above are typos... For example, app is really in cal.my.example.com and not cal.example.com?)

          If you added ca.example.com in mailgun, you can only send emails from *@ca.example.com . When an app tries to send email it will send it as MAIL FROM: app@cal.my.example.com . This will go to the relay and the relay will reject it. Auth will succeed but the MAIL FROM is not matching.

          To fix, they need to match. For example, add ca.example.com as a Domain on Cloudron. Then, it will appear in the Email view. Configure mailgun as relay for this Email domain. Then, configure the App -> Email section -> choose ca.example.com as the MAIL FROM.

          LanhildL Online
          LanhildL Online
          Lanhild
          App Dev
          wrote on last edited by
          #4

          @girish Perfect, that solved it. Thanks!

          1 Reply Last reply
          0
          • nebulonN nebulon 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