首页 | 邮件资讯 | 技术教程 | 解决方案 | 产品评测 | 邮件人才 | 邮件博客 | 邮件系统论坛 | 软件下载 | 邮件周刊 | 热点专题 | 工具
网络技术 | 操作系统 | 邮件系统 | 客户端 | 电子邮箱 | 反垃圾邮件 | 邮件安全 | 邮件营销 | 移动电邮 | 邮件软件下载 | 电子书下载

邮件服务器

技术前沿 | Qmail | IMail | MDaemon | Exchange | Domino | 其它 | Foxmail | James | Kerio | JavaMail | WinMail | Sendmail | Postfix | Winwebmail | Merak | CMailServer | 邮件与开发 | 金笛 |
首页 > 邮件服务器 > Postfix > Postfix Ecartis HOWTO - 集成ecartis + Postfix > 正文

Postfix Ecartis HOWTO - 集成ecartis + Postfix

出处:www.hzqbbc.com 作者:hzqbbc 时间:2006-9-25 11:03:00

English version: 0.02alpha
Chinese caution: 本文是过去用英文写的,有兴趣的朋友可以翻译成中文,谢谢。

Introduce

There are a lot of maillist softwares compatible with the Postfix, but we need a simple configure and powerful one, Ecartis will meet our need.

Ecartis is a certain kind of mailing list manager software, designing for small binary and fast operation, with modular archtecture. It support sendmail/Postfix Exim4 and qmail, very easy to configure, but it's bit regreat that ecartis lacks documentation :-(

Requirement

Before you begin your work, make sure the following softwares or configuration are done:

Postfix (1.x/2.x, 2.x are better)
gcc and gcc-devel package
GNU make and other tools
root account
Unix like OS, linux is prefer

Make and build

Getting ecartis
Ecartis developed since 1998, but it's not 1.0 release ready. The latest version is 1.0.0-snap20040426, use wget or ncftp to get the tar ball from http://web.archive.org/web/20041010224951/ftp://ftp.ecartis.org/.

Complie ecartis
Unpack the tar ball with GNU tar, like this:

$ tar xfz ecartis-1.0.0-snap20040426.tar.gz

Then get into the src directory, there is no autoconf/automake style configure file ship with ecartis, only a Makefile.dist, copy the Makefile.dist to Makefile:

$ cp Makefile.dist Makefile

Make sure that gcc and make can work properly before you begin to complie, type make to complie:

$ make

Installation

If nothing exception occur, ecartis and modules complie finished, binary will in the build direcotry. Install ecartis when you want to use it:
$ make install

The default location of ecartis installation will at the top of source directory, if you want to use ecartis in another location, copy them to the different path.

At the top of source directory, assume you want to place ecartis and modules in /home/ecartis, do as the following steps:

$ su root
# useradd -d /home/ecartis -s /bin/false ecartis
# cp ecartis /home/ecartis/
# cp ecartis.cfg.dist /home/ecartis/ecartis.cfg
# cp ecartis.aliases.dist /home/ecartis/ecartis.aliases
# cp -rf modules lists queue /home/ecartis/

Configuration - create a testlist
You should remember that use full path to run ecartis or things will be corupt! Please refer to ecartis documentation if you've some doubt.

# /home/ecartis/ecartis -newlist lists

This will create a list name "lists" for you, ecartis will prompt for list admin/owner, enter email address response for it. Then ecartis will create "lists" directory in the /home/ecartis/lists/lists and user/config file, at last ecartis display aliases content:

# Aliases for 'lists' mailing list.
lists: "|/home/ecartis/ecartis -s lists"
lists-request: "|/home/ecartis/ecartis -r lists"
lists-repost: "|/home/ecartis/ecartis -a lists"
lists-admins: "|/home/ecartis/ecartis -admins lists"
lists-moderators: "|/home/ecartis/ecartis -moderators lists"
lists-bounce: "|/home/ecartis/ecartis -bounce lists"

Configuration - Postfix
Use vi or emacs or other editor, open main.cf, paste the ecartis aliases content into the default aliases file, which commonly located at /etc/postfix/aliases, but i highly recommend that use a seperate aliases file, it's more clean and easy to manage:) my configuration shown as follow:

alias_maps = hash:/etc/postfix/aliases hash:/home/ecartis/ecartis.aliases
mydestination = $myhostname, $mydomain
mydomain = postfix.org.cn
myhostname = lists.postfix.org.cn

Save main.cf and ecartis.aliases, then run postalias to rebuild ecartis.aliases, last reload postfix:

# postfix reload

Test lists

It's the time to test ecartis now. Send an email to [listname]-request@domain.tld as title or body contain "subscribe" to test subscribe function, in my case, send email to lists-request@lists.postfix.org.cn. Look at the maillog to get detail information.

