朋友这前些天让我把AutoMiniMail升级一下,加下修改密码和自动回复功能,搞好了好几天了,终于搞定了,新版本可能过两天就发布!
需要的软件如下:
squirrelmail-1.4.20
vacation-1.2.6
插件如下:
change_passwd-3.1-1.2.8
compatibility-2.0.16-1.0
local_autorespond_forward-3.0-1.4.0
除vacation都可以从下载
rpm -ivh vacation-1.2.6-1.centos.i386.rpm
源码:
以为这里安装目录/var/www/html/mail为例
/var/www/html/mail/plugins到这个目录下载插件,解压,然后把config.php.sample修改为config.php
change_passwd中的chpasswd要能suid chmod 4750 chpasswd
compatibility要修改functions.php,,把如下代码的注释去掉
/*
if ( strpos(getcwd(), 'plugins') )
{
if (file_exists($compatibility_sm_path . 'include/validate.php'))
include_once($compatibility_sm_path . 'include/validate.php');
else if (file_exists($compatibility_sm_path . 'src/validate.php'))
include_once($compatibility_sm_path . 'src/validate.php');
}
include_once($compatibility_sm_path . 'functions/strings.php');
if (file_exists($compatibility_sm_path . 'functions/global.php'))
include_once($compatibility_sm_path . 'functions/global.php');
else if (file_exists($compatibility_sm_path . 'src/global.php'))
include_once($compatibility_sm_path . 'src/global.php');
*/
local_autorespond_forward中修改config.php文件,,开启suid,不要用FTP,,要不然就会出如下错误 Options - Autoresponder / Mail Forwarding
Error: Unable to connect to FTP server. Please try again later
虽然只有两个插件,,结果搞好我好几天,google出来的东西又太乱了,所以总结一下,希望可以用得到
阅读(2169) | 评论(1) | 转发(0) |