Dovecot version not recognized correctly

  • Hello,


    I have updated my i-MSCP recently from 1.3.16 to 1.4.0 and noticed in the logfiles a message regarding deprecated autcreate plugin usage (Ubuntu 16.04). As I digged into it I found out that the po-Server installer for Dovecot checks the version of dovecot installed and uses either the dovecot.conf.2.0 or docecot.conf.2.1 depending on the version of dovecot. I checked the setup.log and found the output Servers::po::dovecot::installer::_getVersion: 2.2.22 (fe789d2). It seems that the version parsing in this line (./engine/PerlLib/Servers/po/dovecot/installer.pm, Line 460) my $isDovecot21 = version->parse( $self->{'version'} ) >= version->parse( '2.1.0' ); does not work for my version output.
    I have a similar issue with one dovecot plugin checking the version -> see here). Has anyone an idea how to get this working?


    Best regards Jörg

    (Ubuntu 16.04, i-MSCP 1.5.1, php-Fpm, Plugins: ClamAV, CronJobs, InstantSSH, LetsEncrypt, Mailgraph, Monitorix, OpenDKIM, PhpSwitcher, PolicydSPF, Postscreen, RecaptchaPMA, RoundcubePlugins, ServerDefaultPage, SpamAssassin, YubiKeyAuth)

  • @UncleJ


    It seems that the version parsing in this line (./engine/PerlLib/Servers/po/dovecot/installer.pm, Line 460) my $isDovecot21 = version->parse( $self->{'version'} ) >= version->parse( '2.1.0' ); does not work for my version output.

    Could you say us what do not work exactly?


    Current result?
    ...
    Expected result?
    ...

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hello @Nuxwin,


    thanks for the fast reply.


    Expected behaviour to use the dovecot.conf.2.1 template.


    Current behaviour is that dovecot.conf.2.0 template is used as version is not recognized correctly.


    Regards Jörg

    (Ubuntu 16.04, i-MSCP 1.5.1, php-Fpm, Plugins: ClamAV, CronJobs, InstantSSH, LetsEncrypt, Mailgraph, Monitorix, OpenDKIM, PhpSwitcher, PolicydSPF, Postscreen, RecaptchaPMA, RoundcubePlugins, ServerDefaultPage, SpamAssassin, YubiKeyAuth)

  • @UncleJ


    I'll check on xenial ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @UncleJ


    The problem is not on version parsing there ;) The problem is on conditional statement at line 463:


    Perl
    1. (($isDovecot21) ? 'dovecot.conf.2.0' : 'dovecot.conf.2.1') =>


    should be


    Perl
    1. (($isDovecot21) ? 'dovecot.conf.2.1' : 'dovecot.conf.2.0') =>

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @UncleJ


    A fix has been added in our development branch.
    See https://github.com/i-MSCP/imsc…f81ccdab005a82e54921b8706
    This fix will be part of next release.


    Thank you for your report.
    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206