·首页 ·asp ·.net ·php ·JSP ·CGI ·数据库 ·网页设计 ·网管专栏 ·XML ·工具软件 ·办公软件 ·操作系统 ·程序设计 ·LINUX 
  当前位置: 普克>>计算机教程>>网管专栏>>邮件服务>>majordomo邮件列表快速安装指南
flash视频教学

photoshop专题

asp.net专题

office专题

majordomo邮件列表快速安装指南


邮件服务 发表时间:2006-4-8 字体:  返回

Step 1:
rpm -i majordomo-1.94.4-6.i386.rpm
(注意RedHat5.2内附的perl5.004m4版有问题,要更新至5.005版)执行完后/usr/lib/majordomo/为主程序所在目录.
/var/lib/majordomo/为mailing list 资料所在目录.
并且会产生majordomo这user及group

Step 2.
修改 /etc/majordomo.cf
$homedir = /usr/lib/majordomo/
$whereami = your FQDN

Step 3.
/etc/majordomo.aliases 档内容大致如下:

majordomo: "|/usr/lib/majordomo/wrapper majordomo"
owner-majordomo: majordomo-owner
majordomo-owner: root

test-list-approval: test-list-owner
owner-test-list: test-list-owner
test-list-owner: root
owner-test-list-archive: test-list-owner
test-list: "|/usr/lib/majordomo/wrapper resend
-A -a /var/lib/majordomo/lists/test-list.passwd
-l test-list
-h linpus test-list-announce"
test-list-announce: :include:/var/lib/majordomo/lists/test-list,
"| /usr/lib/majordomo/wrapper archive2.pl -a -m -f
/var/lib/majordomo/archives/test-list"


(resend是用来分析那些寄过来的文章,并作处理.
-A 表示此list为moderated list ,即任何寄到此list的文章都必须经过test-list-owner的approve才会流到各订阅此list的信箱中.
-a filename 该文件记录moderator approve此信件password
-h hostname 为此mailing list server的hostname
-l listname 此list的名字

archive2.pl是把所有收到的信件存在/var/lib/majordomo/archives/listname里

Step 4:
加入 "OA/etc/majordomo.aliases" 于 /etc/sendmail.cf

Step 5:
执行newaliases
(若sendmail.cf设为O AutoRebuildAliases则不必做此步骤)

Step 6:
将 "majordomo" 加入sendmail.cf的 Trusted users list,如下:

#####################
# Trusted users #
#####################
# this is equivalent to setting class "t"
#Ft/etc/sendmail.ct
Troot
Tdaemon
Tuucp
Tmajordomo
Tnobody

Step 7:
Create a test-list (假设要建立的新mailing list 为test-list)
touch /var/lib/majordomo/lists/test-list
chown majordomo.majordomo /var/lib/majordomo/lists/test-list

Step 8:
在/var/lib/majordomo/lists/test-list.info档里写些关于此mailing list的一些说明

其它:/var/lib/majordomo/lists/test-list文件是记录哪些email addr订阅此list.test-list.config为此list的configuration files,会自动产生.若要关于此list,只须产生对于的listname.close于lists目录下即可.若要自动使欲订阅者成功订阅而不必回复身份确认信,则只须产生listname.auto即可

Step 9:
Any article post to this mailing list must be approved by the owner of the list. The owner of the list can approve the article by resend it to the list, and add "Approved: password-of-approval" at the beginning of the message body.

Step 10:
为了测试majordomo是否成功运转,输入
echo \\\'lists\\\'|mail majordomo
若寄回来的是majordomo发出的信则成功,若是mail daemon return
的信则是错误。

Step 11:
可能的错误,"sh: wrapper not available for sendmail programs"
你的系统使用了 smrsh (sendmail restricted shell). 你必须要使smrsh让你使用这个wrapper,可能的解法是ln -s /the/path/of/your/wrapper
/var/adm/sm.bin



上一篇:Linux+IMAP4.7c1安装脚本
下一篇:如何安装Cyrus IMAP服务器

普克创业投资网刊载此文不代表同意其说法或描述,仅为提供更多信息。
在百度中搜索majordomo邮件列表快速安装指南的相关内容]   [在狗狗中搜索majordomo邮件列表快速安装指南的相关内容]
Copyright @ 2006 PUPK.COM 普克创业投资网 版权所有
 建议使用1024*768以达到最好的浏览效果