Mailman installの備忘録
【参考サイト】
GNU Mailman – インストールマニュアル
http://mm.tkikuchi.net/mailman-install/index.html
- VMWare ESXiにCentOS 5.3 x86をinstall
- wgetでmailman-2.1.12.tgzをget
- 解凍
- mailmanグループ作成
- mailmanユーザ作成
- インストールディレクトリ作成
- configureを実行
- makeを実行
- make installを実行
- インストールチェックを実行
1 2 3 4 5 6 7 8 9 |
[root@centos src]# wget http://mm.tkikuchi.net/mailman-2.1.12.tgz --10:58:11-- http://mm.tkikuchi.net/mailman-2.1.12.tgz mm.tkikuchi.net をDNSに問いあわせています... 133.97.166.52 mm.tkikuchi.net|133.97.166.52|:80 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 8010027 (7.6M) [application/x-tar] Saving to: `mailman-2.1.12.tgz' 100%[=======================================>] 8,010,027 1.45M/s in 5.6s 10:58:17 (1.35 MB/s) - `mailman-2.1.12.tgz' を保存しました [8010027/801027] |
1 |
[root@centos src]# tar xvfz mailman-2.1.12.tgz |
1 |
[root@centos src]# groupadd mailman |
-c コメント, -s shell(ログインさせない), -M ホームディレクトリを作成しない, -g 所属するグループ, 作成するユーザ
1 |
[root@centos src]# useradd -c "GNU Mailman" -s /sbin/nologin -M -g mailman mailman |
インストールディレクトリはデフォルト(/usr/local/mailman)
1 2 3 4 5 6 7 |
[root@centos src]# mkdir /usr/local/mailman [root@centos src]# chown mailman:mailman /usr/local/mailman [root@centos src]# ls -lad /usr/local/mailman/ drwxr-xr-x 2 mailman mailman 4096 10月 20 14:06 /usr/local/mailman/ [root@centos src]# chmod a+rx,g+ws /usr/local/mailman [root@centos src]# ls -lad /usr/local/mailman/ drwxrwsr-x 2 mailman mailman 4096 10月 20 14:06 /usr/local/mailman/ |
Apacheをapacheグループで実行させるのでオプション –with-cgi-gid=apache を指定
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
[root@centos src]# cd mailman-2.1.12 [root@centos mailman-2.1.12]# ./configure --with-cgi-gid=apache checking for --with-python... no checking for python... /usr/bin/python checking Python interpreter... /usr/bin/python checking Python version... 2.4.3 checking Python's email package... ok checking that Python has a working distutils... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes checking for true... /bin/true checking for --without-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether #! works in shell scripts... yes checking for --with-var-prefix... no checking for --with-permcheck... yes checking for --with-username... mailman checking for user name "mailman"... okay checking for --with-groupname... mailman checking for group name "mailman"... okay checking permissions on /usr/local/mailman... okay checking for mail wrapper group; i.e. --with-mail-gid... mailman checking for CGI wrapper group; i.e. --with-cgi-gid... apache checking for CGI extensions... no checking for --with-mailhost... no checking for --with-urlhost... no checking for default mail host name... centos.rootlinks.net checking for default URL host component... centos.rootlinks.net checking for strerror... yes checking for setregid... yes checking for syslog... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for uid_t in sys/types.h... yes checking type of array argument to getgroups... gid_t checking for vsnprintf... yes configure: creating ./config.status config.status: creating misc/paths.py config.status: creating Mailman/Defaults.py config.status: creating Mailman/mm_cfg.py.dist config.status: creating src/Makefile config.status: creating misc/Makefile config.status: creating bin/Makefile config.status: creating Mailman/Makefile config.status: creating Mailman/Cgi/Makefile config.status: creating Mailman/Logging/Makefile config.status: creating Mailman/Archiver/Makefile config.status: creating Mailman/Commands/Makefile config.status: creating Mailman/Handlers/Makefile config.status: creating Mailman/Bouncers/Makefile config.status: creating Mailman/Queue/Makefile config.status: creating Mailman/MTA/Makefile config.status: creating Mailman/Gui/Makefile config.status: creating templates/Makefile config.status: creating cron/Makefile config.status: creating scripts/Makefile config.status: creating messages/Makefile config.status: creating cron/crontab.in config.status: creating misc/mailman config.status: creating Makefile config.status: creating tests/Makefile config.status: creating tests/bounces/Makefile config.status: creating tests/msgs/Makefile config.status: creating build/bin/add_members config.status: creating build/bin/arch config.status: creating build/bin/change_pw config.status: creating build/bin/check_db config.status: creating build/bin/check_perms config.status: creating build/bin/cleanarch config.status: creating build/bin/clone_member config.status: creating build/bin/config_list config.status: creating build/bin/convert.py config.status: creating build/bin/discard config.status: creating build/bin/dumpdb config.status: creating build/bin/export.py config.status: creating build/bin/find_member config.status: creating build/bin/fix_url.py config.status: creating build/bin/genaliases config.status: creating build/bin/inject config.status: creating build/bin/list_admins config.status: creating build/bin/list_lists config.status: creating build/bin/list_members config.status: creating build/bin/list_owners config.status: creating build/bin/mailmanctl config.status: creating build/bin/mmsitepass config.status: creating build/bin/msgfmt.py config.status: creating build/bin/newlist config.status: creating build/bin/pygettext.py config.status: creating build/bin/qrunner config.status: creating build/bin/remove_members config.status: creating build/bin/reset_pw.py config.status: creating build/bin/rmlist config.status: creating build/bin/show_qfiles config.status: creating build/bin/sync_members config.status: creating build/bin/transcheck config.status: creating build/bin/unshunt config.status: creating build/bin/update config.status: creating build/bin/version config.status: creating build/bin/withlist config.status: creating build/bin/b4b5-archfix config.status: creating build/bin/rb-archfix config.status: creating build/contrib/check_perms_grsecurity.py config.status: creating build/contrib/qmail-to-mailman.py config.status: creating build/contrib/rotatelogs.py config.status: creating build/cron/bumpdigests config.status: creating build/cron/checkdbs config.status: creating build/cron/cull_bad_shunt config.status: creating build/cron/disabled config.status: creating build/cron/gate_news config.status: creating build/cron/mailpasswds config.status: creating build/cron/nightly_gzip config.status: creating build/cron/senddigests config.status: executing default commands configuration completed at Tue Oct 20 14:26:28 JST 2009</td> |
1 |
[root@centos mailman-2.1.12]# make |
1 |
[root@centos mailman-2.1.12]# make install |
インストール後にセキュリティチェックを行います。実行する前にTerminalの文字コードをeuc-jpにしておかないと文字化けを起こします。で、私は文字化けしてしまいましたので2回目の実行結果だけ載せておきます
1 2 3 4 5 6 7 8 |
[root@centos mailman-2.1.12]# cd /usr/local/mailman/ [root@centos mailman]# bin/check_perms -f 警告: 限定公開保存書庫ディレクトリが other-executable (o+x) に なっています. あなたのシステムのシェルユーザがこの保存書庫 を読むことができます. インストールマニュアルには, これを どうしたら修正できるか書いてありますので, 参考にしてください. 問題ありません |