• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk is showing the wrong mail server installed

memmerto

New Pleskian
We're running Plesk 12.5.30 on Centos 6.5, and recently upgraded from 12.0.18.

The problem we have is that Plesk is showing the wrong POP/IMAP servers installed, which causes problems when updating POP/IMAP configuration and performing service restarts.

In Home -> Tools & Settings it shows that Courier-IMAP is installed, but this is absolutely false since a) we don't have these packages installed and b) the Plesk installer says that Dovecot is installed.

```
[root@server149 ~]# rpm -qa | grep cour
psa-courier-unicode-1.2-centos6.15081418.x86_64
[root@server149 ~]# rpm -qa | grep dove
plesk-dovecot-imap-driver-12.5.30-cos6.build1205150826.19.x86_64
plesk-dovecot-core-2.2.18-centos6.15081914.x86_64
plesk-dovecot-2.2.18-centos6.15081914.x86_64
plesk-dovecot-pigeonhole-0.4.8-centos6.15081914.x86_64
```

Whenever we change something to do with POP/IMAP that requires a server restart, we get errors saying that courier-imap/pop3/etc can't be restarted (duh) and I have to go in and restart dovecot manually. The same thing happens when we run /usr/local/psa/admin/sbin/mchk --with-spam.

```
[root@server149 sbin]# /usr/local/psa/admin/sbin/mchk --with-spam
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_handlers_init... ok
==> Checking for: mailsrv_entities_dump... ok
==> Checking for: mail_admin_aliases... ok
==> Checking for: mail_auth_dump... ok
==> Checking for: mailman_lists_dump... ok
==> Checking for: mail_kav8_restore... ok
==> Checking for: mail_responder_restore... ok
==> Checking for: mail_imap_restore... ok
==> Checking for: mail_spam_restore... ok
==> Checking for: mail_grey_restore... ok
==> Checking for: mail_mailbox_restore... ok
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_drweb_restore... ok
==> Checking for: mail_outgoing_restore... ok
==> Checking for: mail_transport_restore... ok
==> Checking for: mail_transport_restore... ok
Unable to find start/stop script for 'courier-pop3d'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-pop3d'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-pop3s'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-pop3s'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-imapd'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-imapd'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-imaps'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-imaps'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-authdaemon'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-authdaemon'

System error 2: No such file or directory

```

What can we do to un-confuse Plesk?

MAIL

plesk-mail.png
INSTALLER

plesk-install.png
 
you might want to run
#plesk repair all

to try and catch any database inconsistency that may be behind your issue.
If not solved, use the installer to deliberately switch to dovecot (and back to Courier if so desired).

Cheers,Tom
 
"plesk repair" found nothing wrong, which I found quite bizarre.

I've switched between dovecot and courier (and vice versa) and that doesn't fix the panel's view of things -- the right packages get installed/deleted and mail flows through the right servers - but the panel always thinks that Courier is installed, which means that lots of administration things (start/stop services, enable/disable outgoing mail control, etc) don't work right since it attempts to restart courier which isn't installed.
 
can you provide us with panel.log , autoinstaller3.log , plesk_12.5.30_installation.log ?
 
There are multiple autoinstaller3 log files, so I've included all of them since the upgrade to 12.5.30.
[ deleted log files ]
 
Last edited:
What is output of following SQL queries in Plesk database:

mysql> select * from ServiceNodeEnvironment where name='IMAP_POP3_Server';
mysql> select * from ServiceNodeEnvironment where name='IMAP_POP3_Server_package';

?
 
Code:
mysql> select * from ServiceNodeEnvironment where name='IMAP_POP3_Server';
+---------------+---------+------------------+--------------+
| serviceNodeId | section | name             | value        |
+---------------+---------+------------------+--------------+
|             1 | mail    | IMAP_POP3_Server | Courier-IMAP |
+---------------+---------+------------------+--------------+
1 row in set (0,00 sec)

Code:
mysql> select * from ServiceNodeEnvironment where name='IMAP_POP3_Server_package';
+---------------+---------+--------------------------+--------------+
| serviceNodeId | section | name                     | value        |
+---------------+---------+--------------------------+--------------+
|             1 | mail    | IMAP_POP3_Server_package | courier-imap |
+---------------+---------+--------------------------+--------------+

Thanks a lot!
 
Make sure that you really have Dovecot installed instead of Courier-IMAP and update this table with

mysql> update ServiceNodeEnvironment set value='Dovecot' where name='IMAP_POP3_Server';
mysql> update ServiceNodeEnvironment set value='dovecot' where name='IMAP_POP3_Server_package';
 
