当前位置:Linux教程 - Linux资讯 - majordomo邮件列表快速安装指南

majordomo邮件列表快速安装指南

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    

 

(出处:http://www.sheup.com)