• 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

errors sending and mchk fails

J

Jason FS

Guest
We are having widescale problems since the update to 9.2.2 from 8.6. People are unable to send mail and I get the following error when trying to restore with mchk:

[root@XXX sbin]# /usr/local/psa/admin/sbin/mchk --without-spam -v
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_mailbox_restore... 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_responder_restore... ok
==> Checking for: mail_drweb_restore... not exsists
==> Checking for: mail_kav_restore... not exsists
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_grey_restore... ok
awk: cmd. line:50: (END OF FILE)
awk: cmd. line:50: invalid char 'ÿ' in expression
unable to process "pop3d"
awk: cmd. line:50: (END OF FILE)
awk: cmd. line:50: invalid char 'ÿ' in expression
unable to process "pop3d-ssl"
awk: cmd. line:50: (END OF FILE)
awk: cmd. line:50: invalid char 'ÿ' in expression
unable to process "imapd"
awk: cmd. line:50: (END OF FILE)
awk: cmd. line:50: invalid char 'ÿ' in expression
unable to process "imapd-ssl"

Any help would be appreciated.
 
mchk fails

I have the same problem:

[root@WEB1 /]# /usr/local/psa/admin/sbin/mchk --with-spam
==> Checking for: mail_spam_restore... ok
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_mailbox_restore... 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_responder_restore... ok
==> Checking for: mail_drweb_restore... not exsists
==> Checking for: mail_kav_restore... not exsists
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_grey_restore... ok
awk: cmd. line:50: (END OF FILE)
awk: cmd. line:50: invalid char 'ÿ' in expression
unable to process "pop3d"
awk: cmd. line:50: (END OF FILE)
awk: cmd. line:50: invalid char 'ÿ' in expression
unable to process "pop3d-ssl"
awk: cmd. line:50: (END OF FILE)
awk: cmd. line:50: invalid char 'ÿ' in expression
unable to process "imapd"
awk: cmd. line:50: (END OF FILE)
awk: cmd. line:50: invalid char 'ÿ' in expression
unable to process "imapd-ssl"
[root@WEB1 /]#
 
Did anybody read Workaround thread? Look at this workaround It should help. And please update this thread with results.
 
Did anybody read Workaround thread? Look at this workaround It should help. And please update this thread with results.

The patch was unclear to me. I made the changes to authpsa_configure as best as I could interpret.


if (!found) {
print
print add_mark;
print "AUTHMODULES=\"authpsa\"";
changed=110;
}
exit changed;

}'$conf >>$temp
}

remove_authpsa()
{

The scrip runs and hangs. Output as follows:

/usr/local/psa/admin/sbin/mchk --with-spam
==> Checking for: mail_spam_restore... ok
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_mailbox_restore... 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_responder_restore... ok
==> Checking for: mail_drweb_restore... not exsists
==> Checking for: mail_kav_restore... not exsists
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_grey_restore... ok

What did I miss in the patch?
 
It's a bug in their script, we actually ended up paying support to fix it

# cp -a /usr/local/psa//admin/bin/courier_authpsa_configure{,.original}
# nano /usr/local/psa//admin/bin/courier_authpsa_configure
# diff -pruN /usr/local/psa//admin/bin/courier_authpsa_configure{,.original} --- /usr/local/psa//admin/bin/courier_authpsa_configure.original 2009-07-14 14:19:52.000000000 +0200 +++ /usr/local/psa//admin/bin/courier_authpsa_configure 2009-10-15 09:11:48.000000000 +0200 @@ -77,8 +77,7 @@ changed=110; } exit changed; -}\ -' $conf >>$temp +}' $conf >>$temp } remove_authpsa()
 
Jason, Thanks for the reply. I patched the file based on the output from your diff results. Running mchk with the patch crashes my server. I think I have a syntax error. Would you please copy and paste the changed lines from /usr/local/psa//admin/bin/courier_authpsa_configure into a reply post?
 
Back
Top