0

我正在使用后缀。邮件正在正确发送和接收,但我在 CentOS Web 面板的邮件队列页面上低于 PHP 通知:

注意:未定义的偏移量:/usr/local/cwpsrv/htdocs/resources/admin/modules/mail_queue.php 第 0 行中的 0

注意:未定义的偏移量:/usr/local/cwpsrv/htdocs/resources/admin/modules/mail_queue.php 第 0 行中的 0

以下是 /usr/local/cwpsrv/htdocs/resources/admin/modules/ 的内容mail_queue.php

<?php //003ed
// Copyright CentOS WebPanel, Decoding is FORBIDDEN
// All Rights Reserved. www.centos-webpanel.com
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('No Loader is installed. Please contact support.');exit(199);
?>
some encryption key here

我该如何解决这个问题?

4

2 回答 2

0

所以,sendmail在我的情况下导致了这个问题。来自 CWP 支持的人通过卸载它来修复它。

于 2016-10-02T19:39:19.070 回答
0

在 /etc/alternatives 中编辑一些符号链接

前:

lrwxrwxrwx  1 root root 18 ene 31 21:42 mta -> /opt/exim/bin/exim
lrwxrwxrwx  1 root root 18 ene 31 21:42 mta-mailq -> /opt/exim/bin/exim
lrwxrwxrwx  1 root root 18 ene 31 21:42 mta-newaliases -> /opt/exim/bin/exim
lrwxrwxrwx  1 root root 18 ene 31 21:42 mta-rmail -> /opt/exim/bin/exim
lrwxrwxrwx  1 root root 18 ene 31 21:42 mta-sendmail -> /opt/exim/bin/exim

后:

lrwxrwxrwx  1 root root 26 feb  1 00:29 mta -> /usr/sbin/sendmail.postfix
lrwxrwxrwx  1 root root 22 feb  1 00:33 mta-mailq -> /usr/bin/mailq.postfix
lrwxrwxrwx  1 root root 27 feb  1 00:08 mta-newaliases -> /usr/bin/newaliases.postfix
lrwxrwxrwx  1 root root 43 feb  1 00:11 mta-newaliasesman -> /usr/share/man/man1/newaliases.postfix.1.gz
lrwxrwxrwx  1 root root 22 feb  1 00:31 mta-rmail -> /usr/bin/rmail.postfix
lrwxrwxrwx  1 root root 26 feb  1 00:30 mta-sendmail -> /usr/sbin/sendmail.postfix

例子:

  1. 重命名符号链接

    mv mta mta_

  2. 创建一个新的符号链接

    ln -s /usr/sbin/sendmail.postfix /etc/alternatives/ mv /etc/alternatives/sendmail.postfix /etc/alternatives/mta

  3. 准备好。尝试使用mailq

于 2020-02-01T03:50:03.437 回答