IMAP Config Failure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bobber
    Junior Member
    • Mar 2023
    • 10

    IMAP Config Failure

    When I try to set up an email account, the smtp works but imap does not. I get failure for port 993 for ssl or tls. The tls setting tries for a while but then shows error 500 cannot read. I have also tried using port 143 with TLS but that fails immediately. On my mail server it doesn't appear that there is any attempt to connect. Any ideas what is going on?
  • Vadym
    Super Moderator
    • Jun 2021
    • 352

    #2
    Hi Bobber,

    To get more details, please provide the EspoCRM error log and screenshot of the IMAP configuration. What IMAP server do you use?

    Comment

    • Bobber
      Junior Member
      • Mar 2023
      • 10

      #3
      Log:

      [2025-03-26 21:31:27] WARNING: (0) IMAP test connection failed; cannot read - connection closed? :: /srv/web/espocrm.edm-inc.com/htdocs/appl
      ication/Espo/Core/Mail/Account/PersonalAccount/StorageFactory.php(144)
      [2025-03-26 21:31:27] DEBUG: API (500) cannot read - connection closed?; POST /EmailAccount/action/testConnection; Input data: {"host":"mail
      .edm-inc.com","port":993,"security":"TLS","username":"s ome@somdom.com","password":null,"id":"67e31f759387 9a122", "emailAddress":" some@somedom.com","userId":"*****"}; Route pattern: /{controller}/action/{action}; Route params: Array ( [controller] => EmailA
      ccount [action] => testConnection )
      [2025-03-26 21:31:27] NOTICE: (500) cannot read - connection closed? :: POST /EmailAccount/action/testConnection :: /srv/web/espocrm.edm-inc
      .com/htdocs/application/Espo/Core/Mail/Account/PersonalAccount/Service.php(159)
      Last edited by Bobber; 03-27-2025, 09:40 PM.

      Comment

      • Bobber
        Junior Member
        • Mar 2023
        • 10

        #4
        Screen:
        Attached Files

        Comment

        • shalmaxb
          Senior Member
          • Mar 2015
          • 1650

          #5
          Did you try port 143?

          Comment

          • item
            Active Community Member
            • Mar 2017
            • 1512

            #6
            firewall ?

            If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

            Comment

            • Bobber
              Junior Member
              • Mar 2023
              • 10

              #7
              Originally posted by shalmaxb
              Did you try port 143?
              Port 143 fails immediately. It should be STARTTLS for 143 but that is not an option.

              Comment

              • Bobber
                Junior Member
                • Mar 2023
                • 10

                #8
                Originally posted by Vadym
                Hi Bobber,

                To get more details, please provide the EspoCRM error log and screenshot of the IMAP configuration. What IMAP server do you use?
                Using Dovecot.

                Comment

                • Bobber
                  Junior Member
                  • Mar 2023
                  • 10

                  #9
                  Originally posted by item
                  firewall ?
                  Nothing in the firewall log.

                  Comment


                  • item
                    item commented
                    Editing a comment
                    hi,

                    in my. case, firewall/router blocking by default theses port. so we need to add theses port to allowed rules.
                    ours espocrm in not on wan.
                Working...