- 论坛徽章:
- 0
|
推荐结合我们推出的免费邮件系统解决方案使用,本案例已经在实际环境中验证通过,其中域名部分请按照您的实际情况修改
http://bbs.freesinno.com/viewtopic.php?f=10&t=15
[size=150]下载mailman程序并安装
# cd /tmp
# wget http://jaist.dl.sourceforge.net/ ... n/mailman-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
[size=150]配置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 mailman
Enter 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
[size=150]配置Postfix
# vi /etc/postfix/main.cf
- #myorigin = $mydomain #建议注释掉myorigin(不注释该行mailman将无法使用,原因暂时不明)
- virtual_alias_domains = lists.freesinno.com
- recipient_delimiter = +
- owner_request_special = no
- alias_maps = hash:/opt/FreeSInno/Mail/mailman/data/aliases
- virtual_alias_maps = hash:/opt/FreeSInno/Mail/mailman/data/virtual-mailman,mysql:/opt/FreeSInno/Mail/postfix/etc/mysql_virtual_alias_maps.cf
- transport_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
[size=150]配置mailman的web配置,这里以httpd.conf的虚拟主机为例
# vi /opt/FreeSInno/LAMPP/etc/apache/wwwconf/maillists.conf
- <VirtualHost *:80>
- ServerName lists.freesinno.com
- ScriptAlias /mailman "/opt/FreeSInno/Mail/mailman/cgi-bin"
- <Directory "/opt/FreeSInno/Mail/mailman/cgi-bin">
- AllowOverride None
- Options none
- Order allow,deny
- Allow from all
- </Directory>
- Alias /pipermail "/opt/FreeSInno/Mail/mailman/archives/public"
- <Directory "/opt/FreeSInno/Mail/mailman/archives/">
- AllowOverride None
- Options +FollowSymlinks
- Order allow,deny
- Allow from all
- </Directory>
- CustomLog "| /opt/FreeSInno/LAMPP/share/cronolog/sbin/cronolog /opt/FreeSInno/LAMPP/apache/logs/maillists/access_log.%Y%m%d" combined
- </VirtualHost>
复制代码
[size=150]配置完成,重启httpd、postfix、mailman即可
使用以下链接登录mailman的管理员界面
http://lists.freesinno.com/mailman/admin
使用以下链接查看当前主机的所有邮件列表
http://lists.freesinno.com/pipermail
本帖转自:http://bbs.freesinno.com/viewtopic.php?f=10&t=25
[ 本帖最后由 copywu 于 2008-3-21 14:51 编辑 ] |
|