<?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>Colovic Vladan &#187; Linux</title>
	<atom:link href="http://cvladan.com/category/administration/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://cvladan.com</link>
	<description>Real life software experience</description>
	<lastBuildDate>Thu, 25 Sep 2008 03:54:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hide versions from port and services scan (NMAP)</title>
		<link>http://cvladan.com/2008/09/11/hide-versions-from-port-and-services-scan-nmap/</link>
		<comments>http://cvladan.com/2008/09/11/hide-versions-from-port-and-services-scan-nmap/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 05:32:49 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.cvladan.com/misc/2008/09/11/hide-versions-from-port-and-services-scan-nmap/</guid>
		<description><![CDATA[I stumbled on some posts about scanning a site and detecting a server services versions. Someone pointed out a nmap tool, and I checked it against my own server. The result was not so good &#8211; Apache and ProFTPD reveled its versions. So, I was determined to change that &#8211; I want the least version [...]]]></description>
			<content:encoded><![CDATA[<p>I stumbled on some posts about scanning a site and detecting a server services versions. Someone pointed out a nmap tool, and I checked it against my own server. The result was not so good &#8211; Apache and ProFTPD reveled its versions. So, I was determined to change that &#8211; I want the least version information. The NMAP command is:</p>
<pre>nmap -sS -sV -O www.yourserver.com</pre>
<p>Secure and hide version information:</p>
<ul>
<li>Apache, configuration file, usually at /etc/httpd/conf/httpd.conf<br />
<a href="http://httpd.apache.org/docs/2.2/mod/core.html#servertokens"><code>ServerTokens ProductOnly<br />
</code></a><a href="http://httpd.apache.org/docs/2.2/mod/core.html#serversignature"><code>ServerSignature Off</code></a></li>
</ul>
<ul>
<li>ProFTPD, in configuration file, usually at /etc/proftpd.conf<br />
<a href="http://www.proftpd.org/docs/directives/linked/config_ref_ServerName.html"><code>ServerName "My FTP Server"</code></a><br />
<a href="http://www.proftpd.org/docs/directives/linked/config_ref_ServerIdent.html"><code>ServerIdent on "ProFTPD [version] Server (server name) [hostname]"</code></a></p>
<p>This means, enough is to set, but in Global section:<code></p>
<p>&lt;global&gt;<br />
ServerIdent on "Generic FTP Server"<br />
&lt;/global&gt;</code>And you can change the port, if you want.</li>
</ul>
<ul>
<li>OpenSSH, tcp/22, not possible to change banner but yous should change the port, disable root login, etc.</li>
</ul>
<ul>
<li>Telnet, tcp/23, I prefer to disable Telnet. If not, use this (change file /etc/issue.net)<br />
<code>mv /etc/issue.net /etc/issue.net-original<br />
echo "Windows Server 2008 (Microsoft)" &gt; /etc/issue.net</code></li>
</ul>
<ul>
<li>PHP, disable expose_php for security reasons in /etc/php.ini<br />
<code>expose_php = 'off'</code></li>
</ul>
<p>That&#8217;s about it. I believe there is more, and if someone wants to add something, just comment on this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2008/09/11/hide-versions-from-port-and-services-scan-nmap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DNS Vulnerability Check for specific Name Server</title>
		<link>http://cvladan.com/2008/08/02/dns-vulnerability-check-for-specific-name-server/</link>
		<comments>http://cvladan.com/2008/08/02/dns-vulnerability-check-for-specific-name-server/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 03:39:41 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cvladan.com/administration/linux/2008/08/02/dns-vulnerability-check-for-specific-name-server/</guid>
		<description><![CDATA[You probably found a lot of online tools to check for DNS Poisoning check. For example, here and here. The second one is a site of Dan Kaminsky &#8211; the original researcher that discovered the vulnerability. But, these tools check &#8220;My DNS Server&#8221; &#8211; something that is my ISP server, and not DNS that I [...]]]></description>
			<content:encoded><![CDATA[<p>You probably found a lot of online tools to check for DNS Poisoning check. For example, <a href="http://member.dnsstuff.com/tools/vu800113.php">here</a> and <a href="http://www.doxpara.com/">here</a>. The second one is a site of Dan Kaminsky &#8211; the original researcher that discovered the vulnerability. But, these tools check &#8220;My DNS Server&#8221; &#8211; something that is my ISP server, and not DNS that I am hosting/running. So, after some looking around, a found <a href="https://www.dns-oarc.net/">this one-liner here</a>: just find any Linux box, and type there:</p>
<pre>dig @ns1.nameserver.com +short porttest.dns-oarc.net TXT</pre>
<p>where ns1.nameserver.com is either IP or name of a DNS server. If the result is GOOD &#8211; it&#8217;s like that &#8211; anything else is a big problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2008/08/02/dns-vulnerability-check-for-specific-name-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Postfwd on CentOS/Fedora/Redhat</title>
		<link>http://cvladan.com/2008/07/26/installing-postfwd-on-centosfedoraredhat/</link>
		<comments>http://cvladan.com/2008/07/26/installing-postfwd-on-centosfedoraredhat/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 02:34:05 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cvladan.com/administration/linux/2008/07/26/installing-postfwd-on-centosfedoraredhat/</guid>
		<description><![CDATA[Download and unpack Postfwd archive to /usr/local/postfwd:
cd /usr/local/
wget http://postfwd.org/postfwd-1.10pre7c.tar.gz
tar -xf postfwd-1.10pre7c.tar.gz
mv postfwd-1.10pre7c postfwd
Copy the configuration file at its place, and copy the startup script to its place
cp /usr/local/postfwd/etc/postfwd.cf /etc/postfix/
cp /usr/local/postfwd/bin/postfwd-script.sh /etc/init.d/postfwd
Then, if I try to set a daemon to be startet at boot time, with:
chkconfig --add postfwd
But I got an error saying: &#8220;service postfwd does [...]]]></description>
			<content:encoded><![CDATA[<p>Download and unpack Postfwd archive to /usr/local/postfwd:</p>
<pre>cd /usr/local/
wget http://postfwd.org/postfwd-1.10pre7c.tar.gz
tar -xf postfwd-1.10pre7c.tar.gz
mv postfwd-1.10pre7c postfwd</pre>
<p>Copy the configuration file at its place, and copy the startup script to its place</p>
<pre>cp /usr/local/postfwd/etc/postfwd.cf /etc/postfix/
cp /usr/local/postfwd/bin/postfwd-script.sh /etc/init.d/postfwd</pre>
<p>Then, if I try to set a daemon to be startet at boot time, with:</p>
<pre>chkconfig --add postfwd</pre>
<p>But I got an error saying: &#8220;service postfwd does not support chkconfig&#8221;? Ok. There is a statement in a init script that tells the chkconfig command how to add or delete this daemon to the boot process. This statement looks like this:</p>
<pre># chkconfig: 2345 78 32
# description: Postfwd Policy Server</pre>
<p>This means that a script should be started in levels 2,3,4,5 and that its start priority should be 78, and stop pririty 32. Priorities present the order / sequence in which the services are either started and stopped. So if you for instance have Postfix starting and a postfwd application, it is essential that the postfwd is started before Postfix. Having Postfix start value of 80 you need a lower value for the Postfwd (78 for example).</p>
<p>After we added this line to /etc/init.d/postfwd file, lets repeat:</p>
<p>chkconfig &#8211;add postfwd</p>
<p>Ok. This worked. But, I had a lot of problems in a supplied default init script of policyfwd. I had to change a startup script a lot. After faunding out that init script is somehow strange, I had to rewrite a script based on postgrey&#8217;s init script. <a href="http://www.cvladan.com/wp-content/uploads/postfwd" title="Postfwd init script">Here it is ready to download</a>. So copy this one to /etc/init.d.</p>
<p>Now, start it with:</p>
<pre>service postfwd start</pre>
<p>It should work. Now to make Postfix aware of it. Open your postfix /etc/postfix/main.cf and insert or edit the following.</p>
<pre>127.0.0.1:10040_time_limit	= 3600
smtpd_recipient_restrictions	= ...
				  ...
				  check_policy_service inet:127.0.0.1:10040,
				  permit

smtpd_end_of_data_restrictions =
				  check_policy_service inet:127.0.0.1:10040</pre>
<p>The last one is needed because you have to call postfwd at end_of_data state for reliable size checks.</p>
<h5>Testing it up</h5>
<p>If you want to list the rules, just type:</p>
<pre>/usr/local/postfwd/sbin/postfwd -f /etc/postfix/postfwd.cf -C</pre>
<p>Finally, if you are satisfied, start postfwd and reload postfix. Then, monitor the log file for lines mentioning postfwd with:</p>
<pre>tail -f /var/log/maillog | grep postfwd</pre>
<p>There is an example policy request distributed with postfwd, called &#8216;request.sample&#8217;. Simply change it to meet your requirements:</p>
<pre>nano /usr/local/postfwd/tools/request.sample
/usr/local/postfwd/sbin/postfwd -f /etc/postfix/postfwd.cf &lt;/usr/local/postfwd/tools/request.sample</pre>
<p>Thats it.</p>
<p>No &#8211; it is not!</p>
<h4>Really a bug not counted as one</h4>
<p>I spent at least an hour just to find out the bug. No! It is not a bug. I just need to <strong>read very, very carefully</strong>:</p>
<p>From the Doc&#8217;s: &#8220;Multiple use of the <strong>same item</strong> is allowed and will compared as logical OR &#8221;</p>
<p>So macro with this content:</p>
<pre>&amp;&amp;LIMITEDS { sender=.*@onedomain.com ; sender~=user@seconddomain.com; };</pre>
<p>will work, and the following one will not (only first rule will be accounted):</p>
<pre>&amp;&amp;LIMITEDS { sender_domain=onedomain.com ; sender~=user@seconddomain.com; };</pre>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2008/07/26/installing-postfwd-on-centosfedoraredhat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resume upload functionality in ProFTPD</title>
		<link>http://cvladan.com/2008/07/24/resume-upload-functionality-in-proftpd/</link>
		<comments>http://cvladan.com/2008/07/24/resume-upload-functionality-in-proftpd/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 02:30:31 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cvladan.com/administration/linux/2008/07/24/resume-upload-functionality-in-proftpd/</guid>
		<description><![CDATA[If you are using ProFTPD, the uploads can not be resumed, by default. Change this by editing the configuration file (/etc/proftpd.conf) and changing-adding following values:
AllowOverwrite on
AllowStoreRestart on
The first one is probably already enabled in config file. Resumed upload is considered the same as a file overwrite (in ProFTPD). Therefore the file overwriting must be enabled.
]]></description>
			<content:encoded><![CDATA[<p>If you are using ProFTPD, the uploads can not be resumed, by default. Change this by editing the configuration file (/etc/proftpd.conf) and changing-adding following values:</p>
<p>AllowOverwrite on<br />
AllowStoreRestart on</p>
<p>The first one is probably already enabled in config file. Resumed upload is considered the same as a file overwrite (in ProFTPD). Therefore the file overwriting must be enabled.</p>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2008/07/24/resume-upload-functionality-in-proftpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix Mail Archival Solutions</title>
		<link>http://cvladan.com/2008/07/23/postfix-mail-archival-solutions/</link>
		<comments>http://cvladan.com/2008/07/23/postfix-mail-archival-solutions/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 01:55:11 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cvladan.com/administration/linux/2008/07/23/postfix-mail-archival-solutions/</guid>
		<description><![CDATA[I am surprised that there are so little open-source solution for this very common need in corporate environment.
The first that slips mind are Postfix&#8217;s bcc_maps directives (or similar). Alternative mechanism should be pretty straightforward &#8211; thru milter system. If someone reading this post finds some other useful utility (open source only), please post a comment [...]]]></description>
			<content:encoded><![CDATA[<p>I am surprised that there are so little open-source solution for this very common need in corporate environment.</p>
<p>The first that slips mind are Postfix&#8217;s bcc_maps directives (or similar). Alternative mechanism should be pretty straightforward &#8211; thru milter system. If someone reading this post finds some other useful utility (open source only), please post a comment about it.</p>
<p>And, my list f sound open-source solutions is:</p>
<ul>
<li>Postfix&#8217;s <a href="http://www.postfix.org/postconf.5.html">recipient_bcc_maps</a> (mails send to some adresses) or sender_bcc_maps (for mails sent by some user addresses)</li>
<li><a href="http://alexey-pushkin.narod.ru/">Open Mail Archiver</a> (I really like the straightforward idea)</li>
<li><a href="http://www.elandsys.com/scam/scam-archiver/">Scam-archiver</a></li>
<li><a href="http://www.mailarchiva.com/">MailArchiva</a> (Open Source Edition)</li>
<li>Or maybe some procmail recipes like <a href="http://www.technoids.org/procmailfilter.html#Archiving">here</a> or <a href="http://www.flaterco.com/aemail/">Æmail</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2008/07/23/postfix-mail-archival-solutions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sudden huge Logwatch mails&#8230;</title>
		<link>http://cvladan.com/2008/07/23/sudden-huge-logwatch-mails/</link>
		<comments>http://cvladan.com/2008/07/23/sudden-huge-logwatch-mails/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 00:37:08 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cvladan.com/administration/linux/2008/07/23/sudden-huge-logwatch-mails/</guid>
		<description><![CDATA[Suddently, on my CentOS the Logwatch mails are very big, with huge Postfix &#8220;**Unmatched Entries**&#8221; section, mostly about messages dropped because they were in RBLs, similar to this:
Service unavailable; Client host [x.x.x.x] blocked using zen.spamhaus.org; ...
My logwatch package is up to date. Problem is &#8211; the service and configuration for postfix in that package are [...]]]></description>
			<content:encoded><![CDATA[<p>Suddently, on my CentOS the Logwatch mails are very big, with huge Postfix &#8220;**Unmatched Entries**&#8221; section, mostly about messages dropped because they were in RBLs, similar to this:</p>
<pre>Service unavailable; Client host [x.x.x.x] blocked using zen.spamhaus.org; ...</pre>
<p>My logwatch package is up to date. Problem is &#8211; the service and configuration for postfix in that package are not.</p>
<p><span class="postbody">You need to update postfix filter portion of logwatch.<br />
It can be updated either from: <a href="http://www.mikecappella.com/logwatch" target="_blank">http://www.mikecappella.com/logwatch</a> or from latest version of logwatch at: <a href="http://www.logwatch.org/" target="_blank">www.logwatch.org</a></span></p>
<p>For me, the first link was better because it had a fresher scripts. I downloaded the package, and only two files are needed for me (do not install or anything).</p>
<p>Just rename (remove -logwatch part of filename) files</p>
<pre>postfix-logwatch
postfix-logwatch.conf</pre>
<p>to</p>
<pre>postfix
postfix.conf</pre>
<p>and copy them to</p>
<pre>       /etc/logwatch/scripts/services/postfix (The Logwatch <strong>postfix</strong> filter)
       /etc/logwatch/conf/services/postfix.conf (The Logwatch <strong>postfix</strong> filter configuration file)</pre>
<p>Files at this location will override default values. And this should fix the problem.</p>
<p>But, there was a problem with  file services/postfix where I had to remove the first line for logwatch to work. Now, when I execute /etc/cron.daily/0logwatch, I do get an reasonable sized email with email statistics.</p>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2008/07/23/sudden-huge-logwatch-mails/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Brute Force Attack Prevention</title>
		<link>http://cvladan.com/2008/07/22/brute-force-attack-prevention/</link>
		<comments>http://cvladan.com/2008/07/22/brute-force-attack-prevention/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 21:40:42 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cvladan.com/administration/linux/2008/07/22/brute-force-attack-prevention/</guid>
		<description><![CDATA[I just got tired of looking at lot of these messages in my Apache log (or similar ones in ssh log)
[error] [client xx.121.146.224] File does not exist: /var/www/sharedip/ads
[error] [client xx.121.146.224] File does not exist: /var/www/sharedip/thisdoesnotexistahaha.php
[error] [client xx.121.146.224] File does not exist: /var/www/sharedip/drupal
[error] [client xx.121.146.224] File does not exist: /var/www/sharedip/adserver
[error] [client xx.121.146.224] File does not exist: [...]]]></description>
			<content:encoded><![CDATA[<p>I just got tired of looking at lot of these messages in my Apache log (or similar ones in ssh log)</p>
<pre>[error] [client xx.121.146.224] File does not exist: /var/www/sharedip/ads
[error] [client xx.121.146.224] File does not exist: /var/www/sharedip/thisdoesnotexistahaha.php
[error] [client xx.121.146.224] File does not exist: /var/www/sharedip/drupal
[error] [client xx.121.146.224] File does not exist: /var/www/sharedip/adserver
[error] [client xx.121.146.224] File does not exist: /var/www/sharedip/adxmlrpc.php
[error] [client xx.121.146.224] File does not exist: /var/www/sharedip/xmlrpc.php</pre>
<p>These robots are constantly trying to exploit vunerabilities. I want to stop them.</p>
<p>There are couple of solutions, but after researching, I concluded that for me the best one is Fail2Ban (compared to DenyHosts or BlockHosts), specially because it can analyze log files for Apache, SSH, FTP and Postfix (and I have it in repository). BTW, there was some <a href="http://www.ossec.net/en/attacking-loganalysis.html">vulnerabilities with it</a>, in the past.</p>
<p>All the configuration is done in /etc/fail2ban/jail.conf.</p>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2008/07/22/brute-force-attack-prevention/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From which IP address your site is accessed the most</title>
		<link>http://cvladan.com/2008/07/22/from-which-ip-address-your-site-is-accessed-the-most/</link>
		<comments>http://cvladan.com/2008/07/22/from-which-ip-address-your-site-is-accessed-the-most/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 18:09:19 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cvladan.com/administration/linux/2008/07/22/from-which-ip-address-your-site-is-accessed-the-most/</guid>
		<description><![CDATA[To find out what IP addresses are most active in accessing your webistes, just execute this line against Apache access log.
awk '{print $1}' access_log &#124; sort &#124; uniq -c &#124; sort -n &#124; tail -20 &#124; awk '{print $2,$2,$1}' &#124; logresolve &#124; awk '{printf "%6d %s (%s)\n",$3,$1,$2}'
where access_log is filename for Apache  access log file, [...]]]></description>
			<content:encoded><![CDATA[<p>To find out what IP addresses are most active in accessing your webistes, just execute this line against Apache access log.</p>
<pre>awk '{print $1}' access_log | sort | uniq -c | sort -n | tail -20 | awk '{print $2,$2,$1}' | logresolve | awk '{printf "%6d %s (%s)\n",$3,$1,$2}'</pre>
<p>where access_log is filename for Apache  access log file, and -20 means that I want to see a first 20 addresses. Great resource of information can be found at <a href="http://www.the-art-of-web.com/system/logs/">the-art-of-web.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2008/07/22/from-which-ip-address-your-site-is-accessed-the-most/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ISPConfig, AWStats &amp; Postfix: Email statistics</title>
		<link>http://cvladan.com/2008/07/21/ispconfig-awstats-postfix-how-to-show-detailed-email-statistics/</link>
		<comments>http://cvladan.com/2008/07/21/ispconfig-awstats-postfix-how-to-show-detailed-email-statistics/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 12:28:20 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[ISPConfig]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cvladan.com/ispconfig/2008/07/21/ispconfig-awstats-postfix-how-to-show-detailed-email-statistics/</guid>
		<description><![CDATA[Very good source that I did not use: http://www.howtoforge.com/mail_statistics_mailgraph_pflogsumm
I setup AWStats package on my server using instructions on this DjTremors site.
And everything worked, besides the fact that I must disable suexec in ISPConfig (Management / Server &#8211; Settings / Web / suexec Checkbox).
At first, I tried adding this statistics inside a ISPConfig&#8217;s http server. Just [...]]]></description>
			<content:encoded><![CDATA[<p>Very good source that I did not use: http://www.howtoforge.com/mail_statistics_mailgraph_pflogsumm</p>
<p>I setup AWStats package on my server using <a href="http://www.djtremors.com/index.php?option=com_content&amp;task=view&amp;id=25&amp;Itemid=139" target="_blank">instructions on this <span class="small">DjTremors </span>site</a>.</p>
<p>And everything worked, besides the fact that I must disable suexec in ISPConfig (Management / Server &#8211; Settings / Web / suexec Checkbox).</p>
<p>At first, I tried adding this statistics inside a ISPConfig&#8217;s http server. Just to remember, whenever I need something to be an option in ISPConfig, under the Tools menu. This is done by creating a subdirectory in  /home/admispconfig/ispconfig/web/tools/tools, and creating a nav.inc.php file there</p>
<p>But the problem arises because Perl can not be enabled without larger modifications in a /root/ispconfig/httpd/conf/httpd.conf. I always got an error</p>
<pre>mod_perl.so: undefined symbol: apr_bucket_shared_split</pre>
<p>So I made a Tools link, but pointing to a main Apache server (where I have Perl enabled).</p>
<pre>File: nav.inc.php</pre>
<pre>&lt;? if($go_api-&gt;auth-&gt;check_admin(0,1)) {
/*
   Only Admin can see this
   Copyright (c) 2008, cvladan.com, Vladan Colovic - All rights reserved.
*/
?&gt;
&lt;!-- Mail AWStats for all domains //--&gt;

menuDaten.neu(new LinkEintrag('root','&lt;? echo $go_api-&gt;lng("Mail Server Statistics")?&gt;','http://www.duplonucleo.com/ispcstats/awstats.pl?config=mail','_blank','email.gif','Ma
il Server Stats','n',''));

&lt;? } ?&gt;</pre>
<p>Let me explain important files in AWStats for ISPConfig. There is /root/ispconfig/scripts/shell/awstats.php file that periodically recreates .conf files in /etc/awstats, based on virtual domains created in web home /var/www. There is no need to change this file. Another important file is/home/admispconfig/ispconfig/web/ispc.awstats/awstats_updateall.pl which is executed periodically too. This file launches update process for all AWStats config files, except awstats.model.conf found in a particular directory (in our case /etc/awstats), so you can easily setup.</p>
<p>As we see, there is no need to change anything. It will automaticly update our mail statistics. So, lets go there&#8230;</p>
<p>First, I needed to add a script  maillogconvert.pl  where it sould be in a first place &#8211; in: /home/admispconfig/ispconfig/web/ispc.awstats</p>
<p>Then edit the /etc/awstats/awstats.mail.conf and &#8230; <a href="http://gentoo-wiki.com/HOWTO_Email:_A_Complete_Virtual_System_-_Install_and_Configure_AWStats">Not so good link</a>, and <a href="http://awstats.sourceforge.net/docs/awstats_faq.html#MAIL">much better (original)</a>.</p>
<p>And do not be shooked with the amount of mails recieved by admispconfig@. <a href="http://www.howtoforge.com/forums/showthread.php?t=11343">Thats ok</a>. The admispconfig mailbox is a script that generates your mail statistics. The emails that go to admispconfig contain the size of the original email sent to one of your users in bytes.</p>
<p>And, after everything, I just updated AWStats from 6.5 to version 6.8 (latest one)</p>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2008/07/21/ispconfig-awstats-postfix-how-to-show-detailed-email-statistics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Putty SSH and Linux terminal line drawing / Midnight Commander (mc)</title>
		<link>http://cvladan.com/2008/06/10/putty-ssh-and-linux-terminal-line-drawing-midnight-commander-mc/</link>
		<comments>http://cvladan.com/2008/06/10/putty-ssh-and-linux-terminal-line-drawing-midnight-commander-mc/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 22:34:59 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cvladan.com/administration/linux/2008/06/10/putty-ssh-and-linux-terminal-line-drawing-midnight-commander-mc/</guid>
		<description><![CDATA[I am using PuTTY to *remotely* access my server via ssh. Recently, I started using a Norton Commander clone called Midnight Commander, wich is incredibly usefull. But, decorative elements (line drawings) are displayed wrongwith some wierd characters. The solution in PuTTY is to change the folowing options:
Window &#62; Translation &#62;  Received data assumed to [...]]]></description>
			<content:encoded><![CDATA[<p>I am using PuTTY to *remotely* access my server via ssh. Recently, I started using a Norton Commander clone called Midnight Commander, wich is incredibly usefull. But, decorative elements (line drawings) are displayed wrongwith some wierd characters. The solution in PuTTY is to change the folowing options:</p>
<pre>Window &gt; Translation &gt;  Received data assumed to be in which character set: <font color="#ff0000"><strong>UTF-8</strong></font>
Window &gt; Translation &gt;  Handling of line drawing characters: <font color="#ff0000"><strong>Use Unicode line drawing code points</strong></font>
Connection &gt; Data &gt; Terminal details &gt; Terminal-type string: <font color="#ff0000"><strong>linux</strong></font>
Terminal &gt; Keyboard &gt; The Function keys and keypad: <font color="#ff0000"><strong>Linux</strong></font></pre>
<p>The commander is now working as it was supposed to. <a href="http://en.opensuse.org/Midnight_Commander/Tips" target="_blank">Source of information.</a></p>
<p>Besides this, when we are already in PuTTY, to mention couple of configuration settings:</p>
<pre>Connection &gt; SSH &gt; <font color="#ff0000">Enable compression</font>: on
Connection &gt; SSH &gt; Preffered SSH protocol version: <font color="#ff0000">2 only</font></pre>
<p>If you want PuTTY to open some session when you start it, just create a shortcut and add a suffix</p>
<pre>-load "Session-Name"</pre>
<p>For example: <code>C:\Program Files\Putty\putty.exe  -load "MySession"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2008/06/10/putty-ssh-and-linux-terminal-line-drawing-midnight-commander-mc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
