<?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>Takahisa's Weblog &#187; centos</title>
	<atom:link href="http://takahisa.info/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://takahisa.info</link>
	<description>weblog of lifetips?</description>
	<lastBuildDate>Fri, 02 Sep 2011 18:27:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Reinstall yum package</title>
		<link>http://takahisa.info/2009/06/10/reinstall-yum-package/</link>
		<comments>http://takahisa.info/2009/06/10/reinstall-yum-package/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 04:27:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://takahisa.info/?p=232</guid>
		<description><![CDATA[as you might know, yum does not provide re-install functionality, for re-installing yum installed application following methods may useful yum install yum-utils yumdownloader package rpm -Uvh &#8211;force downloadedpackages]]></description>
			<content:encoded><![CDATA[<p>as you might know, yum does not provide re-install functionality,</p>
<p>for re-installing yum installed application following methods may useful</p>
<p class="code"> yum install yum-utils<br />
  yumdownloader package<br />
  rpm -Uvh &#8211;force downloadedpackages</p>
]]></content:encoded>
			<wfw:commentRss>http://takahisa.info/2009/06/10/reinstall-yum-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Postgrey on CentOS</title>
		<link>http://takahisa.info/2009/01/31/install-postgrey-on-centos/</link>
		<comments>http://takahisa.info/2009/01/31/install-postgrey-on-centos/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 11:53:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://takahisa.info/?p=195</guid>
		<description><![CDATA[Activate dag repository [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 install package root@ns99 ~ # yum install postgrey edit startup script /etc/init.d/postgrey #OPTIONS=&#8221;&#8211;unix=$SOCKET&#8221; OPTIONS=&#8221;&#8211;whitelist-clients=/etc/postfix/postgrey_whitelist_clients &#8211;whitelist    recipients=/etc/postfix/postgrey_whitelist_recipients &#8211;inet=10023 -d &#8211;unix=$SOCKET&#8221; startup postgrey when system is bootup  root@ns99 ~ # chkconfig postgrey on install filter to postfix /etc/postfix/main.cf smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023 edit white-list as you [...]]]></description>
			<content:encoded><![CDATA[<p><em>Activate dag repository</em></p>
<p class="code">[dag]<br />
name=Dag RPM Repository for Red Hat Enterprise Linux<br />
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag<br />
gpgcheck=1</p>
<p><em>install package</em></p>
<p class="code"><span style="color: #ff0000;">root@ns99</span> <span style="color: #3366ff;">~ #</span> yum install postgrey</p>
<p><em>edit startup script /etc/init.d/postgrey</em></p>
<p class="code">#OPTIONS=&#8221;&#8211;unix=$SOCKET&#8221;<br />
OPTIONS=&#8221;&#8211;whitelist-clients=/etc/postfix/postgrey_whitelist_clients &#8211;whitelist<br />
   recipients=/etc/postfix/postgrey_whitelist_recipients &#8211;inet=10023 -d &#8211;unix=$SOCKET&#8221;</p>
<p><em>startup postgrey when system is bootup</em></p>
<p class="code"><span style="color: #ff0000;"> root@ns99 </span><span style="color: #3366ff;">~ #</span> chkconfig postgrey on</p>
<p><em>install filter to postfix /etc/postfix/main.cf</em></p>
<p class="code"><em><span style="font-style: normal;">smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023</span></em></p>
<p><em>edit white-list as you need /etc/postfix/postgrey_whitelist_clients</em></p>
<p><em>Check delay from maillog</em></p>
<p class="code">cat /var/log/maillog | postgreyreport </p>
]]></content:encoded>
			<wfw:commentRss>http://takahisa.info/2009/01/31/install-postgrey-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install SPF to CentOS Postfix</title>
		<link>http://takahisa.info/2009/01/31/install-spf-to-centos-postfix/</link>
		<comments>http://takahisa.info/2009/01/31/install-spf-to-centos-postfix/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 10:26:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[nojunkmail]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://takahisa.info/?p=194</guid>
		<description><![CDATA[In computing, Sender Policy Framework (SPF) allows software to identify messages that are or are not authorized to use the domain name in the SMTP HELO and MAIL FROM (Return-Path) commands, based on information published in a sender policy of the domain owner. Forged return paths are common in e-mail spam and result inbackscatter. SPF is defined in RFC 4408. from wikipedia Install [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>In <a title="Computing" href="http://en.wikipedia.org/wiki/Computing">computing</a>, <strong>Sender Policy Framework</strong> (<strong>SPF</strong>) allows software to identify messages that are or are not authorized to use the domain name in the <a class="mw-redirect" title="SMTP" href="http://en.wikipedia.org/wiki/SMTP">SMTP</a> HELO and MAIL FROM (<a class="mw-redirect" title="Return-Path" href="http://en.wikipedia.org/wiki/Return-Path">Return-Path</a>) commands, based on information published in a sender policy of the domain owner. Forged return paths are common in <a title="E-mail spam" href="http://en.wikipedia.org/wiki/E-mail_spam">e-mail spam</a> and result in<a title="Backscatter (e-mail)" href="http://en.wikipedia.org/wiki/Backscatter_(e-mail)">backscatter</a>. SPF is defined in <a class="external" title="http://tools.ietf.org/html/rfc4408" href="http://tools.ietf.org/html/rfc4408">RFC 4408</a>. from wikipedia</p></blockquote>
<p><em>Install require packages</em></p>
<p class="code"><span style="color: #ff0000;">root@ns99</span> <span style="color: #3366ff;">~ #</span> yum install perl-Mail-SPF</p>
<p><em>Get SPF module from </em><a href="http://www.openspf.org/Software"><em>http://www.openspf.org/Software</em></a><em> Newest at this time is 2.007 and Install SPF module</em></p>
<p class="code"><span style="color: #ff0000;">root@ns99</span> <span style="color: #3366ff;">~ #</span> wget http://www.openspf.org/blobs/postfix-policyd-spf-perl-2.007.tar.gz <span style="color: #ff0000;">root@ns99</span> <span style="color: #3366ff;">~ #</span> tar zxvf postfix-policyd-spf-perl-2.007.tar.gz <span style="color: #ff0000;">root@ns99</span> <span style="color: #3366ff;">~ #</span> mv postfix-policyd-spf-perl-2.007/postfix-policyd-spf-perl /usr/local/lib.</p>
<p><em>add following line to /etc/postfix/master.cf</em></p>
<p class="code">policy  unix  -       n       n       &#8211;       0       spawn<br />
    user=nobody argv=/usr/bin/perl /usr/local/lib/policyd-spf-perl</p>
<p><em>add following line to /etc/postfix/main.cf</em></p>
<p class="code">smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, check_policy_service,<br />
  check_policy_service unix:private/policy<br />
  policy_time_limit = 3600</p>
<p><em>Add SPF record to your DNS. SPF record can be wizardly made from </em> <a href="http://old.openspf.org/wizard.html?mydomain=example.com&amp;submit=Go%21" target="_blank">http://old.openspf.org/wizard.html?mydomain=example.com&amp;submit=Go%21</a></p>
<p class="code">spf01   IN TXT &#8220;v=spf1 +ip4:xxx.xxx.xxx.xxx/24 ~all&#8221;<br />
  spf02   IN TXT &#8220;v=spf1 +ip4:yyy.yyy.yyy.yyy/24  ~all&#8221;<br />
  @       IN TXT &#8220;v=spf1 include:spf01.example.com include:spf02.example.com ~all&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://takahisa.info/2009/01/31/install-spf-to-centos-postfix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rebuild apache rpm on Centos4</title>
		<link>http://takahisa.info/2008/12/30/rebuild-apache-rpm-on-centos/</link>
		<comments>http://takahisa.info/2008/12/30/rebuild-apache-rpm-on-centos/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 22:50:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://takahisa.info/?p=182</guid>
		<description><![CDATA[Download src rpm http://ftp.riken.jp/Linux/centos/4.7/centosplus/SRPMS/ httpd-2.0.63-2.el4s1.centos.2.src.rpm Install src rpm ns2 ~ # rpm -ivh httpd-2.0.63-2.el4s1.centos.2.src.rpm ns2 ~ # cd /usr/src/redhat/SPECS ns2 SPECS # vim httpd.spec %define contentdir /var/www -&#62; %define contentdir /home ns2 SPECS # rpmbuild -bb /usr/src/redhat/SPECS/httpd.spec error: Failed build dependencies: xmlto &#62;= 0.0.11 is needed by httpd-2.0.63-2.el4s1.centos.2.i386 apr-devel &#62;= 0.9.4-20 is needed by httpd-2.0.63-2.el4s1.centos.2.i386 [...]]]></description>
			<content:encoded><![CDATA[<p>Download src rpm</p>
<p>http://ftp.riken.jp/Linux/centos/4.7/centosplus/SRPMS/</p>
<p><a href="http://ftp.riken.jp/Linux/centos/4.7/centosplus/SRPMS/httpd-2.0.63-2.el4s1.centos.2.src.rpm">httpd-2.0.63-2.el4s1.centos.2.src.rpm</a></p>
<p class="code"><em>Install src rpm</em><br />
<span style="color: #ff0000;">ns2 </span><span style="color: #3366ff;">~ #</span> rpm -ivh  httpd-2.0.63-2.el4s1.centos.2.src.rpm<br />
<span style="color: #ff0000;">ns2 </span><span style="color: #3366ff;">~ #</span> cd /usr/src/redhat/SPECS<br />
<span style="color: #ff0000;">ns2</span> <span style="color: #3366ff;">SPECS # </span>vim httpd.spec<br />
<span style="text-decoration: line-through;">%define contentdir /var/www</span> -&gt; %define contentdir /home<br />
<span style="color: #ff0000;">ns2</span> <span style="color: #3366ff;">SPECS #</span> rpmbuild -bb /usr/src/redhat/SPECS/httpd.spec<br />
error: Failed build dependencies:<br />
xmlto &gt;= 0.0.11 is needed by httpd-2.0.63-2.el4s1.centos.2.i386<br />
apr-devel &gt;= 0.9.4-20 is needed by httpd-2.0.63-2.el4s1.centos.2.i386<br />
apr-util-devel is needed by httpd-2.0.63-2.el4s1.centos.2.i386<br />
distcache-devel is needed by httpd-2.0.63-2.el4s1.centos.2.i386<br />
<em>Install missing packages</em><br />
<span style="color: #ff0000;">ns2</span> <span style="color: #3366ff;">SPECS #</span> yum install xmlto apr-devel apr-util-devel distcache-devel<br />
<span style="color: #ff0000;">ns2</span> <span style="color: #3366ff;">SPECS #</span> rpmbuild -bb /usr/src/redhat/SPECS/httpd.spec<br />
<span style="color: #ff0000;">ns2</span> <span style="color: #3366ff;">SPECS #</span> cd ../RPMS<br />
<span style="color: #ff0000;">ns2</span> <span style="color: #3366ff;">RPMS #</span> rpm -ivh &#8211;force httpd-2.0.63-2.el4s1.centos.2.i386.rpm<br />
<span style="color: #ff0000;">ns2</span> <span style="color: #3366ff;">~ #</span> /etc/init.d/httpd restart<br />
<span style="color: #ff0000;">ns2</span> <span style="color: #3366ff;">~ #</span> suexec -V</p>
]]></content:encoded>
			<wfw:commentRss>http://takahisa.info/2008/12/30/rebuild-apache-rpm-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