Almost immediately you will receive reply from ecartis, if nothing unexpected, you've been subscribed. The email will contains:

>>subscribe
Subscribed. 

Virtual Hosting

Ecartis can easily support virtual hosting, with postfix we need some tricks to get ecartis to work.

By some means virtual hosting equal to virtual domain, the Postfix MTA support virtual domain via alias, but virtual_alias_maps(2.0) or virtual_maps(1.0) could not support sendmail style aliases, then it means we can't simpliy put some lines like:

lists-request@lists.postfix.org.cn "| /home/ecartis/ecartis -r lists"

into those maps/files, how could we implement virtual domain? The trick is according to sendmail style aliases, the processing flow show as below:

mail to lists@domain.tld
-> lookup virtual_alias_maps
-> found lists@domain.tld point to "lists-domain.tld"
-> lookup aliases maps
-> found lists-domain.tld point to "|/home/ecartis/ecartis -s listname"
-> OK

Assume we want to support thisdomain.tld and thatdomain.tld at the same machine, follow the steps:

1) DNS setup, point both the thisdomain.tld and thatdomain.tld's mx to the machine running ecartis
2) We only make thisdomain.tld as an example, add the following lines into the Postfix virtual_alias_maps file:

lists@thisdomain.tld lists-thisdomain.tld
lists-request@thisdomain.tld lists-request-thisdomain.tld
lists-repost@thisdomain.tld lists-repost@thisdomain.tld
lists-admins@thisdomain.tld lists-admins-thisdomain.tld
lists-moderators@thisdomain.tld lists-moderators-thisdomain.tld
lists-bounce@thisdomain.tld lists-bounce-thisdomain.tld

Then run postmap to rebuild it
3)add the following lines into sendmail style aliases file:

lists-thisdomain.tld: "|/home/ecartis/ecartis -s lists-thisdomain.tld"
lists-request-thisdomain.tld: "|/home/ecartis/ecartis -r lists-thisdomain.tld"
lists-repost-thisdomain.tld: "|/home/ecartis/ecartis -a lists-thisdomain.tld"
lists-admins-thisdomain.tld: "|/home/ecartis/ecartis -admins lists-thisdomain.tld"
lists-moderators-thisdomain.tld: "|/home/ecartis/ecartis -moderators lists-thisdomain.tld"
lists-bounce-thisdomain.tld: "|/home/ecartis/ecartis -bounce lists-thisdomain.tld"

Then run postalias to rebuild it
4)run this command:

#/home/ecartis/ecartis -newlist lists-thisdomain.tld

and enter the listowner address, then ecartis will create config and users file for the list "lists-thisdomain.tld" in /home/ecartis/lists direcotry.
5)configure /home/ecartis/lists/lists-thisdomain.tld/config to meet your need, refer to ecartis documentation or varible difinition for details.

If everything works ok, then we done it :-)

Trouble Shooting

When the first time you install and configure ecartis, there will be a lot of problem, see this section carefully.

Q:ecartis can't work!
A:Turn on debug mode, in /path/to/ecartis/ecartis.cfg, uncomment "debug = 0" and set it large than 0, for example 10(the highest level), ecartis will log anything it do and see in ecartis.log, look at it for detail error.

Q:ecartis always send email as unkonw sender domain
A:check your system hostname, if it's not fqdn, ecartis will append the domain after the hostname, and make it as sender domain, if this name can't resolve, then recipient's MTA will bounce/reject the mail.

Q:How to config ecartis to confirm subscrition?
A: set "subscribe-mode = confirm" and save the config file, that's ok!

Reference

Docs of ecartis
ecartis.hlp in source
ecartis source file
ecartis mailing list
Postfix documentation

