監視の仕組みでMLのような機能が必要になったので対応しました。
早速、インストールして起動してみると、エラーが出ました。
# yum -y install mailman # /etc/init.d/mailman start mailman を起動中: サイトリスト名がありません: mailman [失敗]
mailmanという名前のMLが無いとのことなので、下記のように作成します。
# /usr/lib/mailman/bin/newlist mailman Enter the email of the person running the list: alert@cloudpack.jp 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: "|/usr/lib/mailman/mail/mailman post mailman" mailman-admin: "|/usr/lib/mailman/mail/mailman admin mailman" mailman-bounces: "|/usr/lib/mailman/mail/mailman bounces mailman" mailman-confirm: "|/usr/lib/mailman/mail/mailman confirm mailman" mailman-join: "|/usr/lib/mailman/mail/mailman join mailman" mailman-leave: "|/usr/lib/mailman/mail/mailman leave mailman" mailman-owner: "|/usr/lib/mailman/mail/mailman owner mailman" mailman-request: "|/usr/lib/mailman/mail/mailman request mailman" mailman-subscribe: "|/usr/lib/mailman/mail/mailman subscribe mailman" mailman-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe mailman" Hit enter to notify mailman owner...
そして上記の指示通り、下記のようにaliasesに追記します。
# cat /etc/aliases ... ## mailman mailing list mailman: "|/usr/lib/mailman/mail/mailman post mailman" mailman-admin: "|/usr/lib/mailman/mail/mailman admin mailman" mailman-bounces: "|/usr/lib/mailman/mail/mailman bounces mailman" mailman-confirm: "|/usr/lib/mailman/mail/mailman confirm mailman" mailman-join: "|/usr/lib/mailman/mail/mailman join mailman" mailman-leave: "|/usr/lib/mailman/mail/mailman leave mailman" mailman-owner: "|/usr/lib/mailman/mail/mailman owner mailman" mailman-request: "|/usr/lib/mailman/mail/mailman request mailman" mailman-subscribe: "|/usr/lib/mailman/mail/mailman subscribe mailman" mailman-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe mailman"
newaliasesで反映して、念のためPostfixも再起動し、Mailmanを起動すると、今度は下記のように無事、成功しました。
# newaliases # /etc/init.d/postfix restart Shutting down postfix: [ OK ] Starting postfix: # /etc/init.d/mailman start Starting mailman: [ OK ]