先檢查是否安裝過rpm -qa | grep mailman
在Fedora安裝時就可以選擇是否安裝mailman
如果沒有可以用apt-get install mailman安裝
版本是mailman-2.1.5-7
註:如果是重新安裝,需要重新啟動apache
1.設定Mailman site 的密碼
/var/mailman/bin/mmsitepass
2.編輯 Mailman 的設定檔
代碼: 選擇全部
/var/mailman/Mailman/mm_cfg.py
修改 DEFAULT_URL_HOST DEFAULT_EMAIL_HOST 這兩個值:
DEFAULT_URL_HOST = 'your.domain'
DEFAULT_EMAIL_HOST = 'your.domain'
3.建立 mailman 這個預設的 list
在 2.x 版以後,這個動作一定要做,不然 mailman 會跑不起來的
代碼: 選擇全部
# /var/mailman/bin/newlist mailman
Enter the email of the person running the list: candyz@ns.kandix.idv.tw
Initial mailman password:
To finish creating your mailing list, you must edit your /etc/aliases (or
equivalent) file by adding the following lines, and possibly running the
`newaliases' program:
## mailman mailing list
mailman: "|/var/mailman/mail/mailman post mailman"
mailman-admin: "|/var/mailman/mail/mailman admin mailman"
mailman-bounces: "|/var/mailman/mail/mailman bounces mailman"
mailman-confirm: "|/var/mailman/mail/mailman confirm mailman"
mailman-join: "|/var/mailman/mail/mailman join mailman"
mailman-leave: "|/var/mailman/mail/mailman leave mailman"
mailman-owner: "|/var/mailman/mail/mailman owner mailman"
mailman-request: "|/var/mailman/mail/mailman request mailman"
mailman-subscribe: "|/var/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe: "|/var/mailman/mail/mailman unsubscribe mailman"
Hit enter to notify mailman owner...
修改完 /etc/aliases 後,要再執行 newaliases 指令後才會生效
如果是使用Postfix,請將資料加到 /etc/postfix/aliases,然後重新啟動POSTFIX
3.啟動 mailman
執行service mailman start
4.建立新的 list
要建立新的 list,請執行
/var/mailman/bin/newlist <listname>
然後再修改 /etc/aliases 檔案,加入相關的 aliases
然後再執行 newaliases 指令
5.管理介面
http://your.domain/mailman/admin/mailman
http://your.domain/mailman/listinfo