文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>安装ezmlm and ezmlm-idx(ezmlm退信乱码问题)

安装ezmlm and ezmlm-idx(ezmlm退信乱码问题)

时间:2006-11-20  来源:snowtty

安装ezmlm and ezmlm-idx使qmail支持邮件列表功能
1.注意:为了启用maillist的MySQL支持,你必须首先:
建立mysql管理用户:(Ex:user:ezmlm,pass:ezmlm)
# mysql -u root -pwangxu
>use mysql;
>create database ezmlm;
>grant all on ezmlm.* to ezmlm@localhost identified by “ezmlmpassword";
>flush privileges;
>exit;
# mysqladmin -u root -pwangxu create ezmlm
2.ezmlm-idx包含有对ezmlm的修正和补充,他们是一个整体。
#cd /home/software
# tar -zxvf ezmlm-0.53.tar.gz
# tar -zxvf ezmlm-idx-0.40.tar.gz
# mv -Rf ezmlm-idx-0.40/* ezmlm-0.53/ //将ezmlm-idx-0.40下的文件覆盖到ezmlm-0.53下
# cd ezmlm-0.53
# patch < idx.patch
# patch < ../ezmlm-idx-0.53.400.unified_41.patch
# make mysql #MySQL 支持
# make clean
# make man
# make ch_GB #汉字GB2312支持
修改conf-sqlcc文件
内容为:-I/usr/include/mysql

修改conf-sqlld
内容为: -L/usr/lib/mysql -lmysqlclient -lnsl -lm -lz
-lz是增加zip压缩支持

修改conf-bin
第一行:/var/qmail/man

修改conf-qmail
第一行:/var/qmail

# make setup

修改/usr/local/qmail/bin/ezmlm/ezmlmrc将"To:##L@##H"修改为"To:<#L#>@< #H#>“,主要是修改用邮件客户端收到信之后,收件人地址显示格式错误。
邮件列表收到的信息乱码解决方法:
在/home/vpopmail/domains/cloud.com/maillistname/下建立一个charset的文件
#touch charset
#chown vpopmail:vchkpw charset
#chmod go-r charset
#vi charset 添加一行gb2312
这样你发一份邮件到[email protected] 你收到的信息将可以正确的显示中文了!

3.在你建立一个基于MySQL的maillist之前,你必须保证ezmlm库中已存在一个对应的表(其实我发现没有表,ezmlm会自动建立,只是会提示错误):
Ex:你想建一个基于MySQL的maillist:testlist
# /var/qmail/bin/ezmlm/ezmlm-mktab -d testlist | mysql -uezmlm -pezmlm -f ezmlm
这样就在ezmlm库中为testlist建立了一系列相关表格:
+————————+
| Tables |
+————————+
| testlist |
| testlist_allow |
| testlist_allow_slog |
| testlist_cookie |
| testlist_deny |
| testlist_deny_slog |
| testlist_digest |
| testlist_digest_cookie |
| testlist_digest_mlog |
| testlist_digest_slog |
| testlist_mlog |
| testlist_mod |
| testlist_mod_slog |
| testlist_slog |
+————————+

你可以用一下命令察看! (也不需要这样麻烦的,安装了qmailadmin后可以使用qmailadmin管理邮件列表了)
# mysqlshow -uezmlm -pezmlm ezmlm

安装autorespond (自动回信机器人)
# tar zxvf autorespond-2.0.2.tar.gz
# cd autorespond-2.0.2
修改Makefile文件
将其中的INSTALL_DIR =修改为 /var/qmail/bin
# make
# make install
# cp autorespond /usr/local/bin

●安装qmailadmin
在安装之前先确认:
你是否已经安装了vpopmail,并使用vchkpw 。
是否已经安装ezmlm。
是否已经安装autorespond。
确认以上的工作已完成,可以开始安装qmailadmin。
# cd /home/software
# tar zxvf qmailadmin-1.0.6.tar.gz
# cp en-us qmailadmin-1.0.6/html/en
# cp en-us qmailadmin-1.0.6/html/en-us
(注:以上两步,是为了汉化qmailadmin。en-us取自iceblood的qmail安装包)
# cd qmailadmin-1.0.6
# cd qmailadmin-1.0.6
#./configure –enable-cgibindir=/www/cgi-bin –enable-htmldir=/www/htdocs/igenus –enable-ezmlmdir=/var/qmail/bin/ezmlm (确保你的ezmlm程序文件在此目录下)
# make
# make install-strip
# mkdir -p /www/htdocs/images/qmailadmin
# mv images/*.* /www/htdocs/images/qmailadmin/ //复制images下的图片到/www/htdocs/images/qmailadmin下

●安装sqwebmail
1、 安装sqwebmail

#cd /down
#tar zxvf sqwebmail-3.5.0-cn.tar.gz
#cd sqwebmail-3.5.0
#./configure –with-db=db(如果你没有安装GDBM库,那么请加上这个,默认系统如果找到了GDBM库会使用GDBM库的)
–enable-webpass=yes
–without-authpam
–without-authpwd
–without-authshadow
–without-authldap
–without-authuserdb
–without-authpwd
–with-authvchkpw
–with-authdaemon \激活web页面修改密码功能模块
–enable-cgibindir=/www/cgi-bin/sqwebmail
–enable-imagedir=/www/htdocs/sqwebmail
–disable-utf7-folder-encoding \ 去掉IMAP文件夹编码支持
–with-cachedir=/tmp/sqwebmail \缓存目录
–with-cacheowner=bin \缓存目录所有者 (default: bin)
–enable-mimetypes=/www/htdocs/
–enalbe-mimecharset=gb2312
–enable-unicode=gb2312
#make configure-check
#make
#make install-strip
#make install-configure
#/usr/local/share/sqwebmail/libexec/authlib/authdaemond start
注意,以后必须启动这个进程进行身份验证,我发现安装sqwebmail后,这个进程不启动那么我的邮件系统就没法登陆,总是说密码验证错误,qmailadmin倒可以登陆。
su -c “/usr/local/share/sqwebmail/cleancache.pl” bin

现在,重起你主机系统,你可以设置一下你的outlook或者foxmail.接受邮件了。也可以通过webmail访问你的mail系统了。
http://localhost
http://localhost/cgi-bin/sqwebmail/sqwebmail
通过webmail接受你的邮件信息,sqwebmail我只是装上测试一下,看看效果,不过它对中文支持比较差,也没有比较好的中文版本,所以我觉得还是用igenus比较好。
http://localhost/cgi-bin/qmailadmin 通过web方式管理和添加用户了

补充:在/home/vpopmail/domains/xxx.com下面建立一个.qmailadmin-limits文件(这个文件本身没有在里面写
maxpopaccounts 100
default_quota 10485760
这样用qmailadmin添加账号的最大数目就是100,每个邮箱的配额就是10485760,10M。。
变量: 数值型.
maxaliases,maxforwards,maxautoresponder,maxmailinglists
变量:bool型
disable_pop,disable_imap,disable_dialup,disable_password_changing,disable_webmail,disable_external_relay
以上的变量只要在文件中存在就起作用,不用设值。

 

相关阅读 更多 +
排行榜 更多 +
少女爱换装

少女爱换装

休闲益智 下载
百变英雄射击

百变英雄射击

飞行射击 下载
魔灵契约

魔灵契约

休闲益智 下载