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. Nextcloud
  3. Unable to read email via Nextcloud Mail app

Unable to read email via Nextcloud Mail app

Scheduled Pinned Locked Moved Nextcloud
10 Posts 3 Posters 563 Views 4 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.
  • K Offline
    K Offline
    khm_
    wrote on last edited by
    #1

    Mail stopped working recently; updating to 5.1.1 did not help. When attempting to use the Mail app, the web console reports errors like

    ServiceException IMAP error synchronizing account 5: No password provided. 
    Could not load account mailboxes: IMAP error synchronizing account 5: No password provided.
    

    Around the same time, I started seeing errors in the logs like

    NoUserException Backends provided no user object
    

    and

     Horde_Imap_Client_Exception No password provided.
    Error while running background job OCA\Mail\BackgroundJob\QuotaJob (id: 14118, arguments: {"accountId":5})
    

    It seems the Calendar app is similarly affected.

    andreasduerenA 1 Reply Last reply
    1
    • K khm_

      Mail stopped working recently; updating to 5.1.1 did not help. When attempting to use the Mail app, the web console reports errors like

      ServiceException IMAP error synchronizing account 5: No password provided. 
      Could not load account mailboxes: IMAP error synchronizing account 5: No password provided.
      

      Around the same time, I started seeing errors in the logs like

      NoUserException Backends provided no user object
      

      and

       Horde_Imap_Client_Exception No password provided.
      Error while running background job OCA\Mail\BackgroundJob\QuotaJob (id: 14118, arguments: {"accountId":5})
      

      It seems the Calendar app is similarly affected.

      andreasduerenA Offline
      andreasduerenA Offline
      andreasdueren
      wrote on last edited by
      #2

      @khm_ Unfortunately this is a downside of using SSO. There is the "Master Password" feature to work around that. But faik there is no solution within cloudron for that though.

      1 Reply Last reply
      1
      • K Offline
        K Offline
        khm_
        wrote on last edited by
        #3

        Thanks for the information. Is it not possible to revert to LDAP auth?

        1 Reply Last reply
        0
        • J Offline
          J Offline
          joseph
          Staff
          wrote on last edited by
          #4

          @khm_ oauth is the way forward. In recent future, email auth will also move to oauth. Just using passwords is not secure anymore.

          I just tested it, you just need an app password from Cloudron . https://docs.cloudron.io/profile/#app-passwords . Choose Mail Client . Each user has to create one for the mailboxes they own and put it in nextcloud mail app. After that it works even after relogin.

          andreasduerenA 1 Reply Last reply
          2
          • J joseph

            @khm_ oauth is the way forward. In recent future, email auth will also move to oauth. Just using passwords is not secure anymore.

            I just tested it, you just need an app password from Cloudron . https://docs.cloudron.io/profile/#app-passwords . Choose Mail Client . Each user has to create one for the mailboxes they own and put it in nextcloud mail app. After that it works even after relogin.

            andreasduerenA Offline
            andreasduerenA Offline
            andreasdueren
            wrote on last edited by
            #5

            @joseph only automatic configuration will fail. Manual still works without issues. Alternatively have people use SoGo

            1 Reply Last reply
            0
            • J Offline
              J Offline
              joseph
              Staff
              wrote on last edited by
              #6

              @andreasdueren what does automatic configuration mean? the mail app stores the raw cloudron password (how does it authenticate?)

              andreasduerenA 1 Reply Last reply
              0
              • J joseph

                @andreasdueren what does automatic configuration mean? the mail app stores the raw cloudron password (how does it authenticate?)

                andreasduerenA Offline
                andreasduerenA Offline
                andreasdueren
                wrote on last edited by
                #7

                @joseph Screenshot 2025-02-24 at 14.28.54.png

                Talking about the account provisioning

                1 Reply Last reply
                1
                • J Offline
                  J Offline
                  joseph
                  Staff
                  wrote on last edited by
                  #8

                  @andreasdueren yeah, I think the last line gives it away "only makes sense if you use the backend for nextcloud and mailserver" . So, it is taking the raw password that was given during nextcloud login and using it for the mail server. Seems a bit dangerous (to allow an app to get the raw password) but what do I know

                  andreasduerenA 1 Reply Last reply
                  1
                  • J joseph

                    @andreasdueren yeah, I think the last line gives it away "only makes sense if you use the backend for nextcloud and mailserver" . So, it is taking the raw password that was given during nextcloud login and using it for the mail server. Seems a bit dangerous (to allow an app to get the raw password) but what do I know

                    andreasduerenA Offline
                    andreasduerenA Offline
                    andreasdueren
                    wrote on last edited by
                    #9

                    @Joseph Yeah basically this seems to parse the password and store a hash every time you log in (to check for password changes) and if you used SSO this if obviously not possible. A way to enable global provisioning would be to generate a global master password for all mail accounts and then use that here. But I don't think this is a tradeoff I'd personally be willing to do, even if cloudron did offer that function.

                    J 1 Reply Last reply
                    0
                    • andreasduerenA andreasdueren

                      @Joseph Yeah basically this seems to parse the password and store a hash every time you log in (to check for password changes) and if you used SSO this if obviously not possible. A way to enable global provisioning would be to generate a global master password for all mail accounts and then use that here. But I don't think this is a tradeoff I'd personally be willing to do, even if cloudron did offer that function.

                      J Offline
                      J Offline
                      joseph
                      Staff
                      wrote on last edited by
                      #10

                      @andreasdueren a hash is not enough. you need the raw password to login to mail server . meaning, atleast it's not a one way hash. maybe raw password is stored in some obscure way , but it has to be reversible.

                      1 Reply Last reply
                      1
                      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