• 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

Resolved Error after change postfix to gmail

Ankebut

Regular Pleskian
Please Help,

i have change the postfix mail to gmail after i have receive this error from plesk below

Code:
nstallation wird nicht fortgesetzt

Die Ausführung von apg-get ist mit folgender Meldung fehlgeschlagen:
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
postfix-pcre : Depends: postfix (= 2.11.3-1+deb8u2) but it is not going to be installed

i have run the 'apt-get -f install' but nothing then i receive the error
Code:
root@server / # apt-get -f install
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  psa-qmail-rblsmtpd
The following packages will be REMOVED:
  postfix-pcre
The following NEW packages will be installed:
  psa-qmail-rblsmtpd
0 upgraded, 1 newly installed, 1 to remove and 8 not upgraded.
2 not fully installed or removed.
Need to get 0 B/16.9 kB of archives.
After this operation, 276 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 248689 files and directories currently installed.)
Removing postfix-pcre (2.11.3-1+deb8u2) ...
/var/lib/dpkg/info/postfix-pcre.prerm: 18: .: Can't open /usr/share/postfix/postinst.functions
dpkg: error processing package postfix-pcre (--remove):
 subprocess installed pre-removal script returned error exit status 2
/var/lib/dpkg/info/postfix-pcre.postinst: 25: .: Can't open /usr/share/postfix/postinst.functions
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 postfix-pcre
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Last edited:
Hi Ankebut,

you could try:
Code:
mkdir -p /root/backup-dpkg

mv /var/lib/dpkg/info/postfix.* /root/backup-dpkg/

apt-get -f install

Afterwards, pls, update/upgrade the rest of your software packages:
0 upgraded, 1 newly installed, 1 to remove and 8 not upgraded.
... with the command:
Code:
aptitude upgrade


Pls. note the following informations:

"psa-qmail-rblsmtpd" is one of the Plesk - qmail packages ( "psa-qmail" is the other one ), while the package "plesk-mail-pc-driver" is the corresponding Plesk - postfix - package, which should be installed, when you use postfix on your server.
You somehow messed up your packages on your server and I therefore recommend the following commands AFTER you solved the above mentioned issue.

Recommended commands:

Code:
plesk installer --select-product-id plesk --select-release-current --install-component qmail

plesk installer --select-product-id plesk --select-release-current --reinstall-patch --install-component base

plesk repair mail -y -v
 
hi UFHH01

having had the same worries as the author of the post I allow myself to answer following your answer when I type the command


plesk repair mail -y -v

I get the following error

Reconfiguring all domains and mailboxes ......................... [2017-09-13 12:45:46] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/mchk'] with exit code [1]
Error occured while sending feedback. HTTP code returned: 502
[FAILED]
- mchk failed: ==> 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_dmarc_restore... ok
==> Checking for: mail_drweb_restore... fail
==> Checking for: mail_outgoing_restore... ok
==> Checking for: mail_transport_restore... ok
Errors occured in mail restore procedure
Some utilities have exited with errors:
/usr/lib/plesk-9.0/mail_drweb_restore

Error messages: 0; Warnings: 0; Errors resolved: 0


exit status 1
 
Hi lesny,

==> Checking for: mail_drweb_restore... fail
This error might appear, if you don't actually use DrWeb on your server.
If you still experience issues/errors/problems as described ( IF you have DrWeb installed on your server! ), pls. consider to open a new thread with YOUR issues/errors/problems for further investigations, as @Ankebut 's thread has been marked as solved by now with the above suggestions. :)
 
Back
Top