majordomo邮件列表快速安装指南

Majordomo邮件列表安装配置
本文介绍如何在Red Hat 5.2系统上安装和配置Majordomo邮件列表管理软件,包括rpm包安装、配置文件编辑、sendmail设置等步骤。
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

相关链接:
Quota限制磁盘空间基本技术
http://club.sob8.com/read-htm-tid-40450.html

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值