<?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>ダメ出し日記 &#187; Mail</title>
	<atom:link href="http://www.sfo.jp/blog/archives/category/software/mail/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sfo.jp/blog</link>
	<description>自称・独立&#38;OSS系(?) SE、さとうふみやすの日記。OSS テクノロジ(株)に勤務。</description>
	<lastBuildDate>Fri, 23 Oct 2009 08:10:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Postfix: SMTP HELO コマンドの制限</title>
		<link>http://www.sfo.jp/blog/archives/2005/10/post-22.html</link>
		<comments>http://www.sfo.jp/blog/archives/2005/10/post-22.html#comments</comments>
		<pubDate>Thu, 27 Oct 2005 13:33:06 +0000</pubDate>
		<dc:creator>fumiyas</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ダメ出し]]></category>
		<category><![CDATA[仕事]]></category>

		<guid isPermaLink="false">http://www.sfo.jp/blog/archives/2005/10/post-22.html</guid>
		<description><![CDATA[
某所で NetSky 系のウイルスが欝陶しい。
ウイルスである SMTP クライアントは
HELO 宛先アドレスのドメイン部
と喋るようなので、これで制限することにした。




まずは
/etc/postfix/he [...]]]></description>
			<content:encoded><![CDATA[<p>
某所で NetSky 系のウイルスが欝陶しい。
ウイルスである SMTP クライアントは
<q><code>HELO 宛先アドレスのドメイン部</code></q>
と喋るようなので、これで制限することにした。
</p>

<p><span id="more-67"></span>
<p>
まずは
<code class="file">/etc/postfix/helo<em>access</code>
を用意して、
<code class="commandline">postmap /etc/postfix/helo</em>access</code>
しておく。
内容は以下の通り:
</p>
<pre class="code"><code>example.com REJECT
</code></pre>
<p>
次に
<code class="file">/etc/postfix/main.cf</code>
に以下のような設定を追加して、
<code class="commandline">postfix reload</code>
する:
</p>
<pre class="code"><code>smtpd<em>helo</em>restrictions =
check<em>helo</em>access hash:/etc/postfix/helo<em>access
</code></pre>
<p>
で、試してみると…
<q><code>HELO exmaple.com</code></q>
だけでなく、
<q><code>HELO subdomain.exmaple.com</code></q>
も拒否してしまうのであった。
</p>
<p>
何で素直に exmaple.com だけを対象にしないのかね、まったく。
ちなみにこれと同じ変な仕様は、Apache の mod</em>access にもある。
いや待てよ、もしかしたら、これがいわゆる「普通」なのかも?!
だとしたらちょっと狂ってる。
<code class="command">qmail-smtpd</code>(8) の
<code class="file">rcpthosts</code> ファイルのように、
exmaple.com だったら exmaple.com だけにマッチし、
.example.com だったら example.com のサブドメインすべてにマッチするという仕様のほうが、
ずっと直感的でわかりやすく、なおかつ使い易いと思う。
</p>
<p>
気をとりなおして <code class="file">access</code>(5) を斜め読みしてから、
<code class="file">/etc/postfix/helo<em>access</code>
を以下のように変更してみた:
</p>
<pre class="code"><code>.example.com DUNNO
example.com REJECT
</code></pre>
<p>
しかし結果は変わらず。
</p>
<p>
もう一度 <code class="file">access</code>(5) をようく読んだところ、
<code class="parameter">parent</em>domain<em>matches</em>subdomains</code> が元凶であることが判明。
そこで
<code class="file">/etc/postfix/main.cf</code>
に以下を追加して無効にすることにした:
<pre class="code"><code>parent<em>domain</em>matches<em>subdomains =
</code></pre>
<p>
<code class="file">/etc/postfix/helo</em>access</code>
を最初のものに戻して試したところ、今度は成功した。
</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sfo.jp/blog/archives/2005/10/post-22.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wanderlust on XEmacs で本文が白文字 &amp; 白背景</title>
		<link>http://www.sfo.jp/blog/archives/2005/10/wanderlust-on-x.html</link>
		<comments>http://www.sfo.jp/blog/archives/2005/10/wanderlust-on-x.html#comments</comments>
		<pubDate>Mon, 17 Oct 2005 08:46:44 +0000</pubDate>
		<dc:creator>fumiyas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[ダメ出し]]></category>

		<guid isPermaLink="false">http://www.sfo.jp/blog/archives/2005/10/wanderlust-on-x.html</guid>
		<description><![CDATA[
時々、表題のような状態になるメッセージが表われ、本文が読めないことがある。
ヘッダーや引用の部分は問題ない。
白 &#38; 白以外にも、妙な配色になることもたまにある。
特定のメッセージで発生するわけではなく、
一見 [...]]]></description>
			<content:encoded><![CDATA[<p>
時々、表題のような状態になるメッセージが表われ、本文が読めないことがある。
ヘッダーや引用の部分は問題ない。
白 &amp; 白以外にも、妙な配色になることもたまにある。
特定のメッセージで発生するわけではなく、
一見、ランダムに発生しているようだ。
XEmacs かなにかのバグか、設定が悪いんだろうか。
Emacs のときには見られなかった現象だ。
</p>

<p><p>
一時凌ぎだが、
<code class="commandline">M-x wl-message-buffer-cache-clean-up</code>
を実行すると直る。
</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sfo.jp/blog/archives/2005/10/wanderlust-on-x.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sophie へのシグナル送信</title>
		<link>http://www.sfo.jp/blog/archives/2005/10/sophie.html</link>
		<comments>http://www.sfo.jp/blog/archives/2005/10/sophie.html#comments</comments>
		<pubDate>Wed, 05 Oct 2005 17:25:56 +0000</pubDate>
		<dc:creator>fumiyas</dc:creator>
				<category><![CDATA[Mail]]></category>
		<category><![CDATA[ダメ出し]]></category>
		<category><![CDATA[仕事]]></category>

		<guid isPermaLink="false">http://www.sfo.jp/blog/archives/2005/10/sophie.html</guid>
		<description><![CDATA[
仕事で Sophie 3.04
の実験を行なっている。
daemontools
の supervise 配下で動作させているのだが、
svc -t /service/sophie
などが何故か効かない。
直接、親プロセ [...]]]></description>
			<content:encoded><![CDATA[<p>
仕事で <a href="http://www.clanfield.info/sophie/">Sophie</a> 3.04
の実験を行なっている。
<a href="http://cr.yp.to/daemontools.html">daemontools</a>
の supervise 配下で動作させているのだが、
<code class="commandline">svc -t /service/sophie</code>
などが何故か効かない。
直接、親プロセスに HUP やらのシグナルを送っても無視され効果なし。
</p>

<p><p>
しょうがないので Sophie のソースを見てみると、
親プロセスがシグナルを無視するようになっているじゃないか!
しかも PID ファイルには親プロセスではなく子プロセスの PID を保存するし、なんじゃこりゃ。
…そうか、シグナルは子プロセスに送るんだ。
変った仕様だなぁ。
</p>
<p>
なんでこんな狂った仕様にしたんだろう?
daemontools で扱えないのは困ったなぁ。
</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sfo.jp/blog/archives/2005/10/sophie.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>最近の spam 対策</title>
		<link>http://www.sfo.jp/blog/archives/2005/10/spam.html</link>
		<comments>http://www.sfo.jp/blog/archives/2005/10/spam.html#comments</comments>
		<pubDate>Tue, 04 Oct 2005 13:17:21 +0000</pubDate>
		<dc:creator>fumiyas</dc:creator>
				<category><![CDATA[Mail]]></category>

		<guid isPermaLink="false">http://www.sfo.jp/blog/archives/2005/10/spam.html</guid>
		<description><![CDATA[
阻止率99%のスパム対策方式の研究報告 —　Selective SMTP Rejection (S25R)方式
Rgrey &#8211; S25R + postgrey パッチ



SMTP の仕様上、場当たり的な [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://www.gabacho-net.jp/anti-spam/anti-spam-system.html">阻止率99%のスパム対策方式の研究報告 —　Selective SMTP Rejection (S25R)方式</a></li>
<li><a href="http://k2net.hakuba.jp/rgrey/">Rgrey &#8211; S25R + postgrey パッチ</a></li>
</ul>

<p><p>
SMTP の仕様上、場当たり的なのはしょうがないか。
いつまで有効な手段となるかな。
</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sfo.jp/blog/archives/2005/10/spam.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>前向きに検討します by Sophos</title>
		<link>http://www.sfo.jp/blog/archives/2005/09/by-sophos.html</link>
		<comments>http://www.sfo.jp/blog/archives/2005/09/by-sophos.html#comments</comments>
		<pubDate>Wed, 21 Sep 2005 08:16:00 +0000</pubDate>
		<dc:creator>fumiyas</dc:creator>
				<category><![CDATA[Mail]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[ダメ出し]]></category>

		<guid isPermaLink="false">http://www.sfo.jp/blog/archives/2005/09/by-sophos.html</guid>
		<description><![CDATA[
先日行なった Sophos への問い合わせ
の回答が来た。
前向きに検討する、うんぬんという内容だった。
つまらん。



同じ頃、Sophos PureMessage for UNIX 5.0
の試用についても問い合 [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="/blog/archives/2005/09/sophos.html">先日行なった Sophos への問い合わせ</a>
の回答が来た。
<q>前向きに検討する、<var>うんぬん</var></q>という内容だった。
つまらん。
</p>

<p><p>
同じ頃、Sophos PureMessage for UNIX 5.0
の試用についても問い合わせたのだが、
<q>PureMessage for UNIX は購入最少単位が 500ユーザーからと規定されています</q>
と言われてしまった。
Small Business Edition という名前を冠した製品があるが、どれも Windows か Macintosh 用で、
UNIX 版はなし。
使えん。
</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sfo.jp/blog/archives/2005/09/by-sophos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sophos からダウンロードしたファイルの検証手段</title>
		<link>http://www.sfo.jp/blog/archives/2005/09/sophos.html</link>
		<comments>http://www.sfo.jp/blog/archives/2005/09/sophos.html#comments</comments>
		<pubDate>Fri, 16 Sep 2005 14:05:44 +0000</pubDate>
		<dc:creator>fumiyas</dc:creator>
				<category><![CDATA[Mail]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[ダメ出し]]></category>

		<guid isPermaLink="false">http://www.sfo.jp/blog/archives/2005/09/sophos.html</guid>
		<description><![CDATA[
Sophos は、
最新のソフトウェアや IDE のダウンロードを HTTP でしか提供していないことに気付いた。
しかも、それらファイルのダイジェストも (もちろん、かつ安全な方法で) 提供していないので、
man- [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.sophos.co.jp">Sophos</a> は、
最新のソフトウェアや IDE のダウンロードを HTTP でしか提供していないことに気付いた。
しかも、それらファイルのダイジェストも (もちろん、かつ安全な方法で) 提供していないので、
man-in-the-middle 攻撃により、不正なファイルをダウンロードさせられるかもしれない。
</p>

<p><p>
この件について、早速、Sophos のサポートに質問を投げてみた。
どういった返事が返ってくるだろうか。
</p>
<p>
そんなこんなで Sophos の Web サイトを眺めていたら、
先日まではなかった
<a href="http://www.sophos.co.jp/products/es/gateway/pm-unix.html">Sophos PureMessage for UNIX</a>
がリリースされたことにも気付いた。
どうやらこれには IDE などの自動アップデート機能が含まれているらしいので、
<a href="http://www.sfo.jp/blog/archives/2005/09/wget1_o_n.html">先日から作成している IDE と SAVI のアップデート・スクリプト</a>は不要になるかも…。
</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sfo.jp/blog/archives/2005/09/sophos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMailMgr 0.97 released</title>
		<link>http://www.sfo.jp/blog/archives/2005/09/vmailmgr-097.html</link>
		<comments>http://www.sfo.jp/blog/archives/2005/09/vmailmgr-097.html#comments</comments>
		<pubDate>Sun, 04 Sep 2005 15:45:06 +0000</pubDate>
		<dc:creator>fumiyas</dc:creator>
				<category><![CDATA[BGWare]]></category>
		<category><![CDATA[Mail]]></category>

		<guid isPermaLink="false">http://www.sfo.jp/blog/archives/2005/09/vmailmgr-097.html</guid>
		<description><![CDATA[
VMailMgr が
5年ぶりの正式リリース。
待ってました!

]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://untroubled.org/vmailmgr/">VMailMgr</a> が
5年ぶりの正式リリース。
待ってました!
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sfo.jp/blog/archives/2005/09/vmailmgr-097.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