Code:
root@server:/# ps aux | grep dovecot
root     13592  0.0  0.0  17900  1568 ?        Ss   07:43   0:00 /usr/sbin/dovecot -F
dovecot  13602  0.0  0.0   9392  1112 ?        S    07:43   0:00 dovecot/anvil
root     13603  0.0  0.0   9524  1280 ?        S    07:43   0:00 dovecot/log
dovenull 21963  0.0  0.0  18764  3376 ?        S    07:47   0:00 dovecot/imap-login
root     21964  0.0  0.0  25176  2560 ?        S    07:47   0:00 dovecot/config
popuser  21971  0.0  0.0  17072  2264 ?        S    07:47   0:00 dovecot/imap
dovenull 22444  0.0  0.0  18764  3376 ?        S    07:48   0:00 dovecot/imap-login
dovenull 22445  0.0  0.0  18764  3364 ?        S    07:48   0:00 dovecot/imap-login
popuser  22446  0.0  0.0  16932  2156 ?        S    07:48   0:00 dovecot/imap
popuser  22447  0.0  0.0  17456  2648 ?        S    07:48   0:00 dovecot/imap
dovenull 22448  0.0  0.0  18764  3372 ?        S    07:48   0:00 dovecot/imap-login
popuser  22449  0.0  0.1  45868 14544 ?        S    07:48   0:00 dovecot/imap
dovenull 24830  0.0  0.0  18764  3356 ?        S    07:51   0:00 dovecot/imap-login
popuser  24836  0.0  0.0  22404  4372 ?        S    07:51   0:00 dovecot/imap
dovenull 25166  0.0  0.0  18764  3376 ?        S    07:52   0:00 dovecot/imap-login
dovenull 25167  0.0  0.0  18764  3372 ?        S    07:52   0:00 dovecot/imap-login
popuser  25168  0.0  0.0  16944  2148 ?        S    07:52   0:00 dovecot/imap
popuser  25169  0.0  0.1  43000 12584 ?        S    07:52   0:00 dovecot/imap
dovenull 28043  0.0  0.0  18764  3364 ?        S    07:55   0:00 dovecot/imap-login
popuser  28048  0.0  0.0  17044  2592 ?        S    07:55   0:00 dovecot/imap
dovenull 28049  0.0  0.0  18764  3364 ?        S    07:55   0:00 dovecot/imap-login
popuser  28050  0.0  0.0  16936  2184 ?        S    07:55   0:00 dovecot/imap
dovenull 28051  0.0  0.0  18764  3364 ?        S    07:55   0:00 dovecot/imap-login
popuser  28052  0.0  0.0  16728  1972 ?        S    07:55   0:00 dovecot/imap
dovenull 28053  0.0  0.0  18764  3360 ?        S    07:55   0:00 dovecot/imap-login
popuser  28054  0.0  0.0  16728  1964 ?        S    07:55   0:00 dovecot/imap
dovenull 28055  0.0  0.0  18764  3360 ?        S    07:55   0:00 dovecot/imap-login
popuser  28056  0.0  0.0  16920  2208 ?        S    07:55   0:00 dovecot/imap
dovenull 28057  0.0  0.0  18764  3372 ?        S    07:55   0:00 dovecot/imap-login
popuser  28058  0.0  0.0  16920  2220 ?        S    07:55   0:00 dovecot/imap
dovenull 28059  0.0  0.0  18764  3360 ?        S    07:55   0:00 dovecot/imap-login
popuser  28060  0.0  0.0  16920  2164 ?        S    07:55   0:00 dovecot/imap
dovenull 28061  0.0  0.0  18764  3376 ?        S    07:55   0:00 dovecot/imap-login
popuser  28070  0.0  0.0  16716  2096 ?        S    07:55   0:00 dovecot/imap
dovenull 28731  0.0  0.0  18764  3376 ?        S    08:03   0:00 dovecot/imap-login
dovenull 28737  0.0  0.0  18764  3360 ?        S    08:03   0:00 dovecot/imap-login
popuser  28738  0.0  0.0  19544  3056 ?        S    08:03   0:00 dovecot/imap
popuser  28739  0.0  0.0  16924  2076 ?        S    08:03   0:00 dovecot/imap
root     31318  0.0  0.0   9388   964 ?        S    08:09   0:00 dovecot/ssl-params
root     31341  0.0  0.0  14416  1136 pts/0    R+   08:10   0:00 grep --color=auto dovecot


Code:
root@server:/# ps aux | grep courier
root     31352  0.0  0.0  14416  1092 pts/0    S+   08:10   0:00 grep --color=auto courier

Ok i will try
 
[ Marking as unresolved since the original poster's problem is not completely resolved. ]

Updating the psa database fixes the panel's view of things (Mail Settings now shows Dovecot installed), but attempting to restart the Dovecot service (or running /usr/local/psa/admin/sbin/mchk --with-spam) still results in errors due to Plesk attempting to restart courier. What else needs to be done?
 
That package was installed, so I removed it using the command you suggested. There are no more courier packages installed. Yet still Plesk is trying to restart courier. :(
 
Did that, still no luck. In the output of /var/log/plesk/install/plesk_12.5.30_repair.log:

Reconfiguring mail subsystem...
Trying to execute mail_restore to synchronize mail server settings and Plesk Database... ==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_handlers_init... ok
==> Checking for: mailsrv_entities_dump... ok
==> Checking for: mail_admin_aliases... ok
==> Checking for: mail_auth_dump... ok
==> Checking for: mailman_lists_dump... ok
==> Checking for: mail_kav8_restore... ok
==> Checking for: mail_responder_restore... ok
==> Checking for: mail_imap_restore... ok
==> Checking for: mail_spam_restore... ok
==> Checking for: mail_grey_restore... ok
==> Checking for: mail_mailbox_restore... ok
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_drweb_restore... ok
==> Checking for: mail_outgoing_restore... ok
==> Checking for: mail_transport_restore... ok
Unable to find start/stop script for 'courier-pop3d'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-pop3d'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-pop3s'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-pop3s'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-imapd'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-imapd'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-imaps'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-imaps'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-authdaemon'

System error 2: No such file or directory
Unable to find start/stop script for 'courier-authdaemon'

System error 2: No such file or directory
 
Back
Top