CyberHosting

Email Login Problem with Rainloop/Dovecot

Hello Everyone

Lately we've seen that there were lots of reports about email problem with Rainloop.

In CyberPanel version v1.8.5 and above we are using CRYPT format for email passwords. Which requires an upgrade in the Dovecot version.

Dovecot was upgraded in the upgrade process but due to plugin priorities upgrade did not went through for some users.

We've taken care of this issue in the upgrade and install process for future, however you can manually solve this issue by running this commands:

yum remove yum-plugin-priorities -y

Or open /etc/yum/pluginconf.d/priorities.conf and set enabled to 0.


Then open etc/yum.repos.d/dovecot.repo

and paste
[dovecot-2.3-latest]
name=Dovecot 2.3 CentOS $releasever - $basearch
baseurl=http://repo.dovecot.org/ce-2.3-latest/centos/$releasever/RPMS/$basearch
gpgkey=https://repo.dovecot.org/DOVECOT-REPO-GPG
gpgcheck=1
enabled=1
Finally upgrade dovecot
yum makecache -y
yum update -y
In case you can't get into Rainloop, try changing password for your emails.


These days we've received countless tickets and Facebook messages due to which we could not react in timely manner for all queries.

In case your issue is still not resolved you can reach us via helpdesk/forums. For bug reports do not use our Facebook group or live chat.


Sorry for any inconvenience caused.
«1

