🔴 January 2024 Alert: Forum support inactive!
New forum registration are currently closed.
Use GitHub discussions
.
  • Recent
  • Dark Theme
  • Login

UVdesk

  • Dark Theme
  • Login
  • Search
  • Recent

Solved In RefreshMailboxCommand.php line 88:

Technical Help
3
22
3.6k
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
    SCoccia last edited by 22 Oct 2021, 09:56

    I when I try to refresh-mailbox I receive a error

    ./bin/console uvdesk:refresh-mailbox helpdesk@mydomain.com
    
     1. Processing uvdesk mailbox configuration.
    
     2. Opening imap stream...
    
    In RefreshMailboxCommand.php line 88:
    
      Warning: imap_open(): Couldn't open stream mail.mydomain.com
    
    
    uvdesk:refresh-mailbox [-t|--timestamp TIMESTAMP] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<emails>...]
    
    PHP Fatal error:  Uncaught ErrorException: Notice: Unknown: Can't open mailbox mail.mydomain.com: no such mailbox (errflg=2) in Unknown:0
    Stack trace:
    #0 [internal function]: Symfony\Component\Debug\ErrorHandler->handleError()
    #1 {main}
      thrown in Unknown on line 0
    

    the login and password are correct, I have read that for Gmail we must put imap.gmail.com:993/imap/ssl but my server mail is the same of the Uvdesk why don't find the mailbox?

    1 Reply Last reply Reply Quote 0
    • Sanjeev
      Sanjeev developer UVdesk Staff last edited by Sanjeev 22 Oct 2021, 10:09 22 Oct 2021, 10:08

      @SCoccia

      We will recommend first setup a Gmail Email Id first and check if it is working for you or not.

      Then try with a custom email server email Id imap_open issue generally comes due to

      - Your credentials not correct.

      - Not sufficient permission provided for reading emails.

      - Some authentication failure due to any certificate check.

      For Gmail Do below things first:

      Enable less secure app for gmail: https://myaccount.google.com/lesssecureapps

      Please enable this also: https://accounts.google.com/b/0/DisplayUnlockCaptcha

      Locate path on your project.
      vendor/uvdesk/mailbox-component/Console/RefreshMailboxCommand.php

      open file and add below line there.

      Check in screenshot to add a line of code here: https://prnt.sc/w5bc5u

      Add this line for gmail:
      $server_host = "{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX";

      peopleinside 1 Reply Last reply 23 Oct 2021, 08:05 Reply Quote 0
      • Sanjeev
        Sanjeev developer UVdesk Staff last edited by 22 Oct 2021, 10:12

        @SCoccia

        You can add novalidate-cert in your $server_host if imap open issue is due to certificate check !!

        1 Reply Last reply Reply Quote 0
        • S
          SCoccia last edited by 22 Oct 2021, 10:22

          If I put user @gmail and smtp @gmail run... but why if I use my domani not accept? I'm sure that all data are correct.. I use to mail client ecc

          1 Reply Last reply Reply Quote 0
          • Sanjeev
            Sanjeev developer UVdesk Staff last edited by 22 Oct 2021, 10:57

            @SCoccia

            You can user your own domain but for testing we have asked you to test first with gmail account.

            May be you need to make changes if due to any above reason it is not allowing you to open your your IMAP.

            1 Reply Last reply Reply Quote 0
            • peopleinside
              peopleinside EX helping member @Sanjeev last edited by peopleinside 23 Oct 2021, 08:08 23 Oct 2021, 08:05

              @Sanjeev I collaborated as Google volunteer contributor in the past and again I'm advising you that suggest to users to allow less secure app is like opening a security hole in users account. Maybe Google will disable this less secure app function in the future, I don't know.

              @SCoccia
              Google account should be always protected by the 2 step than user will need to use a specific app password as password in UVdesk settings email.

              💬 You can also ask help on GitHub Discussions
              🔴 I am no more active on Uvdesk
              🔴 Forum support is inactive!

              1 Reply Last reply Reply Quote 0
              • S
                SCoccia last edited by 23 Oct 2021, 09:14

                I think that there isn't all information when I configure a email, I can't set the port... I can't set the login... how can run outside Gmail or Yahoo if I can't modify this information?

                Immagine 2021-10-23 111229.png

                1 Reply Last reply Reply Quote 0
                • peopleinside
                  peopleinside EX helping member last edited by 23 Oct 2021, 09:17

                  Yes, the host file is not compiled correctly.
                  Please see the following guide: https://www.uvdesk.com/en/blog/setup-mailbox-uvdesk-open-source-helpdesk/

                  Host field should be compiled for example like:

                  {imap.mail.yahoo.com:993/imap/ssl}INBOX
                  

                  💬 You can also ask help on GitHub Discussions
                  🔴 I am no more active on Uvdesk
                  🔴 Forum support is inactive!

                  1 Reply Last reply Reply Quote 0
                  • S
                    SCoccia last edited by 23 Oct 2021, 09:24

                    why I must use a yahoo mail or gmail when I have a personal imap\pop? I must create a @yahoo@gmail account to receive a ticket? is not professional...
                    If can read yahoo\gmail why can't read other imap server?

                    peopleinside 1 Reply Last reply 23 Oct 2021, 09:26 Reply Quote 0
                    • peopleinside
                      peopleinside EX helping member @SCoccia last edited by 23 Oct 2021, 09:26

                      @SCoccia What I mentioned is an example.
                      You can replace imap.mail.yahoo.com with your domain.

                      I posted just an example.
                      Please read the guide of UVdesk I given in the previous message.

                      💬 You can also ask help on GitHub Discussions
                      🔴 I am no more active on Uvdesk
                      🔴 Forum support is inactive!

                      1 Reply Last reply Reply Quote 0
                      • S
                        SCoccia last edited by 23 Oct 2021, 09:35

                        ok... if I use gmail not recevice a error, but the problem is If I use my domain... I can't setup the correct information... I can't setup the port, the user login ecc I'm sure that login e password are correct

                        I had created a script in php to read the mail some time ago, and I used

                        $ hostname = '{localhost: 143 / notls}';
                        

                        but it doesn't work by putting this parameter on host either

                        peopleinside 1 Reply Last reply 23 Oct 2021, 09:55 Reply Quote 0
                        • S
                          SCoccia last edited by 23 Oct 2021, 09:52

                          Ok another step...
                          if I use this configuration I can read the email...

                          {mail.mydomain.it:143/notls}
                          

                          now work to send...

                          1 Reply Last reply Reply Quote 0
                          • peopleinside
                            peopleinside EX helping member @SCoccia last edited by peopleinside 23 Oct 2021, 09:56 23 Oct 2021, 09:55

                            @SCoccia use an email without TLS is a security issue.
                            You need to know how configure email and email host.
                            Are you sure your host is working on the format mail.mydomain.it ?
                            Are you sure the port is 143?

                            I use port 993 with a valid certificate.
                            Be sure settings you insert are correct and can work in a client email for example.
                            There is no bugs or issue in UVdesk as I'm using this and is working so if doesn't work is probably an error in some configuration you insert. Can be the port, can be that you have no security on email (no TLS), etc.

                            You can try maybe with Gmail as suggested but using a specific password for app.

                            Usually port for outgoing email is 587 or 465

                            💬 You can also ask help on GitHub Discussions
                            🔴 I am no more active on Uvdesk
                            🔴 Forum support is inactive!

                            1 Reply Last reply Reply Quote 0
                            • S
                              SCoccia last edited by 23 Oct 2021, 10:03

                              Yes, yes I use a ssl the example is only to set the information

                              Immagine 2021-10-23 115952.png

                              in the normal configuration when ask me host I put mail.domain.it but for this the configuration is different...
                              now I think that the smtp is the same? because if I use gmail work but receive the email from @gmail and I prefer @mydomain.it

                              peopleinside 1 Reply Last reply 23 Oct 2021, 11:20 Reply Quote 0
                              • S
                                SCoccia last edited by 23 Oct 2021, 10:13

                                ok I also configured the smtp (which was correct) so you should write that for the imap it must be put

                                {mail.mydomain.it:465/ssl}
                                

                                and is all ok

                                1 Reply Last reply Reply Quote 0
                                • peopleinside
                                  peopleinside EX helping member @SCoccia last edited by peopleinside 23 Oct 2021, 11:24 23 Oct 2021, 11:20

                                  @SCoccia Look at your host filed, is not configured correctly.
                                  You need specify the folder where email are (inbox)

                                  Please consider the example sent to you and be sure to respect it.
                                  If your domain has not been configured for have a valid certificate for email the system can be unable to send or receive emails also if you set the configuration correctly.

                                  If you try with Gmail you will be sure the certified used by Gmail is recognized.
                                  In my personal UVdesk install I use my domain but I have a valid certificate also for email that is not self signed.

                                  you can try to configure your email address in an email client be sure to not add any exception if you see a warning on the certificate. If you see a warning on the certificate than you can have issues or you need ignore the certificate check.

                                  I never remind what string you need add for ignore certificate verification.
                                  You can search on the web. Let me see if I can find for you.
                                  Ignore the cert verification can be a security weakness.

                                  If I will find how and what string I will tell you.

                                  Found, example below:

                                  {imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX
                                  

                                  💬 You can also ask help on GitHub Discussions
                                  🔴 I am no more active on Uvdesk
                                  🔴 Forum support is inactive!

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    SCoccia last edited by 23 Oct 2021, 12:56

                                    Hi, I understand and I have set to use ssl, I have a valid certificate, I don't need to se INBOX because is default, If I put it or no is the same.

                                    my advice is to make an example in the configuration file also for the other domains (extra google)

                                    I have resolve thank you.

                                    peopleinside 1 Reply Last reply 24 Oct 2021, 05:17 Reply Quote 0
                                    • peopleinside
                                      peopleinside EX helping member @SCoccia last edited by 24 Oct 2021, 05:17

                                      @SCoccia the configuration for your domain doesn't depend by us but it depends on DNS configuration of your domain for the hostname than port and SSL depends on your server configuration.

                                      A test you can do is configure an email client like Thunderbird.
                                      Are you able to configure your domain email domain address in Thunderbird without having warning certificate?

                                      Do you have other PHP application installed with SMTP of your domain that work?

                                      In any case below an example on how I configured host field on my personal domain:

                                      1.jpg

                                      2.jpg

                                      Now you have an example 😉

                                      💬 You can also ask help on GitHub Discussions
                                      🔴 I am no more active on Uvdesk
                                      🔴 Forum support is inactive!

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        SCoccia last edited by 24 Oct 2021, 13:35

                                        yes I see and is all ok

                                        1 Reply Last reply Reply Quote 0
                                        • Sanjeev
                                          Sanjeev developer UVdesk Staff last edited by 25 Oct 2021, 07:31

                                          @SCoccia

                                          Please share your helpdesk URL so that we can see if you are adding correct one or not for site url.

                                          1 Reply Last reply Reply Quote 0
                                          7 out of 22
                                          • First post
                                            7/22
                                            Last post