mail相关

ecartis配置maillist服务支持postfix虚拟域

先大概说一下ecartis支持虚拟域的工作原理,它首先通过 virtual_alias_maps将邮件列表地址;例如lists@list.yourdomain.com,指向到一个本地用户,例如lists-yourdomain.com,然后再通过alias_maps将本地用户转交给ecartis来处理,生成地址列表,然后ecartis会通过某个特定账号例如ecartis@yourdomain.com,将发给列表地址的邮件提交给 postfix处理。

蚊子的环境:centos,extmail+extman+sasl+postfix+apache

2,系统所需软件安装包

2.1,需要软件包
ecartis-1.0.0-snap20060813.tar.gz
获取方式:
    a,连接到任意一台freebsd的机器上
    b,# cd /usr/ports/mail/ecartis
    c,# make fetch
    d,保存/usr/ports/distfiles/ecartis-1.0.0-snap20060813.tar.gz此文件

如果手上没有bsd的机器,可以去http://ftp.ncku.edu.tw/Linux/Debian/debian/pool/main/e/ecartis/这个地址下载相应的gz包

3,maillist服务软件安装

3.1,ecartis安装
# tar zxvf ecartis-1.0.0-snap20060813.tar.gz
# cd ecartis-1.0.0
# cd src
# cp Makefile.dist Makefile
# make
# make install

4,maillist服务配置

4.1,ecartis文件配置
# mkdir /usr/local/ecartis
#
# cd ecartis-1.0.0
# cp ecartis.cfg.dist /usr/local/ecartis/ecartis.cfg
# cp -r modules queue templates lists /usr/local/ecartis/

4.2,ecartis配置
# /usr/local/ecartis/ecartis -newlist test   ;创建一个名为test的maillist
# vi /usr/local/ecartis/ecartis.aliases
    test: "|/usr/local/ecartis/ecartis -s test"
    test-request: "|/usr/local/ecartis/ecartis -r test"
    test-repost: "|/usr/local/ecartis/ecartis -a test"
    test-admins: "|/usr/local/ecartis/ecartis -admins test"
    test-moderators: "|/usr/local/ecartis/ecartis -moderators test"
    test-bounce: "|/usr/local/ecartis/ecartis -bounce test"

# vi /usr/local/ecartis/ecartis-virtual.aliases
    test@wenzizone.cn test
    test-request@wenzizone.cn test-request
    test-repost@wenzizone.cn test-repost
    test-admins@wenzizone.cn test-admins
    test-moderators@wenzizone.cn test-moderators
    test-bounce@wenzizone.cn test-bounce

# postmap /usr/local/ecartis/ecartis-virtual.aliases    ;生成db文件
# postalias /usr/local/ecartis/ecartis.aliases        ;生成db文件

# mkdir /usr/local/ecartis/lists/SITEDATA

# vi /usr/local/ecartis/ecartis.cfg
    listserver-address = ecartis@wenzizone.cn
    listserver-admin = admin@wenzizone.cn
    listserver-root = /usr/local/ecartis
    listserver-conf = /usr/local/ecartis
    listserver-data = /usr/local/ecartis
    listserver-modules = /usr/local/ecartis/modules
    cgi-template-dir = /usr/local/ecartis/templates
    list-owner = admin@wenzizone.cn
    lsg2-cgi-url = http://youdormain/ecartis/lsg2.cgi

# chown -R vuser.vgroup /usr/local/ecartis/        ;分配权限,vuser和vgroup是extmail执行cgi的用户和组

4.3,postfix配置
# vi /etc/postfix/main.cf
    alias_maps = hash:/usr/local/ecartis/ecartis.aliases
    virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf,hash:/usr/local/ecartis/ecartis-virtual.aliases
# postfix reload

4.4,web配置
# vi /etc/httpd/conf.d/extmail.conf
    scriptalias /ecartis/ /var/www/extsuite/ecartis/cgi/

# vi /var/www/extsuite/ecartis/cgi/lsg2.cgi
    #!/bin/sh

    /usr/local/ecartis/ecartis -lsg2

# chmod 755 /var/www/extsuite/ecartis/cgi/lsg2.cgi
# chown vuser.vgroup /var/www/extsuite/ecartis/cgi/lsg2.cgi

参考:http://www.extmail.org/forum/viewthread.php?tid=664&highlight=ecartis

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *