<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[鍵盤語言 (Keyboard Languag)]]></title> 
<link>http://www.xspace.idv.tw/bo_blog/index.php</link> 
<description><![CDATA[網路語言是時代變遷的記錄，更是社會文化的載體，它彰顯出網路時代青年人的思維習慣與言語方式，是當代青年人以網路生活為主題，尤其在網聊、「網路社區」中使用的「鍵盤語言」。沒有規則，自成方圓的網路語言以其快捷性、豐富性、自由性、互通性的鮮明特徵，迅速地成為了虛擬時代青少年的新寵。當然,這些網路「新語言」撇開了語言規範，只能用在網路世界中，現實生活裏，我們還得「老老實實」說話。]]></description> 
<language>zh-tw</language> 
<copyright><![CDATA[鍵盤語言 (Keyboard Languag)]]></copyright>
<item>
<link>http://www.xspace.idv.tw/bo_blog/read.php?87</link>
<title><![CDATA[postsuper -r]]></title> 
<author>bruce_wu &lt;bruce@xspace.idv.tw&gt;</author>
<category><![CDATA[Mail Postfix 服務]]></category>
<pubDate>Wed, 11 Apr 2007 16:45:26 +0000</pubDate> 
<guid>http://www.xspace.idv.tw/bo_blog/read.php?87</guid> 
<description>
<![CDATA[ 
	<h3 class="bTitle">postsuper -r</h3><div class="bText"><p>以前我要將mail queue裏的信立即重寄都使用<a href="http://www.postfix.org/postqueue.1.html"><span style="color: #556699">postqueue -f</span></a>這個命令，但是今天在上海主機上卻一直無法flush掉其中兩封。後來用<a href="http://www.postfix.org/postsuper.1.html"><span style="color: #556699">postsuper -r</span></a>先做requeue，再flush就沒問題了。</p><p>man上說: requeue是用pickup daemon將message由hold/incoming/active/deferred queue移到maildrop queue。因此，若是改了rewriting rules或是virtual mapping就必須作requeue才會將queue住的message按新規則遞送。</p></div>
]]>
</description>
</item><item>
<link>http://www.xspace.idv.tw/bo_blog/read.php?86</link>
<title><![CDATA[如何解決Helo command rejected: need fully-qualified hostname]]></title> 
<author>bruce_wu &lt;bruce@xspace.idv.tw&gt;</author>
<category><![CDATA[Mail Postfix 服務]]></category>
<pubDate>Tue, 10 Apr 2007 21:40:42 +0000</pubDate> 
<guid>http://www.xspace.idv.tw/bo_blog/read.php?86</guid> 
<description>
<![CDATA[ 
	別人寄信到本伺服器時，卻拒收收對方的信，/var/log/maillog 回應如下：<br /><br /><div id="code0" class="altbg2" style="clear: both; padding-right: 10px; padding-left: 10px; padding-bottom: 10px; margin: 3px 2em 2em; word-break: break-all; padding-top: 5px; font-family: fixedsys; border: #698cc3 1px solid">client=adsl-68-73-64-36.dsl.klmzmi.ameritech.net[68.73.64.36]<br />Sep&nbsp;&nbsp;4 19:32:10 GULF postfix/smtpd[22420]: reject: RCPT from<br />adsl-68-73-64-36.dsl.klmzmi.ameritech.net[68.73.64.36]: 504 &lt;JERRY&gt;;: Helo<br />command rejected: need fully-qualified hostname; from=&lt;JonathanW at Panaband.com&gt;;<br />to=&lt;munged&gt;;<br />Sep&nbsp;&nbsp;4 19:32:11 GULF postfix/smtpd[22412]: disconnect from<br />adsl-68-73-64-36.dsl.klmzmi.ameritech.net[68.73.64.36]<br />Sep&nbsp;&nbsp;4 19:32:15 GULF postfix/smtpd[22420]: disconnect from<br />adsl-68-73-64-36.dsl.klmzmi.ameritech.net[68.73.64.36]</div><span style="font-size: 13px"><strong><span style="color: #ff0000">這個問題可在postfix 的 main.cf 設定檔 smtpd_recipient_restrictions = 裡去掉reject_non_fqdn_hostname解決，但這樣好像驗證不太嚴</span></strong><br /><br /></span>
]]>
</description>
</item><item>
<link>http://www.xspace.idv.tw/bo_blog/read.php?76</link>
<title><![CDATA[ISP relay 的 Mail Server(Postfix)]]></title> 
<author>bruce_wu &lt;bruce@xspace.idv.tw&gt;</author>
<category><![CDATA[Mail Postfix 服務]]></category>
<pubDate>Mon, 26 Mar 2007 23:42:29 +0000</pubDate> 
<guid>http://www.xspace.idv.tw/bo_blog/read.php?76</guid> 
<description>
<![CDATA[ 
	<table border="0" cellspacing="0" cellpadding="0" width="100%" style="table-layout: fixed; word-wrap: break-word"><tbody><tr><td valign="top"><div id="show6040" class="postcontent">一般 ADSL 架站者有時因動態 ip 或是無 MX 紀錄，通常會被拒絕寄信， <br />此時我們可由 ISP 來代為寄信，Postfix 設定如下： <br />/etc/postfix/main.cf: <br /><div class="codetop">代碼: </div><blockquote><div id="ce0f044dedd888262647252e2f597f1d3" class="codemain">relayhost = [smtp.isp.net]<br />smtp_sasl_auth_enable = yes<br />smtp_sasl_password_maps = hash:/etc/postfix/isp_sasl_passwd<br />smtp_sasl_security_options = noanonymous<br /></div></blockquote><br />如果是 hinet 用戶，請將 smtp.isp.net 改為 msa.hinet.net， <br />而 /etc/postfix/isp_sasl_passwd 內容： <br /><div class="codetop">代碼: </div><blockquote><div id="c932aefd7a196d8113df65fc7f44281f0" class="codemain">msa.hinet.net username:password<br /></div></blockquote><br />然後 postmap hash:/etc/postfix/isp_sasl_passwd <br />(建立 isp_sasl_passwd.db) <br /><br />再重新啟動 postfix 即可。</div></td></tr><tr><td></td></tr></tbody></table>
]]>
</description>
</item><item>
<link>http://www.xspace.idv.tw/bo_blog/read.php?24</link>
<title><![CDATA[Step by Step Yahoo DomainKeys Implementation Howto on Debian Linux  Enterux Solutions]]></title> 
<author>bruce_wu &lt;bruce@xspace.idv.tw&gt;</author>
<category><![CDATA[Mail Postfix 服務]]></category>
<pubDate>Mon, 19 Mar 2007 18:33:37 +0000</pubDate> 
<guid>http://www.xspace.idv.tw/bo_blog/read.php?24</guid> 
<description>
<![CDATA[ 
	<p>As you might have learnt from our Yahoo DomainKeys Page over <a href="http://www.enterux.com/en/solutions/yahoo-domainkeys">here </a></p><p>I have tried to show a step-by-step guide for implementing Yahoo! DomainKeys on your Debian Linux Server. If you have any other server and want us to accomplish the tasks for you, feel free to <a href="http://www.enterux.com/en/contact">contact us </a></p><p>You are free to publish this document else where, provided you point a link to our website <a href="http://www.enterux.com/"><strong><em>www.enterux.com and Mentioning us as the Original Author for this document. </em></strong></a></p><p><br />So here we start, I assume that you have root previledges on your Debian Box.</p><p>You need to determine which MTA (Mail Transfer Agent) you are using, by default Debian comes with Exim, but since our howto deals with doing this using Postfix, we would install Postfix first. </p><br /><span style="font-family: Courier New">apt-get install postfix<br /></span><p><strong><br />WARNING! : The Above command shall remove your current MTA - which would be exim, so make sure you backup your stuff.<br /></strong></p><p>Next we need to install the following Perl Modules from CPAN archive.</p><p><strong><em><ul><li>Crypt::OpenSSL::RSA </li><li>Mail::Address </li><li>MIME::Base64 </li><li>Net::DNS </li><li>Test::More </li><li>Text::Wrap </li><li>Mail::DomainKeys </li></ul></em></strong></p><ul><li>Crypt::OpenSSL::RSA </li><li>Mail::Address </li><li>MIME::Base64 </li><li>Net::DNS </li><li>Test::More </li><li>Text::Wrap </li><li>Mail::DomainKeys </li></ul><p>Following commands would help.<br />Note: The first time you install the module, Perl shall ask you to choose the nearest mirror of CPAN archive, just press enter key if you dont understand anything and it should be done all right. </p><br /><span style="font-family: Courier New">#perl -MCPAN -e'CPAN::Shell-&gt;install(&quot;Crypt::OpenSSL::RSA&quot;)'<br />#perl -MCPAN -e'CPAN::Shell-&gt;install(&quot;Mail::Address&quot;)'<br />#perl -MCPAN -e'CPAN::Shell-&gt;install(&quot;MIME::Base64&quot;)'<br />#perl -MCPAN -e'CPAN::Shell-&gt;install(&quot;Net::DNS&quot;)'<br />#perl -MCPAN -e'CPAN::Shell-&gt;install(&quot;Test::More&quot;)'<br />#perl -MCPAN -e'CPAN::Shell-&gt;install(&quot;Text::Wrap&quot;)'<br />#perl -MCPAN -e'CPAN::Shell-&gt;install(&quot;Mail::DomainKeys&quot;)'<br /></span>Next you need to download all the relevant Open Source DomainKeys packages released by Yahoo from <a href="http://sourceforge.net/project/showfiles.php?group_id=107680">here </a>, Also since we are using Postfix, We would need to download the dkfilter package written by <a href="http://jason.long.name/dkfilter/">Jason Long </a><br /><br /><span style="font-family: Courier New">mkdir /var/domainkeys/<br />wget http://cogent.dl.sourceforge.net/sourceforge/domainkeys/commands-0.2.tar.gz<br />wget http://jason.long.name/dkfilter/dkfilter.tgz<br />wget http://www.enterux.com/files/dkfilter</span><span style="font-family: Courier New"> </span><p>tar zxf commands-0.2.tar.gz<br />tar zxf dkfilter.tgz</p><p>Next we need to compile dkfilter package.</p><p><br /><span style="font-family: Courier New">cd /var/domainkeys/dkfilter-0.8<br />./configure --prefix=/usr/local/dkfilter<br />make install<br />useradd dkfilter<br />groupadd dkfilter<br />cp ../dkfilter /etc/init.d/dkfilter<br />chmod 755 /etc/init.d/dkfilter<br /></span></p><p>We need to make relevant changes inside Postfix configuration files to check incoming mails for the signature</p><br /><span style="font-family: Courier New">cd /etc/postfix/<br />pico master.cf</span><span style="font-family: Courier New"> </span><p>#<br /># Before-filter SMTP server. Receive mail from the network and<br /># pass it to the content filter on localhost port 10025.<br />#<br />smtp inet n - n - - smtpd<br />-o smtpd_proxy_filter=127.0.0.1:10025<br />-o smtpd_client_connection_count_limit=10<br />#<br /># After-filter SMTP server. Receive mail from the content filter on<br /># localhost port 10026.<br />#<br />127.0.0.1:10026 inet n - n - - smtpd<br />-o smtpd_authorized_xforward_hosts=127.0.0.0/8<br />-o smtpd_client_restrictions=<br />-o smtpd_helo_restrictions=<br />-o smtpd_sender_restrictions=<br />-o smtpd_recipient_restrictions=permit_mynetworks,reject<br />-o smtpd_data_restrictions=<br />-o mynetworks=127.0.0.0/8<br />-o receive_override_options=no_unknown_recipient_checks<br />=========================================================== </p><p>Now to configure Outgoing mails which needs to signed by your private keys i.e. Setting up the Outbound Filter.</p><p><br />cd /var/domainkeys/bin<br />./dk_generate_policy -a -d enterux.com -n http://www.enterux.com/en/resources/yahoo-domainkeys-howto-debian -q -r support@enterux.com -t<br />./dk_generate_selector -d enterux.com -n http://www.enterux.com/en/resources/yahoo-domainkeys-howto-debian -k 768 -q -s postfix -S<br />cp postfix.enterux.com.public.pem /usr/local/dkfilter/public.key<br />cp postfix.enterux.com.private.pem /usr/local/dkfilter/private.pem<br /></p><p>You need to replace your domain name on the argument -d enterux.com, <strong><em>e.g -d yourdomainname.com </em></strong></p><p>By default Debian runs Bind DNS Server, so the next step would be to edit yourdomainname.com Zone file.</p><br />cd /etc/bind/<br />cat /var/domainkeys/bin/enterux.com.BIND.txt &gt;&gt; /etc/bind/enterux.com.zone<br />cat /var/domainkeys/bin/postfix._domainkey.enterux.com.BIND.txt &gt;&gt; /etc/bind/enterux.com.zome<br />vi /etc/bind/enterux.com.zone <p>Change the SOA, Serial number so that secondary DNS Servers know about the change.</p><p>Now we need to tell Postfix to sign all outbound mails.</p><br />pico /etc/postfix/master.cf <p>#<br /># modify the default submission service to specify a content filter<br /># and restrict it to local clients and SASL authenticated clients only<br />#<br />submission inet n - n - - smtpd<br />-o smtpd_etrn_restrictions=reject<br />-o smtpd_sasl_auth_enable=yes<br />-o content_filter=dksign:127.0.0.1:10027<br />-o receive_override_options=no_address_mappings<br />-o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject</p><p>#<br /># specify the location of the DomainKeys signing filter<br />#<br />dksign unix - - n - 10 smtp<br />-o smtp_send_xforward_command=yes</p><p>#<br /># service for accepting messages FROM the DomainKeys signing filter<br />#<br />127.0.0.1:10028 inet n - n - 10 smtpd<br />-o content_filter=<br />-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks<br />-o smtpd_helo_restrictions=<br />-o smtpd_client_restrictions=<br />-o smtpd_sender_restrictions=<br />-o smtpd_recipient_restrictions=permit_mynetworks,reject<br />-o mynetworks=127.0.0.0/8<br />-o smtpd_authorized_xforward_hosts=127.0.0.0/8</p><p># For Postfix to sign mails sent out using Webmails<br />pickup fifo n - n 60 1 pickup<br />-o content_filter=dksign:127.0.0.1:10027</p><p><br />save and restart Postfix as well as DNS Server.</p><p><br />/etc/init.d/bind9 restart<br />/etc/init.d/postfix restart<br />/etc/init.d/dkfilter start<br /></p><p>You are up and running now with DKFilter signing all the outgoing mails and would check all incoming mails for DomainKey signatures.</p><p>For more details on the DKFilter setup, please refer to Jason Longs <a href="http://jason.long.name/dkfilter/">DKFilter Page </a></p><p>If you find any problem with the above, feel free to email me. </p><p class="defaultfont" align="justify">Feel free to donate an amount you feel is worthy ($5, $10 or more, it's up to you!) through a free PayPal account, you can use your credit card, or transfer money from a bank account with your PayPal account. Please click on the Paypal icon below </p>More .. <br />
]]>
</description>
</item>
</channel>
</rss>