<?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; sendmail</title>
	<atom:link href="http://hiropo.co.uk/archives/category/sendmail/feed" rel="self" type="application/rss+xml" />
	<link>http://hiropo.co.uk</link>
	<description>Web系エンジニアの適当なブログです。どうでも酔いものばかり作ってます。</description>
	<lastBuildDate>Sun, 25 Jul 2010 17:09:15 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Facebookユーザーを標的にしたメール詐欺に対抗してみた2</title>
		<link>http://hiropo.co.uk/archives/326</link>
		<comments>http://hiropo.co.uk/archives/326#comments</comments>
		<pubDate>Thu, 05 Nov 2009 15:36:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=326</guid>
		<description><![CDATA[前記事にて、特定ドメインからの受信を拒否してみたんだけど、全然メール拒否できてなかった。 そりゃこれだけ手の込んだフィッシングメールなんだから当然だよね。メールヘッダ見たら全然違ったし、しかもドメイン複数あるし偽造されてるしで結局わからんちんだったので、webmaster宛にメールは届いていたので、webmaster宛のメールをすべて拒否することにした。 PLAIN TEXT CODE: &#91;root@host ~&#93;# vi /etc/aliases webmaster: root 　　↓に変更 #webmaster: root &#160; &#91;root@host ~&#93;# newaliases うん、ばっちり来なくなった。 そもそもwebmasterとかinfoとかrootとか狙われやすいんだから、デフォルトでオフにしとくべきした。]]></description>
			<content:encoded><![CDATA[<p><a href="http://hiropo.co.uk/archives/322">前記事</a>にて、特定ドメインからの受信を拒否してみたんだけど、全然メール拒否できてなかった。<br />
そりゃこれだけ手の込んだフィッシングメールなんだから当然だよね。メールヘッダ見たら全然違ったし、しかもドメイン複数あるし偽造されてるしで結局わからんちんだったので、webmaster宛にメールは届いていたので、webmaster宛のメールをすべて拒否することにした。</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showCodeTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@host ~<span style="color:#006600; font-weight:bold;">&#93;</span># vi /etc/aliases</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">webmaster: root</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">　　↓に変更</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#webmaster: root</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@host ~<span style="color:#006600; font-weight:bold;">&#93;</span># newaliases </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>うん、ばっちり来なくなった。<br />
そもそもwebmasterとかinfoとかrootとか狙われやすいんだから、デフォルトでオフにしとくべきした。</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/326/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebookユーザーを標的にしたメール詐欺に対抗してみた</title>
		<link>http://hiropo.co.uk/archives/322</link>
		<comments>http://hiropo.co.uk/archives/322#comments</comments>
		<pubDate>Sat, 31 Oct 2009 07:39:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=322</guid>
		<description><![CDATA[最近、フィッシングサイトへの誘導メールがよく来る。なりすましはFacebookである。 ググってみたらどうやら今全世界で流行っているらしいですねー。 ＃ニュース記事 Facebookユーザーを標的にしたメール詐欺--トロイの木馬「Zeus」で個人情報を盗む メールのくる間隔としては、1日に2～3通は来るのでかなり迷惑。 ってことで、送信元ドメインごとメール受信を拒否することにした。 ウチはsendmailなので、まず設定ファイルを修正する。 PLAIN TEXT CODE: &#91;root@host ~&#93;#vi /etc/mail/access #追記↓ facebookmail.com&#160; REJECT "[ドメイン名] REJECT" と記述することで、このドメインのメールはすべて受信拒否にする。 次に、アクセスファイルをデータベースに変換します。変換にはsendmailに付属のmakemapコマンドを使用します。 その後、sendmailを再起動すれば設定が反映されます。 PLAIN TEXT CODE: &#91;root@host ~&#93;# makemap -v hash /etc/mail/access.db &#60;/etc/mail/access &#91;root@host ~&#93;# /etc/rc.d/init.d/sendmail restart これで指定ドメインのメールが拒否できます。 ちなみに受信したい場合は、"RELAY" を使うことでメールを受信することができるようになります。 フィッシング、こわいよ、フィッシング。]]></description>
			<content:encoded><![CDATA[<p>最近、フィッシングサイトへの誘導メールがよく来る。なりすましはFacebookである。<br />
ググってみたらどうやら今全世界で流行っているらしいですねー。</p>
<p>＃ニュース記事<br />
<a href="http://japan.cnet.com/clip/global/story/0,3800097347,20402585,00.htm" target="_blank">Facebookユーザーを標的にしたメール詐欺--トロイの木馬「Zeus」で個人情報を盗む</a></p>
<p>メールのくる間隔としては、1日に2～3通は来るのでかなり迷惑。</p>
<p>ってことで、送信元ドメインごとメール受信を拒否することにした。</p>
<p>ウチはsendmailなので、まず設定ファイルを修正する。</p>
<div class="igBar"><span id="lcode-5"><a href="#" onclick="javascript:showCodeTxt('code-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-5">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@host ~<span style="color:#006600; font-weight:bold;">&#93;</span>#vi /etc/mail/access</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#追記↓</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">facebookmail.<span style="">com</span>&nbsp; REJECT </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>"[ドメイン名] REJECT" と記述することで、このドメインのメールはすべて受信拒否にする。<br />
次に、アクセスファイルをデータベースに変換します。変換にはsendmailに付属のmakemapコマンドを使用します。<br />
その後、sendmailを再起動すれば設定が反映されます。</p>
<div class="igBar"><span id="lcode-6"><a href="#" onclick="javascript:showCodeTxt('code-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-6">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@host ~<span style="color:#006600; font-weight:bold;">&#93;</span># makemap -v hash /etc/mail/access.<span style="">db</span> &lt;/etc/mail/access</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@host ~<span style="color:#006600; font-weight:bold;">&#93;</span># /etc/rc.<span style="">d</span>/init.<span style="">d</span>/sendmail restart </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>これで指定ドメインのメールが拒否できます。<br />
ちなみに受信したい場合は、"RELAY" を使うことでメールを受信することができるようになります。</p>
<p>フィッシング、こわいよ、フィッシング。</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/322/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>メールaliases</title>
		<link>http://hiropo.co.uk/archives/159</link>
		<comments>http://hiropo.co.uk/archives/159#comments</comments>
		<pubDate>Sun, 21 Jun 2009 10:11:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[FedoraCore]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[aliases]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=159</guid>
		<description><![CDATA[ひとつのメールアドレスにくるメールをふたつのメールアドレスに転送することでバックアップ的なことをしたいと思う。 どうやらaliasesで簡単にできるようです。 aaa@localhost にくるメールを aaa@localhost と、bbb@etc.com に転送する。 PLAIN TEXT CODE: #vi /etc/aliases aaa: aaa,bbb@etc.com これだけでOKなのです。 aliasesって便利！]]></description>
			<content:encoded><![CDATA[<p>ひとつのメールアドレスにくるメールをふたつのメールアドレスに転送することでバックアップ的なことをしたいと思う。<br />
どうやらaliasesで簡単にできるようです。</p>
<p>aaa@localhost にくるメールを aaa@localhost と、bbb@etc.com に転送する。</p>
<div class="igBar"><span id="lcode-8"><a href="#" onclick="javascript:showCodeTxt('code-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-8">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#vi /etc/aliases</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">aaa: aaa,bbb@etc.<span style="">com</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>これだけでOKなのです。<br />
aliasesって便利！</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/159/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
