<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.5" -->
<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/"
	>

<channel>
	<title>Open Tech Notes</title>
	<link>http://zft.backupdiy.com</link>
	<description>All about open sources, like linux, apache, php, Zend Framework, MySQL, CentOS, Apachefriends...</description>
	<pubDate>Wed, 07 May 2008 05:32:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>
	<language>en</language>
			<item>
		<title>Setup Clam Antivirus &#038; SpamAssassin</title>
		<link>http://zft.backupdiy.com/2007/07/23/setup-clam-antivirus-spamassassin/</link>
		<comments>http://zft.backupdiy.com/2007/07/23/setup-clam-antivirus-spamassassin/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 19:45:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>Linux Admin</dc:subject>
	<dc:subject>command</dc:subject>
	<dc:subject>Qmail</dc:subject>
		<guid isPermaLink="false">http://zft.backupdiy.com/2007/07/23/setup-clam-antivirus-spamassassin/</guid>
		<description><![CDATA[I followed the original setup guide (part 14) and will make some modifications here
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
vi /etc/clamd.conf
&#34;Example&#34; - should already be commented out. However, if it is not, make sure that it is commented out (#) 
&#34;LogFile&#34; - should be set to /var/log/clamav/clamd.log 
&#34;LogTime&#34; - should be uncommmented. 
&#34;LogSyslog&#34; - should be uncommented. 
&#34;User&#34; - should be [...]]]></description>
			<content:encoded><![CDATA[<p>I followed the <a target="_blank" href="http://www.qmailrocks.org/clamspam_rh.htm">original setup guide (part 14)</a> and will make some modifications here</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><strong>vi /etc/clamd.conf</strong></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">&quot;Example&quot; - should already be commented out. However, if it is not, make sure that it <strong>is</strong> commented out (#) <br />
&quot;LogFile&quot; - should be set to /var/log/clamav/clamd.log <br />
&quot;LogTime&quot; - should be uncommmented. <br />
&quot;LogSyslog&quot; - should be uncommented. <br />
&quot;User&quot; - should be set to <strong>qscand </strong></font><br />
<font size="2" face="Arial, Helvetica, sans-serif">&quot;ScanMail&quot; - should be uncommented. <br />
</font></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Because the user is set to qscand, I have to change the owner and group of /var/log/clamav to qscand. the commands as follow:</p>
<p>chgrp -R qscand /var/log/clamav<br />
chown -R qscand /var/log/clamav</p>
<p>otherwise, it won&#8217;t start.</p>
<p>And </p>
<p>I need grant write permission to others, otherwise the virus definition update can&#8217;t proceed. the command is:</p>
<p>chmond -R o=rwx /var/log/clamav&nbsp;&nbsp; (the original permission is rx)</p>
<p>Furthermore, here is the good place to download the latest version of Clamav</p>
<p><a href="http://dag.wieers.com/rpm/packages/clamav/" target="_blank"> http://dag.wieers.com/rpm/packages/clamav/</a></p>
<p></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><br />
</font></p>
]]></content:encoded>
			<wfw:commentRss>http://zft.backupdiy.com/2007/07/23/setup-clam-antivirus-spamassassin/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Setup Qmail on CentOS 4.4</title>
		<link>http://zft.backupdiy.com/2007/07/18/setup-qmail-on-centos-44/</link>
		<comments>http://zft.backupdiy.com/2007/07/18/setup-qmail-on-centos-44/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 18:29:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>Linux Admin</dc:subject>
	<dc:subject>command</dc:subject>
	<dc:subject>Qmail</dc:subject>
		<guid isPermaLink="false">http://zft.backupdiy.com/2007/07/18/setup-qmail-on-centos-44/</guid>
		<description><![CDATA[Although Eric Siegel have done great job on how to setup Qmail on Liunx, I&#8217;d like to make a notes on how to setup Qmail on CentOS 4.4 Final. 
My system is Linux&#160; 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 26 14:30:58 EDT 2007 i686 i686 i386 GNU/Linux with full latest updates. And also, I have already [...]]]></description>
			<content:encoded><![CDATA[<p><font size="2" face="Arial, Helvetica, sans-serif">Although <a href="http://www.qmailrocks.org/about.htm" target="_blank">Eric Siegel</a> have done great job on how to setup <a href="http://www.qmailrocks.org/" target="_blank">Qmail on Liunx</a>, I&#8217;d like to make a notes on how to setup Qmail on CentOS 4.4 Final. </p>
<p>My system is Linux&nbsp; 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 26 14:30:58 EDT 2007 i686 i686 i386 GNU/Linux with full latest updates. And also, I have already installed<a href="http://www.apachefriends.org/en/index.html" target="_blank"> Apache Friends</a>.</p>
<p>So let me start:</p>
<p>Because of &quot; </font><font size="-1">CentOS is an open source free GNU Linux distribution which aims to be <strong>100% compatible</strong> with and based on Red Hat Enterprise Linux. </font><font size="2" face="Arial, Helvetica, sans-serif">&quot; , I choose &quot;<a target="_blank" href="http://www.qmailrocks.org/install_rh.htm">Red hat</a>&quot; (from the flavor list)&nbsp; to start. </p>
<p>
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
After I run </font><strong><font size="2" face="Arial, Helvetica, sans-serif">./config-fast newemail</font></strong><br />
<font size="2" face="Arial, Helvetica, sans-serif">I got this&nbsp; message, it might be useful in the feature.</p>
<p>Now qmail will refuse to accept SMTP messages except to newemail.<br />
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!</p>
<p>Note: newemail is my system&#8217;s hostname<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
In Part 6</p>
<p>For my case (apache friends)</p>
<p></font><font size="2" face="Arial, Helvetica, sans-serif">./configure          &#8211;enable-cgibindir=/opt/lampp/cgi-bin &#8211;enable-htmldir=/opt/lampp/htdocs</p>
<p>After configure it, I got <br />
Current settings<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
vpopmail directory = /home/vpopmail<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uid = 507<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gid = 502<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cgi-bin dir = /opt/lampp/cgi-bin<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vqadmin dir = /opt/lampp/cgi-bin/vqadmin<br />
&nbsp;&nbsp;&nbsp; mysql features = disabled<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>In opt/lampp/etc/httpd.conf<br />
after line of &quot;Include etc/extra/httpd-default.conf&quot;, add<br />
Include etc/extra/httpd-qmail.conf</p>
<p>Then in /opt/lampp/etc/extra/<br />
create a file named httpd-qmail.conf</p>
<p>and edit this file, add contents as follow:</p>
<p></font><font size="2" face="Arial, Helvetica, sans-serif"><font color="#009900">&lt;Directory &quot;<strong><font color="#ff0000">/opt/lampp/cgi-bin/vqadmin</font></strong>&quot;&gt;<br />
deny from all<br />
Options ExecCGI<br />
AllowOverride AuthConfig<br />
Order deny,allow<br />
&lt;/Directory&gt;</font></font><br />
<font size="2" face="Arial, Helvetica, sans-serif"><br />
In /opt/lampp/cgi-bin/vqadmin/, there is a file .htaccess, edit it as follow</p>
<p></font><font size="2" face="Arial, Helvetica, sans-serif" color="#009900">AuthType          Basic<br />
AuthUserFile <strong><font color="#ff0000">/opt/lampp/etc/.htpasswd</font></strong><br />
AuthName vQadmin<br />
require valid-user<br />
satisfy any</font><br />
<font size="2" face="Arial, Helvetica, sans-serif"><br />
and run <br />
</font><font size="2" face="Arial, Helvetica, sans-serif"><strong>chown nobody          .htaccess&nbsp; ( for the apache friends case, the username running apache is nobody)</strong></font><br />
<strong><font size="2" face="Arial, Helvetica, sans-serif">htpasswd          -bc /opt/lampp/etc/.htpasswd admin          &#8216;admin_password&#8217; </font></strong><br />
<font size="2" face="Arial, Helvetica, sans-serif"><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; </font><br />
<font size="2" face="Arial, Helvetica, sans-serif"><br />
In part 8</p>
<p>after configure <br />
I got </p>
<p>&nbsp;qmailadmin 1.2.9<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Current settings<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cgi-bin dir = /opt/lampp/cgi-bin<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html dir = /opt/lampp/htdocs<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; image dir = /opt/lampp/htdocs/images/qmailadmin<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; image URL = /images/qmailadmin<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; template dir = /usr/local/share/qmailadmin<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qmail dir = /var/qmail<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vpopmail dir = /home/vpopmail<br />
&nbsp;&nbsp; autorespond dir = /usr/bin<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ezmlm dir = /usr/local/bin/ezmlm<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ezmlm idx = yes<br />
&nbsp;&nbsp; mysql for ezmlm = yes<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; help = no<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; modify quota = no<br />
&nbsp;&nbsp; domain autofill = no<br />
&nbsp;modify spam check = no<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
In part 11 I got <br />
[root@newemail lib]# qmailctl stat<br />
/service/qmail-send: up (pid 8454) 12 seconds<br />
/service/qmail-send/log: up (pid 8455) 12 seconds<br />
/service/qmail-smtpd: up (pid 8460) 12 seconds<br />
/service/qmail-smtpd/log: up (pid 8465) 12 seconds<br />
/service/qmail-pop3d: up (pid 8468) 12 seconds<br />
/service/qmail-pop3d/log: up (pid 8469) 12 seconds<br />
messages in queue: 0<br />
messages in queue but not yet preprocessed: 0<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>
</font>
</p>
]]></content:encoded>
			<wfw:commentRss>http://zft.backupdiy.com/2007/07/18/setup-qmail-on-centos-44/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