Comments

  • I confirm that the combination of the first command and the last two commands solved my problem.

    Many thanks for your competent help!
  • moneke said:

    I confirm that the combination of the first command and the last two commands solved my problem.

    Many thanks for your competent help!

    Can you confirm the commands?

    I recently update to the latest version now cannot login to webmail.

    'yum remove yum-plugin-priorities -y' shows for me the following:

    'yum remove yum-plugin-priorities -y
    Loaded plugins: fastestmirror
    No Match for argument: yum-plugin-priorities
    No Packages marked for removal'

  • @yessi

    You can then continue with further steps.
  • > @CyberPanel said:
    > @yessi
    >
    > You can then continue with further steps.

    I've done all that and still the same.

    I did notice during latest update however that I saw a message saying grub2 tools or something is duplicated.
  • @yessi

    You can't login to Rainloop ? Can you grab the message from journalctl -f | grep dovecot

    Capture the output when you try to log in to Rainloop.
  • As noted in my ticket, my emails still do not work and I was already on Dovecot 2.3.
  • edited July 23
    There is another issue now too which appears to be with the Let’s Encrypt SSL certificates no longer automatically refreshing. Please fix!
  • @Hifihedgehog

    Kindly don't use this thread for multiple issues.

    However Lets Encrypt renew failure can be due to many other reasons.

    Force redirect, application configured to use https etc.
  • Respectfully, there are many errors and much damage that these hastily released updates caused. I already noted in my ticket that I do not have the database tools to restore the passwords that your upgrade script had corrupted. In an effort to give you a chance to mend this situation, I have invited you and invite you again to fix your mistake starting with me. I understand it represents a lot of work, but I have been contributing to this community and I would welcome some reciprocation for it. I can even gladly donate some money for your time even but all I ask is your help. Thanks!
  • edited July 23
    Plus, as mentioned earlier, email passwords need to have a $ character in them in some cases. Has this been fixed and if so, is it safe to rerun the CyberPanel upgrade script to apply the fix?
  • @Hifihedgehog

    No doubt you have contributions, but you do have to understand our contributions to the community as well.

    Helping all our free users either via helpdesk or forums. Right now there is so much to do, that is why things are bit slow, but all the tickets and threads are pretty much answered along with bug fixes.
  • edited July 24
    Totally understandable. Coming from a more traditional, business developer background, though, I have learned earlier on that whenever changes are introduced and proper validation is not guaranteed, I am the sole party who is responsible and culpable if I rushed a feature out which caused damage to the user's data and configuration. I understand how many hours of unpaid work your current development paradigm has invested but that unfortunately still does not preclude you for the responsibility of proper validation and taking responsibility and recovering when the onus is on yourself, no matter how painful and time-consuming it is. It is a painful lesson in the school of hard knocks, to be sure, but everyone has to learn it early on or no one will take them seriously or trust in their work. Otherwise, if users see their data as written off as a casualty even when they have backups or other means that you could effectively restore or provide tools to restore, it sends the clear signal that you do not take their data seriously. Some solutions to avoid this pitfall include not being reactionary in tense critical security-related situations like this one and instead being proactive in order to avoid collateral damage and negative feedback. Just some food for thought.
  • @Hifihedgehog

    Agreed and lesson learned. Though responded your ticket regarding how you can generate the password in crypt format through PHP.
  • @Hifihedgehog

    Agreed and lesson learned. Though responded your ticket regarding how you can generate the password in crypt format through PHP.

    I did! And not only that, but I also just finished a full, custom CyberPanel password changing plugin for Rainloop! :D I will be uploading it very soon now!
  • Done and done. I also initiated a pull request. So hopefully, it should be added very soon to the official Rainloop project. If this meets your approval team @CyberPanel, please let the Rainloop team know that they can go ahead and add it:

    https://github.com/hifihedgehog/rainloop-webmail/tree/master/plugins/change-password-cyberpanel
    https://github.com/RainLoop/rainloop-webmail/pull/1888
  • Great, so far so good.
  • edited July 26
    Great to hear! :D Per Rainloop's recommendation, I added escaping of special characters to the variables that are in the SQL statements (not present in their custom SQL password plug-in, but a good thing to have for security's sake, nonetheless). With that now knocked out, they should hopefully approve it soon and commit it to their main repo.
  • Thank you !! Worked!!
  • edited August 2
    Hello again friends,

    As directed by the indicated commands, unfortunately the correction is not possible, according to the executed commands and answers below:

    1st OPTION
    [root@vmi208383 ~]# yum remove yum-plugin-priorities -y
    Loaded plugins: fastestmirror


    File contains parsing errors: file:///etc/yum.repos.d/dovecot.repo
    [line 2]: name=Dovecot 2.3 CentOS 7 - x86_64

    [line 3]: baseurl=http://repo.dovecot.org/ce-2.3-latest/centos/7/RPMS/x86_64

    [line 4]: gpgkey=https://repo.dovecot.org/DOVECOT-REPO-GPG

    [line 5]: gpgcheck=1

    [line 6]: enabled=1
    [root@vmi208383 ~]#

    ================================================== ====
    2nd OPTION
    [root@vmi208383 ~]# /etc/yum/pluginconf.d/priorities.conf
    -bash: /etc/yum/pluginconf.d/priorities.conf: No such file or directory
    [root@vmi208383 ~]#


    ================================================== ====
    NOTE: Even now when trying to update the OS is in error.
    [root @ vmi208383 ~] # yum update
    Loaded plugins: fastestmirror


    File contains parsing errors: file: ///etc/yum.repos.d/dovecot.repo
    [line 2]: name = Dovecot 2.3 CentOS 7 - x86_64

    [line 3]: baseurl = http: //repo.dovecot.org/ce-2.3-latest/centos/7/RPMS/x86_64

    [line 4]: gpgkey = https: //repo.dovecot.org/DOVECOT-REPO-GPG

    [line 5]: gpgcheck = 1

    [line 6]: enabled = 1
    [root @ vmi208383 ~] #
    ================================================
    What steps to take?
  • Remove this file /etc/yum.repos.d/dovecot.repo and try again.
  • Enjoy your accelerated Internet by CyberPanel & OpenLiteSpeed

    [root@vmi208383 ~]# /etc/yum.repos.d/dovecot.repo
    -bash: /etc/yum.repos.d/dovecot.repo: Permission denied
    [root@vmi208383 ~]#
    😔
  • The lines 2-6 in /etc/yum.repos.d/dovecot.repo are indented. Just remove the spaces in front of them using a editor like vim, nano etc so that it looks like this: https://cl.ly/d2fd2cccd9c0

    Save the file, and run yum update again.
  • 😔😔 [root@vmi208383 ~]# yum apt-get install nano
    Loaded plugins: fastestmirror
    No such command: apt-get. Please use /usr/bin/yum --help
    [root@vmi208383 ~]#
  • There is no apt-get on CentOS.
    yum install nano should do the trick, but with the corrupted repo file it will not work anyway. You can use vi though.
  • George, thanks for your help, but even as directed by the command line: yum install nano, does the error persist, so if not abuse, have I given you more guidance?
    The mistake below when I entered the command
    [root @ vmi208383 ~] # yum install nano
    Loaded plugins: fastestmirror

    File contains parsing errors: file: ///etc/yum.repos.d/dovecot.repo
    [line 2]: name = Dovecot 2.3 CentOS 7 - x86_64

    [line 3]: baseurl = http: //repo.dovecot.org/ce-2.3-latest/centos/7/RPMS/x86_64

    [line 4]: gpgkey = https: //repo.dovecot.org/DOVECOT-REPO-GPG

    [line 5]: gpgcheck = 1

    [line 6]: enabled = 1
    [root @ vmi208383 ~] #
  • You can remove this file /etc/yum.repos.d/dovecot.repo
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!