相关文章 热门文章
  • postfix+dovecot+postfixadmin+mysql架设邮件服务器
  • FreeBSD上建立一个功能完整的邮件服务器(POSTFIX)
  • CentOS5.1上安装基于postfix的全功能邮件服务器(二)
  • CentOS5.1上安装基于postfix的全功能邮件服务器
  • CentOS安装配置Postfix邮件服务器
  • 在CentOS下用Postfix配置邮件服务器
  • 3分钟安装配置Postfix邮件服务器
  • 基于Postfix的大型邮件系统
  • 关于postfix的loops back to myself错误
  • 成功将qmail用户迁移到postfix(extmail+extman)下
  • 簡單配置postfix+courier+squirrelmail+pam郵件服務器
  • 正确配置Postfix来阻止垃圾邮件
  • Install and configure Postfix with Cyrus-SASL+Cyr...
  • 在FreeBSD上建立一个功能完整的邮件服务器
  • postfix 邮件病毒过滤
  • 在Fedora上建立自己的邮件服务器
  • Postfix + SpamAssassin 安裝手冊
  • Postfix + Courier-IMAP + Cyrus-SASL + MySQL + IMP...
  • Postfix + Cyrus-SASL + Cyrus-IMAPD + PgSQL HOWTO
  • 在FreeBSD5.1簡單安裝Postfix+Qpopper+Openwebmail
  • 在RHEL 4 上配置全功能的Postfix 服务器
  • Postfix + Cyrus-IMAP + Cyrus-SASL + MySQL + IMP 完..
  • 我的POSTFIX安装笔记
  • Postfix电子邮局的配置步骤
  • 自由广告区
     
    最新软件下载
  • SharePoint Server 2010 部署文档
  • Exchange 2010 RTM升级至SP1 教程
  • Exchange 2010 OWA下RBAC实现的组功能...
  • Lync Server 2010 Standard Edition 标..
  • Lync Server 2010 Enterprise Edition...
  • Forefront Endpoint Protection 2010 ...
  • Lync Server 2010 Edge 服务器部署文档
  • 《Exchange 2003专家指南》
  • Mastering Hyper-V Deployment
  • Windows Server 2008 R2 Hyper-V
  • Microsoft Lync Server 2010 Unleashed
  • Windows Server 2008 R2 Unleashed
  • 今日邮件技术文章
  • 腾讯,在创新中演绎互联网“进化论”
  • 华科人 张小龙 (中国第二代程序员 QQ...
  • 微软推出新功能 提高Hotmail密码安全性
  • 快压技巧分享:秒传邮件超大附件
  • 不容忽视的邮件营销数据分析过程中的算..
  • 国内手机邮箱的现状与未来发展——访尚..
  • 易观数据:2011Q2中国手机邮箱市场收入..
  • 穿越时空的爱恋 QQ邮箱音视频及贺卡邮件
  • Hotmail新功能:“我的朋友可能被黑了”
  • 入侵邻居网络发骚扰邮件 美国男子被重..
  • 网易邮箱莫子睿:《非你莫属》招聘多过..
  • 中国电信推广189邮箱绿色账单
  • 最新专题
  • 鸟哥的Linux私房菜之Mail服务器
  • Exchange Server 2010技术专题
  • Windows 7 技术专题
  • Sendmail 邮件系统配置
  • 组建Exchange 2003邮件系统
  • Windows Server 2008 专题
  • ORF 反垃圾邮件系统
  • Exchange Server 2007 专题
  • ISA Server 2006 教程专题
  • Windows Vista 技术专题
  • “黑莓”(BlackBerry)专题
  • Apache James 专题
  • 分类导航
    邮件新闻资讯:
    IT业界 | 邮件服务器 | 邮件趣闻 | 移动电邮
    电子邮箱 | 反垃圾邮件|邮件客户端|网络安全
    行业数据 | 邮件人物 | 网站公告 | 行业法规
    网络技术:
    邮件原理 | 网络协议 | 网络管理 | 传输介质
    线路接入 | 路由接口 | 邮件存储 | 华为3Com
    CISCO技术 | 网络与服务器硬件
    操作系统:
    Windows 9X | Linux&Uinx | Windows NT
    Windows Vista | FreeBSD | 其它操作系统
    邮件服务器:
    程序与开发 | Exchange | Qmail | Postfix
    Sendmail | MDaemon | Domino | Foxmail
    KerioMail | JavaMail | Winwebmail |James
    Merak&VisNetic | CMailServer | WinMail
    金笛邮件系统 | 其它 |
    反垃圾邮件:
    综述| 客户端反垃圾邮件|服务器端反垃圾邮件
    邮件客户端软件:
    Outlook | Foxmail | DreamMail| KooMail
    The bat | 雷鸟 | Eudora |Becky! |Pegasus
    IncrediMail |其它
    电子邮箱: 个人邮箱 | 企业邮箱 |Gmail
    移动电子邮件:服务器 | 客户端 | 技术前沿
    邮件网络安全:
    软件漏洞 | 安全知识 | 病毒公告 |防火墙
    攻防技术 | 病毒查杀| ISA | 数字签名
    邮件营销:
    Email营销 | 网络营销 | 营销技巧 |营销案例
    邮件人才:招聘 | 职场 | 培训 | 指南 | 职场
    解决方案:
    邮件系统|反垃圾邮件 |安全 |移动电邮 |招标
    产品评测:
    邮件系统 |反垃圾邮件 |邮箱 |安全 |客户端
    广告联系 | 合作联系 | 关于我们 | 联系我们 | 繁體中文
    版权所有:邮件技术资讯网©2003-2010 www.5dmail.net, All Rights Reserved
    www.5Dmail.net Web Team   粤ICP备05009143号