Postfix Ecartis HOWTO - 集成ecartis + Postfix

English version: 0.02alpha

Chinese caution: 本文是過去用英文寫的,有興趣的朋友可以翻譯成中文,謝謝。

IntroduceThere 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 :-(

RequirementBefore 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 buildGetting 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

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

InstallationIf 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, 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 = =

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

# postfix reload

Test listsIt'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 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:


Virtual HostingEcartis 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: "| /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.tldlists-request@thisdomain.tld lists-request-thisdomain.tldlists-repost@thisdomain.tld lists-repost@thisdomain.tldlists-admins@thisdomain.tld lists-admins-thisdomain.tldlists-moderators@thisdomain.tld lists-moderators-thisdomain.tldlists-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 ShootingWhen 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!

ReferenceDocs of ecartis

ecartis.hlp in source

ecartis source file

ecartis mailing list

Postfix documentation

  在鄭州大學的網絡安全的一個網站上看到的,感覺很不錯,所以就轉載過來了,不知道大家有沒有看過,可以參考一下。  postfix做郵件服務器不錯的選擇,可惜就是webmail沒找到PL的~~~看來牛人linux都用debian哦 ...查看完整版>>postfix反病毒反垃圾郵件系統構建HOWTO
在鄭州大學的網絡安全的一個網站上看到的,感覺很不錯,所以就轉載過來了,不知道大家有沒有看過,可以參考一下。 postfix做郵件服務器不錯的選擇,可惜就是webmail沒找到PL的~~~看來牛人linux都用debian哦 整理:sa...查看完整版>>postfix反病毒反垃圾郵件系統構建HOWTO【轉載】
Postfix + Cyrus-SASL + Cyrus-IMAPD + PgSQL HOWTO
[附言]該附言或許不成其爲什麽許可證,但還是希望您尊重作者的願望。如果您發現有什麽錯誤,請及時通知我,我將盡快作出修改。如果您在網上轉載,那將是免費,但希望您附上本附言,並且注明出處的鏈接。如果您要把它...查看完整版>>Postfix + Cyrus-SASL + Cyrus-IMAPD + PgSQL HOWTO
Linux Shadow-Password-HOWTO
  這節描述你需要知道有些程式在安裝時就已經有 Shadow Suite。大部分的資訊在操作手冊可以找到。     7.1 新增、修改和刪除使用者   Shadow Suite 新增下列指令用來新增、修改和刪除使用者。 這也是可以安裝...查看完整版>>Linux Shadow-Password-HOWTO
qmail Vpopmail And sqwebmail HOWTO - 3:獲得各組件
3.1:基本系統的RPM包 3.2:vpopmail 3.3:qmailadmin及相關支持包 3.4:vqsignup 3.5:sqwebmail 一個最基本的原則是:盡量使用相應軟件的stable版本,或是最新的發行版。最新版通常包含了增加的新功能,但是還沒有...查看完整版>>qmail Vpopmail And sqwebmail HOWTO - 3:獲得各組件
qmail Vpopmail And sqwebmail HOWTO - 1:介紹
1.1:什麽是qmail,爲什麽要用qmail? 1.2:什麽是vpopmail,爲什麽要用vpopmail? 1.3:什麽是qmailadmin,爲什麽要用qmailadmin? 1.4:什麽是ezmlm,爲什麽要用ezmlm? 1.5:什麽是vqsignup,爲什麽要用vqsignup? 1.6:什...查看完整版>>qmail Vpopmail And sqwebmail HOWTO - 1:介紹
  接下來要做的事情是變更實際碼, 我們將變更 auth.c 檔。  變更前 auth.c 檔 function 爲:  --------------------------------------------------------------------------------  /*  * login - Check...查看完整版>>LinuxShadow-Password-HOWTO-8.加入shadow支援C語言(2)
  1. 摘要  2. NT OS Loader 是如何運作的?  3. 如何安裝 Windows NT 及 Linux 在同一系統上的提示  3.1. 安裝 Windows NT  3.2. 分割磁碟  3.3. 安裝 Linux  3.4. Lilo  4. Bootpart  5. Linux 部...查看完整版>>Linux+NTOSLoadermini-HOWTO中譯版
  本文將描述如何在 RedHat 7.0 中安裝 Chinput 3.0 中文輸入服務器。  目錄  下載所需要的軟件  locale  中文 TrueType 字體  Chinput  致謝  1. 下載所需要的軟件  爲了順利的完成安裝,你將需要...查看完整版>>Linux中文化之RedHat7-Chinput3-tiny-HOWTO