NethServer Imap problem

[root@nethserver ~]# config show sysconfig
sysconfig=configuration
Copyright=
DefaultLanguage=en_US.utf8
NsReleaseLock=enabled
ProductName=NethServer
Release=final
Version=7.5.1804
ZeroConf=enabled

[root@nethserver ~]# config show sysconfig
sysconfig=configuration
Copyright=
DefaultLanguage=en_US.utf8
NsReleaseLock=enabled
ProductName=NethServer
Release=final
Version=7.5.1804
ZeroConf=enabled
[root@nethserver ~]# ^C
[root@nethserver ~]# config show yum-cron
yum-cron=service
applyUpdate=yes
customMail=
download=yes
messages=no
randomWait=360
status=enabled

[root@nethserver ~]# yum repolist -v
Loading “changelog” plugin
Loading “fastestmirror” plugin
Loading “nethserver_events” plugin
Config time: 0.020
Yum version: 3.4.3
Loading mirror speeds from cached hostfile

Repo-id : ce-extras/7/x86_64
Repo-name : CE-Extras-7.5.1804
Repo-revision: 1541683984
Repo-updated : Thu Nov 8 14:36:55 2018
Repo-pkgs : 434
Repo-size : 806 M
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=ce-extras&arch=x86_64&nsrelease=7.5.1804
Repo-baseurl : http://mirror.centos.org/centos/7.5.1804/extras/x86_64/ (8 more)
Repo-expire : 21,600 second(s) (last: Tue Dec 4 08:52:18 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/NsReleaseLock.repo

Repo-id : ce-updates/7/x86_64
Repo-name : CE-Updates-7.5.1804
Repo-revision: 1540837319
Repo-updated : Mon Oct 29 19:33:45 2018
Repo-pkgs : 1,613
Repo-size : 5.7 G
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=ce-updates&arch=x86_64&nsrelease=7.5.1804
Repo-baseurl : http://mirror.centos.org/centos/7.5.1804/updates/x86_64/ (8 more)
Repo-expire : 21,600 second(s) (last: Tue Dec 4 08:52:19 2018)
Filter : read-only:present
Repo-excluded: 1
Repo-filename: /etc/yum.repos.d/NsReleaseLock.repo

Repo-id : centos-sclo-rh/x86_64
Repo-name : CentOS-7 - SCLo rh
Repo-revision: 1543522499
Repo-updated : Thu Nov 29 21:16:52 2018
Repo-pkgs : 7,750
Repo-size : 6.4 G
Repo-baseurl : http://mirror.centos.org/centos/7/sclo/x86_64/rh/
Repo-expire : 21,600 second(s) (last: Tue Dec 4 08:52:19 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo

Repo-id : centos-sclo-sclo/x86_64
Repo-name : CentOS-7 - SCLo sclo
Repo-revision: 1543512024
Repo-updated : Thu Nov 29 18:20:28 2018
Repo-pkgs : 682
Repo-size : 228 M
Repo-baseurl : http://mirror.centos.org/centos/7/sclo/x86_64/sclo/
Repo-expire : 21,600 second(s) (last: Tue Dec 4 08:52:19 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-SCLo-scl.repo

Repo-id : epel/x86_64
Repo-name : Extra Packages for Enterprise Linux 7 - x86_64
Repo-revision: 1543851095
Repo-updated : Mon Dec 3 16:44:43 2018
Repo-pkgs : 12,720
Repo-size : 14 G
Repo-metalink: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64
Updated : Tue Dec 4 01:32:52 2018
Repo-baseurl : http://mirrors.colocall.net/epel/7/x86_64/ (68 more)
Repo-expire : 21,600 second(s) (last: Tue Dec 4 08:52:21 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/epel.repo

Repo-id : nethforge/7/x86_64
Repo-name : NethForge 7
Repo-revision: 1541262563
Repo-updated : Sat Nov 3 17:29:24 2018
Repo-pkgs : 63
Repo-size : 175 M
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=nethforge&arch=x86_64&nsrelease=7.5.1804
Repo-baseurl : http://mirror.nethserver.org/nethserver/7.5.1804/nethforge/x86_64/ (17 more)
Repo-expire : 21,600 second(s) (last: Tue Dec 4 08:52:21 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/NethForge.repo

Repo-id : nethserver-base/7/x86_64
Repo-name : NethServer-7 - Base
Repo-revision: 1528711431
Repo-updated : Mon Jun 11 12:03:55 2018
Repo-pkgs : 283
Repo-size : 1.0 G
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=base&arch=x86_64&nsrelease=7.5.1804
Repo-baseurl : http://mirror.nethserver.org/nethserver/7.5.1804/base/x86_64/ (17 more)
Repo-expire : 21,600 second(s) (last: Tue Dec 4 08:52:21 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

Repo-id : nethserver-updates/7/x86_64
Repo-name : NethServer-7 - Updates
Repo-revision: 1543341016
Repo-updated : Tue Nov 27 18:50:30 2018
Repo-pkgs : 348
Repo-size : 1.2 G
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=updates&arch=x86_64&nsrelease=7.5.1804
Repo-baseurl : http://mirror.nethserver.org/nethserver/7.5.1804/updates/x86_64/ (17 more)
Repo-expire : 21,600 second(s) (last: Tue Dec 4 08:52:22 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

repolist: 33,804

Software center but I don’t have 7.6 version, I have NethServer release 7.5.1804

Did you read this message?

Please attach the output of

 grep POST /var/log/httpd-admin/access_log

If your last change was pressing the UPDATE button, as workaround you could try

yum history undo last

[root@nethserver ~]# grep POST /var/log/httpd-admin/access_log
192.168.1.51 - - [04/Dec/2018:08:19:04 +0100] “POST /it-IT/Login.json HTTP/1.1” 200 514
192.168.1.51 - - [04/Dec/2018:08:40:36 +0100] “POST /it-IT/NetworkAdapter/CleanPhysicalInterface/ens34.json HTTP/1.1” 200 907
192.168.1.51 - - [04/Dec/2018:08:57:30 +0100] “POST /it-IT/LocalNetwork/delete/192.168.70.0.json HTTP/1.1” 200 910
192.168.1.51 - - [04/Dec/2018:08:57:53 +0100] “POST /it-IT/NetworkAdapter/DNS.json HTTP/1.1” 200 895
192.168.1.51 - - [04/Dec/2018:09:01:05 +0100] “POST /it-IT/Services/stop/dovecot.json HTTP/1.1” 200 5862
192.168.1.51 - - [04/Dec/2018:09:01:17 +0100] “POST /it-IT/Services/start/dovecot.json HTTP/1.1” 200 5925
192.168.1.51 - - [04/Dec/2018:09:18:19 +0100] “POST /it-IT/Ssh.json HTTP/1.1” 200 299
192.168.1.51 - - [04/Dec/2018:09:32:24 +0100] “POST /it-IT/Services/stop/rspamd.json HTTP/1.1” 200 5861
192.168.1.51 - - [04/Dec/2018:09:32:53 +0100] “POST /it-IT/Services/start/rspamd.json HTTP/1.1” 200 5923
192.168.1.51 - - [04/Dec/2018:09:43:15 +0100] “POST /it-IT/PackageManager/Configuration.json HTTP/1.1” 200 916
192.168.1.51 - - [04/Dec/2018:09:43:49 +0100] “POST /it-IT/PackageManager/Configuration.json HTTP/1.1” 200 917

I had the same problem today. Updates were “locked”, but the new dovecot package was installed automatically nonetheless (with “Download updates” and “Install updates automatically” both ticked).

I fixed IMAP temporarily by disabling the antispam plugin in dovecot.conf.

1 Like

I don’t have this message :frowning:
I do’t ever seen this message

same problem here

how did you disable the plugin?

Thank you for chiming in!

This looks a big issue! I need more information from your log files to understand what happened.

I guess dovecot was installed automatically

Please @oliver, @ohifra: attach the output of

 yum history pkg-info dovecot
 grep NsReleaseLock /var/log/messages

Please share your workaround!

I guess we can edit /etc/dovecot.conf and remove “antispam” from the `mail_plugins" line

[root@nethserver ~]# yum history pkg-info dovecot
Loaded plugins: changelog, fastestmirror, nethserver_events
Transaction ID : 133
Begin time : Tue Dec 4 08:15:25 2018
Package : dovecot-1:2.2.10-8.el7.x86_64
State : Updated
Size : 10,249,846
Build host : c1bm.rdu2.centos.org
Build time : Thu Aug 3 08:52:54 2017
Packager : CentOS BuildSystem http://bugs.centos.org
Vendor : CentOS
License : MIT and LGPLv2
URL : http://www.dovecot.org/
Source RPM : dovecot-2.2.10-8.el7.src.rpm
Commit Time : Tue Mar 21 13:00:00 2017
Committer : Michal Hlavinka mhlavink@redhat.com
Reason : dep
From repo : base
Installed by : System

Transaction ID : 133
Begin time : Tue Dec 4 08:15:25 2018
Package : dovecot-1:2.2.36-3.el7.x86_64
State : Update
Size : 14,868,869
Build host : x86-01.bsys.centos.org
Build time : Wed Oct 31 01:24:57 2018
Packager : CentOS BuildSystem http://bugs.centos.org
Vendor : CentOS
License : MIT and LGPLv2
URL : http://www.dovecot.org/
Source RPM : dovecot-2.2.36-3.el7.src.rpm
Commit Time : Wed Sep 19 14:00:00 2018
Committer : Michal Hlavinka mhlavink@redhat.com
Reason : dep
From repo : base
Installed by : System
Changed by : root

Transaction ID : 3
Begin time : Wed Nov 15 20:53:59 2017
Package : dovecot-1:2.2.10-8.el7.x86_64
State : Dep-Install
Size : 10,249,846
Build host : c1bm.rdu2.centos.org
Build time : Thu Aug 3 08:52:54 2017
Packager : CentOS BuildSystem http://bugs.centos.org
Vendor : CentOS
License : MIT and LGPLv2
URL : http://www.dovecot.org/
Source RPM : dovecot-2.2.10-8.el7.src.rpm
Commit Time : Tue Mar 21 13:00:00 2017
Committer : Michal Hlavinka mhlavink@redhat.com
Reason : dep
From repo : base
Installed by : System
history pkg-info

[root@nethserver ~]# grep NsReleaseLock /var/log/messages
Dec 4 08:21:21 nethserver /sbin/e-smith/db[81454]: /var/lib/nethserver/db/configuration: OLD sysconfig=configuration|Copyright||DefaultLanguage|en_US.utf8|NsReleaseLock|disabled|ProductName|NethServer|Release|final|Version|7.5.1804|ZeroConf|enabled
Dec 4 08:21:21 nethserver /sbin/e-smith/db[81454]: /var/lib/nethserver/db/configuration: NEW sysconfig=configuration|Copyright||DefaultLanguage|en_US.utf8|NsReleaseLock|enabled|ProductName|NethServer|Release|final|Version|7.5.1804|ZeroConf|enabled
Dec 4 09:43:49 nethserver /sbin/e-smith/db[15021]: /var/lib/nethserver/db/configuration: OLD sysconfig=configuration|Copyright||DefaultLanguage|en_US.utf8|NsReleaseLock|enabled|ProductName|NethServer|Release|final|Version|7.5.1804|ZeroConf|enabled
Dec 4 09:43:49 nethserver /sbin/e-smith/db[15021]: /var/lib/nethserver/db/configuration: NEW sysconfig=configuration|Copyright||DefaultLanguage|en_US.utf8|NsReleaseLock|disabled|ProductName|NethServer|Release|final|Version|7.5.1804|ZeroConf|enabled
Dec 4 09:50:21 nethserver /sbin/e-smith/db[16503]: /var/lib/nethserver/db/configuration: OLD sysconfig=configuration|Copyright||DefaultLanguage|en_US.utf8|NsReleaseLock|disabled|ProductName|NethServer|Release|final|Version|7.5.1804|ZeroConf|enabled
Dec 4 09:50:21 nethserver /sbin/e-smith/db[16503]: /var/lib/nethserver/db/configuration: NEW sysconfig=configuration|Copyright||DefaultLanguage|en_US.utf8|NsReleaseLock|enabled|ProductName|NethServer|Release|final|Version|7.5.1804|ZeroConf|enabled

Run the following commands to disable the antispam plugin:

mkdir -p /etc/e-smith/templates-custom/etc/dovecot/dovecot.conf/
touch /etc/e-smith/templates-custom/etc/dovecot/dovecot.conf/50spam_training
expand-template /etc/dovecot/dovecot.conf 
systemctl stop dovecot.service
systemctl start dovecot.service

To undo:

rm /etc/e-smith/templates-custom/etc/dovecot/dovecot.conf/50spam_training
expand-template /etc/dovecot/dovecot.conf 
systemctl stop dovecot.service
systemctl start dovecot.service
3 Likes
yum history pkg-info dovecot
Loaded plugins: changelog, fastestmirror, nethserver_events
Transaction ID : 56
Begin time     : Tue Dec  4 03:53:52 2018
Package        : dovecot-1:2.2.10-8.el7.x86_64
State          : Updated
Size           : 10,249,846
Build host     : c1bm.rdu2.centos.org
Build time     : Thu Aug  3 08:52:54 2017
Packager       : CentOS BuildSystem <http://bugs.centos.org>
Vendor         : CentOS
License        : MIT and LGPLv2
URL            : http://www.dovecot.org/
Source RPM     : dovecot-2.2.10-8.el7.src.rpm
Commit Time    : Tue Mar 21 13:00:00 2017
Committer      : Michal Hlavinka <mhlavink@redhat.com>
Reason         : dep
From repo      : base
Installed by   : System <unset>

Transaction ID : 56
Begin time     : Tue Dec  4 03:53:52 2018
Package        : dovecot-1:2.2.36-3.el7.x86_64
State          : Update
Size           : 14,868,869
Build host     : x86-01.bsys.centos.org
Build time     : Wed Oct 31 01:24:57 2018
Packager       : CentOS BuildSystem <http://bugs.centos.org>
Vendor         : CentOS
License        : MIT and LGPLv2
URL            : http://www.dovecot.org/
Source RPM     : dovecot-2.2.36-3.el7.src.rpm
Commit Time    : Wed Sep 19 14:00:00 2018
Committer      : Michal Hlavinka <mhlavink@redhat.com>
Reason         : dep
From repo      : base
Installed by   : System <unset>
Changed by     : root <root>

Transaction ID : 3
Begin time     : Fri Feb  2 10:53:23 2018
Package        : dovecot-1:2.2.10-8.el7.x86_64
State          : Dep-Install
Size           : 10,249,846
Build host     : c1bm.rdu2.centos.org
Build time     : Thu Aug  3 08:52:54 2017
Packager       : CentOS BuildSystem <http://bugs.centos.org>
Vendor         : CentOS
License        : MIT and LGPLv2
URL            : http://www.dovecot.org/
Source RPM     : dovecot-2.2.10-8.el7.src.rpm
Commit Time    : Tue Mar 21 13:00:00 2017
Committer      : Michal Hlavinka <mhlavink@redhat.com>
Reason         : dep
From repo      : base
Installed by   : System <unset>
history pkg-info

7 posts were split to a new topic: Unexpected update to 7.6.1810

Thanks so much now all works fine

1 Like

Now I have another problem.
I have all the emails in the queue and NethServer can not send them
This problem was born after I deactivated the antispam plugin

As workaround it is now possible to upgrade to 7.6.1810 beta, as explained here

After that, remove the template-custom as explained above

You may also have to deactivate the anti spam filter rules (I did so some time ago). You can do this in the web interface under Configuration / Email / Filter.

1 Like

Ok, I waited a few minutes and now they all left.
Thank you and sorry