Linux中国  设为主页
 收藏本站
 
当前位置: > 首页 ->网络应用 ->邮件服务器 ->Qmail ->Postfix Ecartis HOWTO - 集成ecartis + Postfix
  相关分类: 
Exchange Server
IMail
Mdaemon
Qmail
  站内搜索: 
热门文章排行
热门文章排行 Life with qmail -- 中文版(05-28)
Linux qmail安装指南 2.9(05-28)
用Linux作邮件服务器(05-28)
邮件系统postfix安装与配置(下)(05-28)
中小规模POSTFIX邮件系统的安装(05-28)
精采文章排行
精采文章排行 Qmail系统下实现删除定期不使用的帐(05-28)
MailDrop 域过滤规则和单用户过滤规(05-28)
如何一次创建大量用户(05-28)
基于FreeBSD和Postfix的邮件系统与邮(05-28)
vpopmail+spamassassin+clamscan(05-28)
  ·Qmail系统下实现删除定期不使用的帐户·如何一次创建大量用户·vpopmail+spamassassin+clamscan·基于FreeBSD和Postfix的邮件系统与邮件列·Tmail 安装文档·Linux系统中设置Sendmail 防御垃圾邮件实·在RHEL 4 上配置全功能的Postfix 服务器·Qmail安装的前提准备·Sendmail 8.9.3中的Mail Relay规则简介

Postfix Ecartis HOWTO - 集成ecartis + Postfix

作者:Webmaster   来源:Linuxdby.com   点击:   日期:2007-05-28 [收藏] [投稿]

  IE是否经常中毒?推荐您

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.aliasesmydestination = $myhostname, $mydomainmydomain = postfix.org.cnmyhostname = 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:

>>subscribeSubscribed. 

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:

 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<

上一页12 下一页

上一篇:Mailing List (邮件列表)原理简述及我的perl实现   下一篇:Life with qmail -- 中文版
文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论

   相关文章:
·MailDrop 域过滤规则和单用户过滤规则对

   文章评论:(1条)
  
 请留名: 匿名评论   点击查看所有评论 论坛讨论
 

 声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。