歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> Linux資訊 >> 更多Linux

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    

 




Copyright © Linux教程網 All Rights Reserved