<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>おれ最前線ねっと &#187; Postfix</title>
	<atom:link href="http://ore.saizensen.net/archives/tag/postfix/feed" rel="self" type="application/rss+xml" />
	<link>http://ore.saizensen.net</link>
	<description>イェ〜〜ィ。見てる〜〜〜？？</description>
	<lastBuildDate>Tue, 12 Jul 2011 06:31:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/tag/postfix/feed" />
		<item>
		<title>[courier-authlib]vpopmailをSMTP-AUTH対応させる為のcourier-authlibを置いておく[vpopmail]</title>
		<link>http://ore.saizensen.net/archives/467</link>
		<comments>http://ore.saizensen.net/archives/467#comments</comments>
		<pubDate>Wed, 25 Nov 2009 08:47:29 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=467</guid>
		<description><![CDATA[CentOSで自宅サーバー構築のバーチャルドメイン設定(Postfix&#038;Dovecot+qmail&#038;vpopmail)で、 ２）SMTP-AUTHのvpopmail対応という箇所がありますが、 そこで [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://centossrv.com/">CentOSで自宅サーバー構築</a>の<a href="http://centossrv.com/postfix-vpopmail.shtml">バーチャルドメイン設定(Postfix&#038;Dovecot+qmail&#038;vpopmail)</a>で、<br />
				２）SMTP-AUTHのvpopmail対応という箇所がありますが、<br />
				そこで使用しているcourier-authlibの配布元からダウンロードできるバージョンでは<strong>「vchkpw認証」</strong>が出来ません。</p>
				<p>ということで、「vchkpw認証」できる古いバージョンのファイルを置いておきます。<br />
				<a href="http://ore.saizensen.net/wp-content/uploads/2009/11/courier-authlib-0.60.2.tar.bz2">http://ore.saizensen.net/wp-content/uploads/2009/11/courier-authlib-0.60.2.tar.bz2</a></p>
				<p>古いバージョンのを使う以外にどうしたらいいんでしょうか・・・vchkpw認証をやめて他の方法にしますかねぇ。</p>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/467/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/467" />
	</item>
		<item>
		<title>[CentOS]PostfixでSubmissionポート(587番)を使う。[Postfix]</title>
		<link>http://ore.saizensen.net/archives/172</link>
		<comments>http://ore.saizensen.net/archives/172#comments</comments>
		<pubDate>Fri, 28 Nov 2008 04:44:30 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=172</guid>
		<description><![CDATA[先日のエントリー[CentOS]いつの間にかCentOS4.7サーバーからGmailへメール送信出来なくなってた。[Postfix]で、 OP25B対策にIPマスカレード対応ルーターで、ルーター外側のポート587を、ルー [...]]]></description>
			<content:encoded><![CDATA[				<p>先日のエントリー<a href="http://ore.saizensen.net/archives/155">[CentOS]いつの間にかCentOS4.7サーバーからGmailへメール送信出来なくなってた。[Postfix]</a>で、<br />
				<strong>OP25B対策</strong>にIPマスカレード対応ルーターで、ルーター外側のポート587を、ルーター内側のポート25に対応させるってっ書いて、一部のサーバーのルーターに設定したのですが全くポートが開かず・・・って感じでハマッってしまった。<br />
				そのルーターが<a href="http://www.mrl.co.jp/product/nwgopt100e.htm">NetGenesis SuperOPT100E</a>なのですが、よく商品詳細ページを見ていると「<strong>静的IPマスカレード対応</strong>」って書いてある・・・・・ポート変換出来んのかい！！</p>
				<p>ということで、587番→25番へポート変換はやめて、587番→587番とそのままで<strong>Postfix側でSubmissionポート(587番)を対応させる</strong>ことにします。</p>
				<ul>
				<li># vi /etc/postfix/master.cf<br />
				以下の行のコメントアウトを外して有効にする。</p>
				<pre>
submission inet n - n - - smtpd
</pre>
				</li>
				<li>/etc/services に以下の行があるか確認。
				<pre>
submission 587/tcp msa # mail message submission
submission 587/udp msa # mail message submission
</pre>
				</li>
				<li>ルーターのIPマスカレード設定（ポート変換）でTCP587→TCP587を開ける。</li>
				<li>iptablesのTCP587ポートも開ける。
				<pre>iptables -A INPUT -p tcp --dport 587 -j ACCEPT</pre>
</li>
</ul>
<p>これで、PostfixがSubmissionポート(587番)で待ち受け開始します。</p>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/172/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/172" />
	</item>
		<item>
		<title>[CentOS]いつの間にかCentOS4.7サーバーからGmailへメール送信出来なくなってた。[Postfix]</title>
		<link>http://ore.saizensen.net/archives/155</link>
		<comments>http://ore.saizensen.net/archives/155#comments</comments>
		<pubDate>Wed, 26 Nov 2008 03:01:58 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=155</guid>
		<description><![CDATA[昨日、社内に置いているCentOS4.7サーバーから自分のGmailへメール送信してみたら、Undelivered Mail Returned to Senderってメーラーデーモンさんがリターンメール返してきた。↓中身 [...]]]></description>
			<content:encoded><![CDATA[				<p>昨日、社内に置いているCentOS4.7サーバーから自分のGmailへメール送信してみたら、<strong>Undelivered Mail Returned to Sender</strong>ってメーラーデーモンさんがリターンメール返してきた。↓中身。</p>
				<pre>
＜bubbkis ＠ gmail.com＞: host gmail-smtp-in.l.google.com[209.85.143.114] said:
    550-5.7.1 [**.**.**.**] The IP you're using to send mail is not
    authorized 550-5.7.1 to send email directly to our servers. Please use the
    SMTP 550-5.7.1 relay at your service provider instead. Learn more at
    550 5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336
    i6si3435826tid.5 (in reply to end of DATA command)
</pre>
				<p>英語よくわからんけど、「メール送るときはプロバイダーのSMTP使って送ってこい、カス。」と言っとるわけですね。<br />
				はい、分かりましたということで今回は、<br />
				<strong>PostfixのRelayhost設定にプロバイダーのSMTPを指定して、メール送信は全部プロバイダーのSMTP経由で送信する</strong>というメモです。(当方のプロバイダーはアサヒネットなので、アサヒネットじゃない人は適当に変えて下さい。)<br />
				ついでに社外からこのSMTPサーバーを使うときにOP25Bに引っかかる人がいるのでOP25B対策もしました。（IPマスカレード対応ルーターで、ルーター外側のポート587を、ルーター内側のポート25に対応させただけですけど。)</p>
				<ol>
				<li># vi/etc/postfix/main.cf
				<pre>
## relayhostへプロバイダーのSMTPサーバーを指定。
relayhost = [op25b.asahi-net.or.jp]

## SMTP Submission port Setting
## ファイルの最後に追加
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/authinfo
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = cram-md5,digest-md5,plain,login
</pre>
				<p>smtp_sasl_mechanism_filter = へ設定する値の調べ方は、</p>
				<pre>
# telnet プロバイダのSMTPサーバー名 25 または 587
Trying 202.224.39.196...
Connected to mail.asahi-net.or.jp (202.224.39.196).
Escape character is '^]'.
220 mail.asahi-net.or.jp ESMTP Postfix
ehlo localhost ## ←タイプする。
250-mail.asahi-net.or.jp
250-PIPELINING
250-SIZE
250-ETRN
250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5
250-AUTH=PLAIN LOGIN DIGEST-MD5 CRAM-MD5 ## ←これをsmtp_sasl_mechanism_filterへ設定する。
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit ## ←タイプする。
221 2.0.0 Bye
Connection closed by foreign host.
</pre>
				</li>
				<li># vi /etc/postfix/master.cf
				<pre>
## 以下の3行のコメントアウトを外す。
submission inet n      -       n       -       -       smtpd
        -o smtpd_etrn_restrictions=reject
        -o smtpd_client_restrictions=permit_sasl_authenticated,reject
</pre>
				</li>
				<li>プロバイダーのSMTPサーバーへの認証情報を設定する。(ユーザー名、パスワードはプロバイダー契約時に設定したもの。)
				<pre>
# echo [SMTPサーバー名]:587 ユーザー名:パスワード > /etc/postfix/authinfo
# postmap /etc/postfix/authinfo
</pre>
				<p>どこかのサイトで
				<pre># chmod 640 /etc/postfix/authinfo</pre>
<p>ってroot以外参照できないようにパーミッション変更してたのを真似たら、一切ログイン出来なくなってしまってハマった。
</li>
<li># /etc/rc.d/init.d/postfix reload でPostfix設定反映</li>
</ol>
<p>以上で、メール送信はプロバイダーのSMTPサーバー経由になりました。</p>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/155/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/155" />
	</item>
		<item>
		<title>[Postfix]携帯メールアドレスの受信設定。</title>
		<link>http://ore.saizensen.net/archives/73</link>
		<comments>http://ore.saizensen.net/archives/73#comments</comments>
		<pubDate>Thu, 08 May 2008 16:51:34 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[Postfix]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[携帯]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/archives/73</guid>
		<description><![CDATA[http://ke-tai.org/blog/2008/05/08/postfixketai/ Default設定のPostfixは、「-」（ハイフン）から始まるメールアドレスを弾いてしまうそうです。 解決策は以下。 m [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://ke-tai.org/blog/2008/05/08/postfixketai/">http://ke-tai.org/blog/2008/05/08/postfixketai/</a><br />
				Default設定の<strong>Postfix</strong>は、「-」（ハイフン）から始まるメールアドレスを弾いてしまうそうです。<br />
				解決策は以下。<br />
				main.cfへ</p>
				<pre>
allow_min_user = yes</pre>
				<p>この設定をしないと、以下のエラーを吐くそうです。</p>
				<pre>
This is the Postfix program at host expom.jp.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to If you do so, please include this problem report.
You can delete your own text from the attached returned message.

The Postfix program &lt;-[xxx]@docomo.ne.jp&gt;: invalid recipient syntax: "-[xxx]@docomo.ne.jp"
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/73/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/73" />
	</item>
	</channel>
</rss>

