由 copywu 于 2008年 3月 21日 14:04
推荐结合我们推出的免费邮件系统解决方案使用,本案例已经在实际环境中验证通过,其中域名部分请按照您的实际情况修改http://bbs.freesinno.com/viewtopic.php?f=10&t=15下载mailman程序并安装# cd /tmp# wget http://jaist.dl.sourceforge.net/sourcef ... -2.1.9.tgz# tar xvf mailman-2.1.9.tgz# cd mailman-2.1.9# ./configure --prefix=/opt/FreeSInno/Mail/mailman \--with-username=freesinno.com \--with-groupname=freesinno.com \--with-mail-gid=1111 \--with-cgi-gid=1111 \--with-mailhost=lists.freesinno.com \--with-urlhost=lists.freesinno.com# make# make install配置mailman# cd /opt/FreeSInno/Mail/mailman# touch data/aliases# touch data/virtual-mailman# vi Mailman/mm_cfg.py增加如下部分
代码: 全选
DEFAULT_EMAIL_HOST = 'lists.freesinno.com'DEFAULT_URL_HOST = 'lists.freesinno.com'DEFAULT_URL_PATTERN = 'http://%s/mailman/'MTA = 'Postfix'POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.freesinno.com','freesinno.com']add_virtualhost('lists.freesinno.com','freesinno.com')DEFAULT_SERVER_LANGUAGE = 'zh_CN'# 执行配置自动检查和修复# ./bin/check_perms -f# ./bin/genaliases# 创建邮件列表mailman# ./bin/newlist mailmanEnter the email of the person running the list: (这里输入邮件列表所有者的邮件地址)Initial public password: (这里输入管理密码)Hit enter to notify public owner...(回车)# 把用户添加到邮件列表里测试一下,建一个文本文件,比如members.txt,一行一个邮件地址,然后执行如下命令# ./bin/add_members -n members.txt mailman# 修改mailman管理界面的管理员密码,以便通过界面认证后能够通过界面创建和操作邮件列表# ./bin/mmsitepass配置Postfix# vi /etc/postfix/main.cf
代码: 全选
#myorigin = $mydomain #建议注释掉myorigin(不注释该行mailman将无法使用,原因暂时不明)virtual_alias_domains = lists.freesinno.comrecipient_delimiter = +owner_request_special = noalias_maps = hash:/opt/FreeSInno/Mail/mailman/data/aliasesvirtual_alias_maps = hash:/opt/FreeSInno/Mail/mailman/data/virtual-mailman,mysql:/opt/FreeSInno/Mail/postfix/etc/mysql_virtual_alias_maps.cftransport_maps = hash:/etc/postfix/transport# vi /etc/postfix/transport
代码: 全选
insert into transport set domain='lists.freesinno.com',destination='local:';# /opt/FreeSInno/Mail/postfix/sbin/postmap /etc/postfix/transport配置mailman的web配置,这里以httpd.conf的虚拟主机为例# vi /opt/FreeSInno/LAMPP/etc/apache/wwwconf/maillists.conf
代码: 全选
没有评论:
发表评论