- 追加された行はこの色です。
- 削除された行はこの色です。
*Mailmanのインストール [#kcf1d8a2]
本家、[[菊地時夫:http://www.is.kochi-u.ac.jp/~tkikuchi/]]先生のサイトのインストールマニュアルはこちら~
http://mm.tkikuchi.net/mailman-install/mailman-install.html
+[[portsでインストール>#oe512e9c]]
+[[Mailmanのチェック>#x9399738]]
+[[Apacheとの接続>#nd16424e]]
+[[Postfixとの接続>#r316984c]]
+[[mailmanの設定>#r4270433]]
**portsでインストール [#oe512e9c]
# locate mailman
/usr/ports/japanese/mailman -->2010現在では、/usr/ports/mail/mailman
# cd /usr/ports/japanese/mailman --> portinstall mail/mailman -m "MAIL_GID=mailman" "CGI_GID=www"
# make MAIL_GID=mailman CGI_GID=www install -->or? portinstall -m "MAIL_GID=mailman" "CGI_GID=www" mail/mailman
#ref(mailman-options.jpg)
依存関係で(というか、Mailman が動作する言語がそうなので)Python-2.5.1.tgz が同時にインストールされます。
# make install
---> Starting post-install script:
---> Checking crontab(5) file for user "mailman"
---> Creating crontab(5) file for user "mailman"
---> Checking (and fixing) file and directory permissions
----------------------------------------------------------------------------
Mailman has been installed, but requires further configuration before use!
You will have to configure both your MTA (mail server) and web server to
integrate with Mailman. If the port's documentation has been installed,
extensive post-installation instructions may be found in:
/usr/local/share/doc/mailman/FreeBSD-post-install-notes
Note (1): If you use an alternate (non-Sendmail) MTA, you MUST be sure
that the correct value of MAIL_GID was used when this port or package
was built. Performing a "make options" in the Mailman port directory
will list required values for various mail servers.
Note (2): The entire Mailman installation resides under /usr/local/mailman
The command-line scripts necessary to administer Mailman have been
installed in /usr/local/mailman/bin
Note (3): As of version 2.1, Mailman's queue runner runs as a daemon and
is started by a script in /usr/local/etc/rc.d
----------------------------------------------------------------------------
Your Postfix hostname is non-default.
You must add "$SMTPHOST = tfc.thousand-winds.jp" to the bottom of mm_cfg.py.
===> Installing rc.d startup script(s)
===> Registering installation for ja-mailman-with-htdig-2.1.9_4
===> SECURITY REPORT:
This port has installed the following binaries which execute with
increased privileges.
/usr/local/mailman/cgi-bin/create
/usr/local/mailman/cgi-bin/subscribe
/usr/local/mailman/mail/mailman
/usr/local/mailman/cgi-bin/listinfo
/usr/local/mailman/cgi-bin/rmlist
/usr/local/mailman/cgi-bin/options
/usr/local/mailman/cgi-bin/private
/usr/local/mailman/cgi-bin/admindb
/usr/local/mailman/cgi-bin/edithtml
/usr/local/mailman/cgi-bin/mmsearch
/usr/local/mailman/cgi-bin/roster
/usr/local/mailman/cgi-bin/htdig
/usr/local/mailman/cgi-bin/admin
/usr/local/mailman/cgi-bin/confirm
If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.
For more information, and contact details about the security
status of this software, see the following webpage:
http://www.list.org/
**Mailmanのチェック [#x9399738]
# cd /usr/local/mailman
# bin/check_perms -f
または、
# /usr/local/mailman/bin/check_perms -f
Warning: Private archive directory is other-executable (o+x).
This could allow other users on your system to read private archives.
If you're on a shared multiuser system, you should consult the
installation manual on how to fix this.
No problems found
ということで、
# chown www /usr/local/mailman/archives/private
# chmod o-x /usr/local/mailman/archives/private
して、
# /usr/local/mailman/bin/check_perms -f
すると、
No problems found
# vi /usr/local/mailman/Mailman/mm_cfg.py
最期の行に
"$SMTPHOST = tfc.thousand-winds.jp"
を加える。
Mailmanのインストールの後、メールサーバとウエッブサーバへの接続をする。
**Apacheとの接続 [#nd16424e]
cp /usr/local/mailman/icons/* /webのtop-pageのディレクトリ/icons/
cp /usr/local/mailman/icons/* /usr/local/www/apache22/icons/
cp /usr/local/mailman/icons/* /usr/local/www/apache22/data/icons/
vi /usr/local/etc/apache22/httpd.conf
<IfModule alias_module>
ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/"
Alias /pipermail/ "/usr/local/mailman/archives/public/"
</IfModule>
<Directory "/usr/local/mailman">
Options FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
apachectl configtest
apachectl restart
http://www.nw.is.kyusan-u.ac.jp/xoops/modules/bwiki/index.php?FreeBSD%2FMailServerSetup
**Postfixとの接続 [#r316984c]
# vi /usr/local/etc/postfix/main.cf
alias_maps = hash:/etc/mail/aliases
alias_database = hash:/etc/mail/aliases
↓(変更する)↓
alias_maps = hash:/etc/mail/aliases,
hash:/usr/local/mailman/data/aliases <--行頭にTABをいれる
alias_database = hash:/etc/mail/aliases, hash:/usr/local/mailman/data/aliases
owner_request_special = no
recipient_delimiter = +
unknown_local_recipient_reject_code = 550
postfix stop
postfix start
**mailmanの設定 [#r4270433]
# vi /usr/local/mailman/Mailman/mm_cfg.py
DEFAULT_SERVER_LANGUAGE = 'ja'
DEFAULT_EMAIL_HOST = 'mail.hogehoge.jp'
DEFAULT_URL_HOST = 'www.hogehoge.jp'
MTA = 'Postfix'
bin/genaliases スクリプトを実行して aliases ファイルを初期化してください.
# cd /usr/local/mailman
# bin/genaliases
# chown mailman:mailman data/aliases*
# chmod g+w data/aliases*
つづいてサイト全体のリストを作成。
# bin/newlist mailman
Enter the email of the person running the list: kuji@smb.net
Initial mailman password:
Hit enter to notify mailman owner...
★サイトのパスワードを変更するには、
/usr/local/mailman/bin/mmsitepass コマンドで変更
http://mm.tkikuchi.net/mailman-install/node40.html
**mailman起動 [#o5007d5e]
/usr/local/mailman/bin/mailmanctl start
起動時に自動起動するには /etc/rc.conf
mailman_enable="YES"
を記述
***Mailmanで最初のリストを作成する [#f674ceee]
URL http://210.255.122.220/mailman/create を開いてください.
----
http://www.voyager.gr.jp/~sampei/freebsd/mailman.html