<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Install Memo</title>
	<atom:link href="http://linux.yebisu.jp/feed" rel="self" type="application/rss+xml" />
	<link>http://linux.yebisu.jp</link>
	<description>Linux Install Memo</description>
	<lastBuildDate>Thu, 09 Sep 2010 04:27:40 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>見捨てられるAdaptecのI2O…</title>
		<link>http://linux.yebisu.jp/memo/450</link>
		<comments>http://linux.yebisu.jp/memo/450#comments</comments>
		<pubDate>Thu, 09 Sep 2010 04:27:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MEMO]]></category>

		<guid isPermaLink="false">http://linux.yebisu.jp/?p=450</guid>
		<description><![CDATA[うちの会社では扱いやすさから、AdaptecのZERO-Channel RAID(I2O)を使っていたのですが、これがどうしてなかなかマイナーなのか、Fedoraクラスでないと対応してくれていませんでした。
VineLi [...]]]></description>
			<content:encoded><![CDATA[<p>うちの会社では扱いやすさから、AdaptecのZERO-Channel RAID(I2O)を使っていたのですが、これがどうしてなかなかマイナーなのか、Fedoraクラスでないと対応してくれていませんでした。</p>
<p>VineLinuxのカーネルオプションに標準でONして欲しいのになぁ、と思いつつ、先日Fedora13で組んだ実験サーバーをyum -y updateしたら再起動できず。Σ(ﾟДﾟ；ｴｰｯ!  と思いつついろいろ確認してみると、どうやら新しいカーネルからI2OがOFFになったらしい。orz</p>
<p>いくらなんでも同じバージョンなのにOFFにするとは…ひどすぎますよFedoraさん。</p>
<p>結局これ(Adaptec I2O)を使い続けるには、カーネルはリコンパイルして自分でしこしこ作るしかなくなったってことですね、とほほ。</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.yebisu.jp/memo/450/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPodTouchでWEBサーバーのメモ</title>
		<link>http://linux.yebisu.jp/memo/446</link>
		<comments>http://linux.yebisu.jp/memo/446#comments</comments>
		<pubDate>Wed, 18 Aug 2010 09:01:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MEMO]]></category>

		<guid isPermaLink="false">http://linux.yebisu.jp/?p=446</guid>
		<description><![CDATA[server.port = 80 server.username = &#8220;daemon&#8221; server.groupname = &#8220;daemon&#8221; server.errorlog = &#8220;/var/log/lighttpd/error.log&#8221; server.follow-symlink = &#8220;enable&#8221; index-file.names = (&#8220;index.html&#8221;, &#8220;index.htm&#8221;, &#8220;index.cgi&#8221;, &#8220;index.php&#8221;) server.document-root = &#8220;/var/www/&#8221; # server.modules = ( &#8220;mod_rewrite&#8221;, &#8220;mod_redirect&#8221;, &#8220;mod_alias&#8221;, &#8220;mod_access&#8221;, &#8220;mod_auth&#8221;, &#8220;mod_status&#8221;, &#8220;mod_setenv&#8221;, &#8220;mod_fastcgi&#8221;, &#8220;mod_compress&#8221;, &#8220;mod_accesslog&#8221; ) fastcgi.server = ( &#8220;.php&#8221; => ( &#8220;localhost&#8221; => ( &#8220;socket&#8221; => &#8220;/tmp/php-fastcgi.socket&#8221;, &#8220;bin-path&#8221; => &#8220;/usr/bin/php-cgi&#8221;, &#8220;max-procs&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>server.port = 80<br />
server.username = &#8220;daemon&#8221;<br />
server.groupname = &#8220;daemon&#8221;<br />
server.errorlog = &#8220;/var/log/lighttpd/error.log&#8221;<br />
server.follow-symlink = &#8220;enable&#8221;<br />
index-file.names = (&#8220;index.html&#8221;, &#8220;index.htm&#8221;, &#8220;index.cgi&#8221;, &#8220;index.php&#8221;)<br />
server.document-root = &#8220;/var/www/&#8221;<br />
#<br />
server.modules = (<br />
        &#8220;mod_rewrite&#8221;,<br />
        &#8220;mod_redirect&#8221;,<br />
        &#8220;mod_alias&#8221;,<br />
        &#8220;mod_access&#8221;,<br />
        &#8220;mod_auth&#8221;,<br />
        &#8220;mod_status&#8221;,<br />
        &#8220;mod_setenv&#8221;,<br />
        &#8220;mod_fastcgi&#8221;,<br />
        &#8220;mod_compress&#8221;,<br />
        &#8220;mod_accesslog&#8221;<br />
)<br />
fastcgi.server             = ( &#8220;.php&#8221; =><br />
                               ( &#8220;localhost&#8221; =><br />
                                 (<br />
                                   &#8220;socket&#8221; => &#8220;/tmp/php-fastcgi.socket&#8221;,<br />
                                   &#8220;bin-path&#8221; => &#8220;/usr/bin/php-cgi&#8221;,<br />
                                   &#8220;max-procs&#8221; => 2,<br />
                                   &#8220;bin-environment&#8221; => (<br />
                                     &#8220;PHP_FCGI_CHILDREN&#8221; => &#8220;1&#8243;,<br />
                                     &#8220;PHP_FCGI_MAX_REQUESTS&#8221; => &#8220;5&#8243;<br />
                                   ),<br />
                                 )<br />
                               )<br />
                            )</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.yebisu.jp/memo/446/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>□Mercury Windows/32 の設定ポイント (Linuxネタじゃないけど)</title>
		<link>http://linux.yebisu.jp/memo/444</link>
		<comments>http://linux.yebisu.jp/memo/444#comments</comments>
		<pubDate>Sun, 13 Jun 2010 03:58:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MEMO]]></category>

		<guid isPermaLink="false">http://linux.yebisu.jp/memo/444</guid>
		<description><![CDATA[1.インストール
パソコンおやじさんのページ
http://www.aconus.com/~oyaji/
を参照すれば、最初は英語だけど問題なくインストールできるでしょう。
さらに、その後で日本語パッチを同じくパソコンお [...]]]></description>
			<content:encoded><![CDATA[<p>1.インストール</p>
<p>パソコンおやじさんのページ</p>
<p><a href="http://www.aconus.com/~oyaji/">http://www.aconus.com/~oyaji/</a></p>
<p>を参照すれば、最初は英語だけど問題なくインストールできるでしょう。</p>
<p>さらに、その後で日本語パッチを同じくパソコンおやじさんのページからダウンロードしてきて、Mercuryをインストールしたところでパッチexeを実行すれば、日本語化してくれます。</p>
<p>2.設定</p>
<p>設定しなければならないところはいくつかありますが、日本語化していると仮定して説明すると、設定からいって</p>
<p>・コアモジュール<br />
　・ローカルドメイン<br />
　　→扱うメールアドレスのドメイン名を設定</p>
<p>・エイリアス<br />
　→扱うメールアドレスと、実際のアドレスを記述<br />
　　表向きのアドレスと、底宛に届いたメールを実際に格納するメールボックスのユーザー名を設定</p>
<p>・MercuryS SMTPサーバー<br />
　・接続制御<br />
　　→認証されたSMTP接続だけをメール中継、にチェックして、その下の<br />
　　　AUTHパスワードファイルを編集してIDとパスワードを設定</p>
<p>・MercuryC SMTPリレークライアント<br />
　・Smartホスト名<br />
　　→リレー先サーバーとしてauth.gate-on.netやISPのメールサーバーを設定<br />
　・接続ポート/タイプ<br />
　　→ポート番号を587にしないと送信できないでしょう<br />
　・SMTP認証のための設定(必要時)<br />
　　→auth.gate-on.netの場合には設定不要ですが、ISPのメールサーバーをリレー先として使う場合には設定が必要</p>
<p>・ローカルユーザー管理<br />
　→メールの受信をする際に必要ですから、エイリアスとあわせて設定</p>
<p>その他、必要に応じてメーリングリストの設定や、SMTP/POP3/IMAP4などでSSLの設定もしてください。<br />
それと、ファイアーウォールの設定忘れに注意してください。</p>
<p>もしメールの送信が何らかの失敗で、送信ジョブとして保留されてしまった場合には、コアモジュールのメールキューのキュープロセス制御の最小時間だけ待ちますので、デフォルトの30分も待ってられないという場合には10分くらいにするのも手です。</p>
<p>そんなわけで、インストールと設定が終わったら、あとは自分のメールソフトにこのメールサーバーのアカウントを設定して、外のアドレスとの送受信を試してみましょう。</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.yebisu.jp/memo/444/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>□RoundCubeでWebMail(Vine5)</title>
		<link>http://linux.yebisu.jp/memo/432</link>
		<comments>http://linux.yebisu.jp/memo/432#comments</comments>
		<pubDate>Fri, 14 May 2010 03:46:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MEMO]]></category>

		<guid isPermaLink="false">http://linux.yebisu.jp/?p=432</guid>
		<description><![CDATA[□RoundCubeでWebMail(Vine5)
http://roundcube.net/
↑ここに基本的なことは全て書いてある
http://oss.poyo.jp/roundcube-ja/
↑ここに日本語解説あ [...]]]></description>
			<content:encoded><![CDATA[<p>□RoundCubeでWebMail(Vine5)</p>
<p><a href="http://roundcube.net/">http://roundcube.net/</a></p>
<p>↑ここに基本的なことは全て書いてある</p>
<p><a href="http://oss.poyo.jp/roundcube-ja/">http://oss.poyo.jp/roundcube-ja/</a></p>
<p>↑ここに日本語解説あり</p>
<p>このWebMailはMySQL対応なので、入っているとは思うけど</p>
<p>apt-get -y install MySQL-server MySQL-client MySQL-devel php5-mysql</p>
<p>はインストールすること。</p>
<p>肝心のRoundCubeはTARボールから展開。</p>
<p>cd /usr/src/package/<br />
wget <a href="http://downloads.sourceforge.net/project/roundcubemail/roundcubemail-beta/0.4-beta/roundcubemail-0.4-beta.tar.gz?use_mirror=jaist">http://downloads.sourceforge.net/project/roundcubemail/roundcubemail-beta/0.4-beta/roundcubemail-0.4-beta.tar.gz?use_mirror=jaist</a></p>
<p>すると、roundcubemail-0.4-beta.tar.gz(バージョンによって違う)が<br />
おとせるので、WebMailをしたいディレクトリで展開</p>
<p>cd /var/<br />
tar xvzf /usr/src/package/roundcubemail-0.4-beta.tar.gz<br />
mv ./roundcubemail-0.4-beta ./roundcube</p>
<p>展開されたディレクトリを見てみると</p>
<p># ls -al ./roundcube<br />
合計 112<br />
drwxr-xr-x 11 keyword   80  4096  4月23日 17:32 ./<br />
drwxr-xr-x 25 root    root  4096  5月14日 11:17 ../<br />
-rw-r&#8211;r&#8211;  1 keyword   80  1145  2月19日 03:09 .htaccess<br />
-rw-r&#8211;r&#8211;  1 keyword   80  6821  4月23日 17:13 CHANGELOG<br />
-rw-r&#8211;r&#8211;  1 keyword   80  8359  4月20日 16:26 INSTALL<br />
-rw-r&#8211;r&#8211;  1 keyword   80 17987 10月30日  2008 LICENSE<br />
-rw-r&#8211;r&#8211;  1 keyword   80  2132  4月23日 17:13 README<br />
drwxr-xr-x  2 keyword   80  4096  5月14日 11:17 SQL/<br />
-rw-r&#8211;r&#8211;  1 keyword   80  1052  4月15日 16:28 UPGRADING<br />
drwxr-xr-x  2 keyword   80  4096  5月14日 11:17 bin/<br />
drwxr-xr-x  2 keyword   80  4096  5月14日 11:17 config/<br />
-rw-r&#8211;r&#8211;  1 keyword   80  9864  4月23日 17:13 index.php<br />
drwxr-xr-x  3 keyword   80  4096  5月14日 11:17 installer/<br />
drwxr-xr-x  2 keyword   80  4096  5月14日 11:17 logs/<br />
drwxr-xr-x 24 keyword   80  4096  5月14日 11:17 plugins/<br />
drwxr-xr-x  7 keyword   80  4096  5月14日 11:17 program/<br />
-rw-r&#8211;r&#8211;  1 keyword   80    26  3月22日  2008 robots.txt<br />
drwxr-xr-x  3 keyword   80  4096  5月14日 11:17 skins/<br />
drwxr-xr-x  2 keyword   80  4096  5月14日 11:17 temp/</p>
<p>となっているので、この中のlogsとtempを誰でもかけるように<br />
パーミッション変更</p>
<p>chmod 777 /var/roundcube/logs/ /var/roundcube/temp/</p>
<p>つづいてデータベースの設定。</p>
<p>mysql -u root -p</p>
<p>CREATE DATABASE roundcubemail;<br />
GRANT ALL PRIVILEGES ON roundcubemail.* TO <a href="mailto:username@localhost">username@localhost</a> IDENTIFIED BY &#8216;password&#8217;;<br />
FLUSH PRIVILEGES;<br />
EXIT</p>
<p>として、データベースの作成とユーザー(もちろんusername, passwordは<br />
変更すること)の登録をする。</p>
<p>そしたらあとは、このRoundCubeディレクトリへのURLの下のinstaller/に<br />
アクセスして設定する。</p>
<p><a href="http://test1.mydns.jp/roundcube/installer/">http://test1.mydns.jp/roundcube/installer/</a></p>
<p>こんな画面が出てくればOK。</p>
<p><a href="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube001.jpg"><img class="alignnone size-medium wp-image-433" title="RoundCube001" src="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube001-300x255.jpg" alt="RoundCube001" width="300" height="255" /></a><br />
/etc/php5/php.iniのfile_uploadsとかsession.auto_startが上記で<br />
指定されている値になっているか確認すること。</p>
<p>で、次のページに行くと</p>
<p><a href="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube002.jpg"><img class="alignnone size-medium wp-image-435" title="RoundCube002" src="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube002-263x300.jpg" alt="RoundCube002" width="263" height="300" /></a><br />
自分の場合、McryptとSQLiteが入っていなかったので、インストールした。</p>
<p>apt-get -y install libmcrypt php5-mcrypt</p>
<p>さらに、date.timezoneが設定されていないということなので、これもphp.ini<br />
で設定した。</p>
<p>[Date]<br />
; Defines the default timezone used by the date functions<br />
; <a href="http://php.net/date.timezone">http://php.net/date.timezone</a><br />
date.timezone = &#8220;Asia/Tokyo&#8221;</p>
<p>SQLiteは使わないので無視。</p>
<p>で、このページを再読み込みすると、OKとなる。</p>
<p><a href="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube002-2.jpg"><img class="alignnone size-medium wp-image-434" title="RoundCube002-2" src="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube002-2-263x300.jpg" alt="" width="263" height="300" /></a><br />
ので、次にいくと</p>
<p><a href="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube003.jpg"><img class="alignnone size-large wp-image-436" title="RoundCube003" src="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube003-278x1024.jpg" alt="RoundCube003" width="278" height="1024" /></a><br />
こんなページが出るので、ここでは必要に応じて変更すること。</p>
<p>MySQLを使うので、真ん中あたりの「Database setup」のところを変更すること。<br />
また「Display settings &amp; user prefs」のlanguageはこまるところだが、<br />
とりあえず「ja_JP」にしてみた。</p>
<p>これで設定を生成すると、main.inc.phpとdb.inc.phpをダウンロードして<br />
/var/roundcube/config/にアップロードしろ、とでるのですること。</p>
<p><a href="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube004.jpg"><img class="alignnone size-medium wp-image-437" title="RoundCube004" src="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube004-213x300.jpg" alt="" width="213" height="300" /></a><br />
そしたら真ん中あたりの[CONTINUE]ボタンを押すと、アップロードがちゃんと<br />
できていたら以下のような画面になる。</p>
<p><a href="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube005.jpg"><img class="alignnone size-medium wp-image-438" title="RoundCube005" src="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube005-273x300.jpg" alt="RoundCube005" width="273" height="300" /></a><br />
で、DB Schema:  NOT OKとなっているが、これは[Initialize Database]を<br />
おせばOKとなる。</p>
<p><a href="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube005-2.jpg"><img class="alignnone size-medium wp-image-439" title="RoundCube005-2" src="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube005-2-274x300.jpg" alt="RoundCube005-2" width="274" height="300" /></a><br />
必要に応じてSMTPとIMAPのテストをして、OKならこの installer/自体を<br />
ばっさり削除すればOK。</p>
<p>で、あとは<a href="http://test1.mydns.jp/roundcube/">http://test1.mydns.jp/roundcube/</a>にあくせすすれば、RoundCube<br />
を使えるようになる。</p>
<p><a href="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube006.jpg"><img class="alignnone size-medium wp-image-440" title="RoundCube006" src="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube006-300x255.jpg" alt="" width="300" height="255" /></a></p>
<p><a href="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube007.jpg"><img class="alignnone size-medium wp-image-441" title="RoundCube007" src="http://linux.yebisu.jp/wp-content/uploads/2010/05/RoundCube007-300x255.jpg" alt="" width="300" height="255" /></a></p>
<p>ファンタスティーック!!</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.yebisu.jp/memo/432/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>□Courier-MTA＋PostgreSQL(Vine5)</title>
		<link>http://linux.yebisu.jp/memo/430</link>
		<comments>http://linux.yebisu.jp/memo/430#comments</comments>
		<pubDate>Thu, 13 May 2010 06:01:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MEMO]]></category>

		<guid isPermaLink="false">http://linux.yebisu.jp/?p=430</guid>
		<description><![CDATA[□Courier-MTA＋PostgreSQL(Vine5)
http://vine.1-max.net/postfix-SMTP-Auth.html
↑ここに基本的なことは全て書いてある
http://park1.wa [...]]]></description>
			<content:encoded><![CDATA[<p>□Courier-MTA＋PostgreSQL(Vine5)</p>
<p><a href="http://vine.1-max.net/postfix-SMTP-Auth.html">http://vine.1-max.net/postfix-SMTP-Auth.html</a></p>
<p>↑ここに基本的なことは全て書いてある</p>
<p><a href="http://park1.wakwak.com/~ima/freebsd_courierimap_postgresql.html">http://park1.wakwak.com/~ima/freebsd_courierimap_postgresql.html</a></p>
<p>↑ここにPostgreSQLデータベースを利用した場合のことが書いてある</p>
<p>apt-get install -y courier-imap courier-authlib courier-authlib-devel courier-authlib-pgsql</p>
<p>としてインストールしたら</p>
<p>/etc/authlib/authpgsqlrc.dist</p>
<p>という設定ファイルの元ができているので、これをコピーする</p>
<p>cd /etc/authlib/<br />
cp ./authpgsqlrc.dist ./authpgsqlrc</p>
<p>として、./authpgsqlrcをいじる。</p>
<p>パラメーターとしては</p>
<p>PGSQL_HOST              pgsql.example.com<br />
PGSQL_PORT              5400<br />
PGSQL_USERNAME          admin<br />
PGSQL_PASSWORD          admin<br />
PGSQL_DATABASE          template1<br />
PGSQL_USER_TABLE        passwd<br />
PGSQL_CRYPT_PWFIELD     crypt<br />
PGSQL_UID_FIELD         uid<br />
PGSQL_GID_FIELD         gid<br />
PGSQL_LOGIN_FIELD       id<br />
PGSQL_HOME_FIELD        home<br />
PGSQL_NAME_FIELD        name</p>
<p>があるが、オプションパラメータとして</p>
<p># PGSQL_CLEAR_PWFIELD   clear<br />
# PGSQL_MAILDIR_FIELD   maildir<br />
# PGSQL_DEFAULTDELIVERY defaultDelivery<br />
# PGSQL_QUOTA_FIELD     quota<br />
 :<br />
 :</p>
<p>こんなのもある。</p>
<p>とりあえず、ホストやポート番号を以下のように現状に合わせて<br />
テーブル定義をきちんとする。</p>
<p>こんな感じでいかがでしょ？</p>
<p>create table mail_passwd_tbl<br />
(<br />
    masterid    text,<br />
    cryptpwd    text,<br />
    clearpwd    text,<br />
    mastername  text,<br />
    masteruid   integer,<br />
    mastergid   integer,<br />
    masterhome  text,<br />
    maildir     text,<br />
    defaultdelivery     text,<br />
    quote       text,<br />
    registdate  integer,<br />
    lastdate    integer<br />
);</p>
<p>create unique index mail_cryptpwd_index on mail_passwd_tbl (masterid, cryptpwd);<br />
create unique index mail_clearpwd_index on mail_passwd_tbl (masterid, clearpwd);<br />
grant all on mail_passwd_tbl to public;</p>
<p>これにあう./authpgsqlrcは</p>
<p> :<br />
PGSQL_USER_TABLE        mail_passwd_tbl<br />
PGSQL_CRYPT_PWFIELD     cryptpwd<br />
PGSQL_UID_FIELD         masteruid<br />
PGSQL_GID_FIELD         mastergid<br />
PGSQL_LOGIN_FIELD       masterid<br />
PGSQL_HOME_FIELD        masterhome<br />
PGSQL_NAME_FIELD        mastername<br />
 :</p>
<p>となる。</p>
<p>さらにコメントのままだけど</p>
<p># PGSQL_CLEAR_PWFIELD     clearpwd</p>
<p>としておくと、いざ平文パスワードにしたときにあわてなくていいかも。<br />
(って平文パスワードにはしないだろうけど)</p>
<p>で、あとはPostgreSQLで認証させるために/etc/authlib/authdaemonrcのなかの<br />
次のパラメータにauthpgsqlが書いてある事を確認する</p>
<p>emacs /etc/authlib/authdaemonrc</p>
<p>authmodulelist=&#8221;authpgsql&#8221;<br />
authmodulelistorig=&#8221;authpgsql&#8221;</p>
<p>(他にもauthuserdbとかauthpamとか書いてあるはず)</p>
<p>確認したらcourier-imapとcourier-authlibの起動。</p>
<p>/etc/init.d/courier-authlib start<br />
/etc/init.d/courier-imap start</p>
<p>として、エラーもなく、プロセスがいる事も確認。</p>
<p># pgrep courier -l<br />
9319 courierlogger<br />
9451 couriertcpd<br />
9453 courierlogger<br />
9492 couriertcpd<br />
9494 courierlogger<br />
9498 couriertcpd<br />
9500 courierlogger<br />
9611 couriertcpd<br />
9613 courierlogger</p>
<p>そうしたら、後は実際にユーザーを追加登録すればよい。</p>
<p>別途メモした「□Postfix＋PostgreSQL(Vine)」と共に、hogehoge に対して<br />
メールを送信して、実在しないhogehogeでメールが受信できる事を試して<br />
みるといい。</p>
<p>例：</p>
<p>実在ユーザー(user00001)を追加する。</p>
<p>/usr/sbin/useradd user00001</p>
<p>パスワードは未設定の状態でためしにPOP3にアクセスしてもInvalidで<br />
はじかれる。</p>
<p>つづいて転送用データと認証用データをインサートする。</p>
<p>INSERT into mail_alias_tbl VALUES<br />
(<br />
    &#8216;root&#8217;,　　　　　ルートさんが登録しました<br />
    &#8216;TEST&#8217;,　　　　　グループとしてはテストです<br />
    &#8216;hogehoge&#8217;,　　　hogehoge宛のメールは<br />
    &#8216;user00001&#8242;, 　　user00001さんに転送します<br />
    0,<br />
    0<br />
);</p>
<p>INSERT INTO mail_passwd_tbl VALUES<br />
(<br />
    &#8216;hogehoge&#8217;,　　　hogehogeさんの認証用データで<br />
    &#8216;$1$EGq5av3o$rVopfAi8sPbqHHSSo8vGV.&#8217;,　　暗号化してあるパスワード<br />
    &#8216;areare&#8217;,<br />
    &#8216;TEST USER&#8217;,<br />
    &#8217;10001&#8242;,<br />
    &#8217;10001&#8242;,<br />
    &#8216;/home/user00001/&#8217;,<br />
    &#8216;/home/user00001/Maildir/&#8217;,<br />
    &#8221;,<br />
    &#8221;,<br />
    0,<br />
    0<br />
);</p>
<p>ちなみにこれのパスワードはclearpwdに書いたようにareare。<br />
PHPでコマンドラインでちゃちゃっと作れる。<br />
userdbpwで作ってもいいけど短すぎるかと…</p>
<p>PHPの例：&lt;? print crypt(&#8220;areare&#8221;); ?&gt;　→$1$EGq5av3o$rVopfAi8sPbqHHSSo8vGV.<br />
userdbpwの例：→9T3u0YXzuFDNU</p>
<p>なにはともあれ、このデータをインサートしてから、テストメールを<br />
送信して、さらにPOP3にアクセスすると、</p>
<p># mail hogehoge<br />
Subject: TEST MAIL</p>
<p>TEST MAIL.</p>
<p>.<br />
Cc:<br />
#<br />
# tail -f /var/log/maillog<br />
May 13 14:40:04 www postfix/qmgr[6124]: A96864464B6: removed<br />
May 13 14:42:30 www postfix/postfix-script[15612]: stopping the Postfix mail system<br />
May 13 14:42:31 www postfix/master[6121]: terminating on signal 15<br />
May 13 14:42:31 www postfix/postfix-script[15705]: starting the Postfix mail system<br />
May 13 14:42:31 www postfix/master[15706]: daemon started &#8212; version 2.6.3, configuration /etc/postfix<br />
May 13 14:42:46 www postfix/pickup[15709]: CD81A4464B7: uid=0 from=&lt;root&gt;<br />
May 13 14:42:46 www postfix/cleanup[15879]: CD81A4464B7: message-id=&lt;<a href="mailto:20100513054246.CD81A4464B7@test1.mydns.jp">20100513054246.CD81A4464B7@test1.mydns.jp</a>&gt;<br />
May 13 14:42:46 www postfix/qmgr[15710]: CD81A4464B7: from=&lt;<a href="mailto:root@test1.mydns.jp">root@test1.mydns.jp</a>&gt;, size=329, nrcpt=1 (queue active)<br />
May 13 14:42:46 www postfix/local[15883]: CD81A4464B7: to=&lt;<a href="mailto:user00001@test1.mydns.jp">user00001@test1.mydns.jp</a>&gt;, orig_to=&lt;hogehoge&gt;, relay=local, delay=0.22, delays=0.2/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)<br />
May 13 14:42:46 www postfix/qmgr[15710]: CD81A4464B7: removed<br />
#<br />
# telnet localhost pop3<br />
Trying 127.0.0.1&#8230;<br />
Connected to localhost.<br />
Escape character is &#8216;^]&#8217;.<br />
+OK Hello there. &lt;bd911bbdd9e1726615c52bbd0de061fc&gt;<br />
user hogehoge<br />
+OK Password required.<br />
pass areare<br />
+OK logged in.<br />
LIST<br />
+OK POP3 clients that break here, they violate STD53.<br />
1 437<br />
.<br />
quit<br />
+OK Bye-bye.<br />
Connection closed by foreign host.</p>
<p>というように、実在しないユーザー宛にメールを送って、実在しない<br />
ユーザーでPOP3接続してメールが取り出せる。</p>
<p>ワンダホー!!</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.yebisu.jp/memo/430/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
