<?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>ServerAdminBlog &#187; Other</title>
	<atom:link href="http://www.serveradminblog.com/category/other/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.serveradminblog.com</link>
	<description>Short Circuit...</description>
	<lastBuildDate>Mon, 06 Sep 2010 10:29:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Postfix quota notification email script</title>
		<link>http://www.serveradminblog.com/2010/08/postfix-quota-notification-email-script/</link>
		<comments>http://www.serveradminblog.com/2010/08/postfix-quota-notification-email-script/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 08:47:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.serveradminblog.com/?p=144</guid>
		<description><![CDATA[If you want to take care about your users quota and your storage space, check this &#8230; 1. Create new file (for example quota_notify inside /usr/local/sbin/ ) 2. Copy next content inside quota_notify #!/usr/bin/perl -w &#160; # Author &#60;jps@tntmax.com&#62; # # This script assumes that virtual_mailbox_base in defined # in postfix's main.cf file. This directory [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to take care about your users quota and your storage space, check this &#8230;</p>
<p>1. Create new file (for example quota_notify inside /usr/local/sbin/ )</p>
<p>2. Copy next content inside quota_notify</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl -w</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Author &lt;jps@tntmax.com&gt;</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># This script assumes that virtual_mailbox_base in defined</span>
<span style="color: #666666; font-style: italic;"># in postfix's main.cf file. This directory is assumed to contain</span>
<span style="color: #666666; font-style: italic;"># directories which themselves contain your virtual user's maildirs.</span>
<span style="color: #666666; font-style: italic;"># For example:</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># -----------/</span>
<span style="color: #666666; font-style: italic;">#            |</span>
<span style="color: #666666; font-style: italic;">#            |</span>
<span style="color: #666666; font-style: italic;">#    home/vmail/domains/</span>
<span style="color: #666666; font-style: italic;">#        |          |</span>
<span style="color: #666666; font-style: italic;">#        |          |</span>
<span style="color: #666666; font-style: italic;">#  example.com/  foo.com/</span>
<span style="color: #666666; font-style: italic;">#                   |</span>
<span style="color: #666666; font-style: italic;">#                   |</span>
<span style="color: #666666; font-style: italic;">#           -----------------</span>
<span style="color: #666666; font-style: italic;">#           |       |       |</span>
<span style="color: #666666; font-style: italic;">#           |       |       |</span>
<span style="color: #666666; font-style: italic;">#         user1/   user2/  user3/</span>
<span style="color: #666666; font-style: italic;">#                           |</span>
<span style="color: #666666; font-style: italic;">#                           |</span>
<span style="color: #666666; font-style: italic;">#                        maildirsize</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$POSTFIX_CF</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;/etc/postfix/main.cf&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$MAILPROG</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;/usr/sbin/sendmail -t&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$WARNPERCENT</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">80</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@POSTMASTERS</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'postmaster@mydomain.tld'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$CONAME</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'Company ....'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$COADDR</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'postmaster@mydomain.tld'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$SUADDR</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'postmaster@mydomain.tld'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$MAIL_REPORT</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$MAIL_WARNING</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#get virtual mailbox base from postfix config</span>
<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>PCF<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;&lt; $POSTFIX_CF&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">or</span> <span style="color: #000066;">die</span> <span style="color: #0000ff;">$!</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$mboxBase</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #009999;">&lt;PCF&gt;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #b1b100;">next</span> <span style="color: #b1b100;">unless</span> <span style="color: #009966; font-style: italic;">/virtual_mailbox_base\s*=\s*(.*)\s*/</span><span style="color: #339933;">;</span>
   <span style="color: #0000ff;">$mboxBase</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$1</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066;">close</span><span style="color: #009900;">&#40;</span>PCF<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#assume one level of subdirectories for domain names</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@domains</span><span style="color: #339933;">;</span>
<span style="color: #000066;">opendir</span><span style="color: #009900;">&#40;</span>DIR<span style="color: #339933;">,</span> <span style="color: #0000ff;">$mboxBase</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">or</span> <span style="color: #000066;">die</span> <span style="color: #0000ff;">$!</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000066;">defined</span><span style="color: #009900;">&#40;</span><span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$name</span> <span style="color: #339933;">=</span> <span style="color: #000066;">readdir</span><span style="color: #009900;">&#40;</span>DIR<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #b1b100;">next</span> <span style="color: #b1b100;">if</span> <span style="color: #0000ff;">$name</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">/^\.\.?$/</span><span style="color: #339933;">;</span>        <span style="color: #666666; font-style: italic;">#skip '.' and '..'</span>
   <span style="color: #b1b100;">next</span> <span style="color: #b1b100;">unless</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>d <span style="color: #ff0000;">&quot;$mboxBase/$name&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #000066;">push</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">@domains</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066;">closedir</span><span style="color: #009900;">&#40;</span>DIR<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">#iterate through domains for username/maildirsize files</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@users</span><span style="color: #339933;">;</span>
<span style="color: #000066;">chdir</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$mboxBase</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$domain</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">@domains</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066;">opendir</span><span style="color: #009900;">&#40;</span>DIR<span style="color: #339933;">,</span> <span style="color: #0000ff;">$domain</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">or</span> <span style="color: #000066;">die</span> <span style="color: #0000ff;">$!</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000066;">defined</span><span style="color: #009900;">&#40;</span><span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$name</span> <span style="color: #339933;">=</span> <span style="color: #000066;">readdir</span><span style="color: #009900;">&#40;</span>DIR<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
           <span style="color: #b1b100;">next</span> <span style="color: #b1b100;">if</span> <span style="color: #0000ff;">$name</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">/^\.\.?$/</span><span style="color: #339933;">;</span>        <span style="color: #666666; font-style: italic;">#skip '.' and '..'</span>
           <span style="color: #b1b100;">next</span> <span style="color: #b1b100;">unless</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>d <span style="color: #ff0000;">&quot;$domain/$name&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000066;">push</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">@users</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span><span style="color: #ff0000;">&quot;$name<span style="color: #000099; font-weight: bold;">\@</span>$domain&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;$mboxBase/$domain/$name&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066;">closedir</span><span style="color: #009900;">&#40;</span>DIR<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">#get user quotas and percent used</span>
<span style="color: #b1b100;">my</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">%lusers</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$report</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$href</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">@users</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #b1b100;">foreach</span> <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$user</span> <span style="color: #009900;">&#40;</span><span style="color: #000066;">keys</span> <span style="color: #0000ff;">%$href</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$quotafile</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;$href-&gt;{$user}/maildirsize&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">next</span> <span style="color: #b1b100;">unless</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>f <span style="color: #0000ff;">$quotafile</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>QF<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;&lt; $quotafile&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">or</span> <span style="color: #000066;">die</span> <span style="color: #0000ff;">$!</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">my</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$firstln</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$quota</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$used</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #009999;">&lt;QF&gt;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
         <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$line</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$_</span><span style="color: #339933;">;</span>
              <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span> <span style="color: #0000ff;">$firstln</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                 <span style="color: #0000ff;">$firstln</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
                 <span style="color: #000066;">die</span> <span style="color: #ff0000;">&quot;Error: corrupt quotafile $quotafile&quot;</span>
                    <span style="color: #b1b100;">unless</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$line</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">/^(\d+)S/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                 <span style="color: #0000ff;">$quota</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$1</span><span style="color: #339933;">;</span>
            <span style="color: #b1b100;">last</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span> <span style="color: #0000ff;">$quota</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #b1b100;">next</span><span style="color: #339933;">;</span>
         <span style="color: #009900;">&#125;</span>
         <span style="color: #000066;">die</span> <span style="color: #ff0000;">&quot;Error: corrupt quotafile $quotafile&quot;</span>
            <span style="color: #b1b100;">unless</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$line</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">/\s*(-?\d+)/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #0000ff;">$used</span> <span style="color: #339933;">+=</span> <span style="color: #0000ff;">$1</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
      <span style="color: #000066;">close</span><span style="color: #009900;">&#40;</span>QF<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">next</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span> <span style="color: #0000ff;">$used</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$percent</span> <span style="color: #339933;">=</span> <span style="color: #000066;">int</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$used</span> <span style="color: #339933;">/</span> <span style="color: #0000ff;">$quota</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #0000ff;">$lusers</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">$user</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$percent</span> <span style="color: #b1b100;">unless</span> <span style="color: #b1b100;">not</span> <span style="color: #0000ff;">$percent</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">#send a report to the postmasters</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$MAIL_REPORT</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>MAIL<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;| $MAILPROG&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #000066;">select</span><span style="color: #009900;">&#40;</span>MAIL<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #000066;">map</span> <span style="color: #009900;">&#123;</span><span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;To: $_<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#125;</span> <span style="color: #0000ff;">@POSTMASTERS</span><span style="color: #339933;">;</span>
   <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;From: $COADDR<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;Subject: Daily Quota Report.<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;DAILY QUOTA REPORT:<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;----------------------------------------------<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;| % USAGE |            ACCOUNT NAME          |<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;----------------------------------------------<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #b1b100;">foreach</span> <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$luser</span> <span style="color: #009900;">&#40;</span> <span style="color: #000066;">sort</span> <span style="color: #009900;">&#123;</span> <span style="color: #0000ff;">$lusers</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">$b</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">&lt;=&gt;</span> <span style="color: #0000ff;">$lusers</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">$a</span><span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000066;">keys</span> <span style="color: #0000ff;">%lusers</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000066;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;|   %3d   | %32s |<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$lusers</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">$luser</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$luser</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;---------------------------------------------<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
        <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>--<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;$CONAME<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000066;">close</span><span style="color: #009900;">&#40;</span>MAIL<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#email a warning to people over quota</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$MAIL_WARNING</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">foreach</span> <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$luser</span> <span style="color: #009900;">&#40;</span><span style="color: #000066;">keys</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">%lusers</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
           <span style="color: #b1b100;">next</span> <span style="color: #b1b100;">unless</span> <span style="color: #0000ff;">$lusers</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">$luser</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">&gt;=</span> <span style="color: #0000ff;">$WARNPERCENT</span><span style="color: #339933;">;</span>       <span style="color: #666666; font-style: italic;"># skip those under quota</span>
           <span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>MAIL<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;| $MAILPROG&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
           <span style="color: #000066;">select</span><span style="color: #009900;">&#40;</span>MAIL<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
           <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;To: $luser<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #000066;">map</span> <span style="color: #009900;">&#123;</span><span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;BCC: $_<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#125;</span> <span style="color: #0000ff;">@POSTMASTERS</span><span style="color: #339933;">;</span>
           <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;From: $SUADDR<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
           <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;Subject: WARNING: Your mailbox is $lusers{$luser}% full.<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
           <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;Reply-to: $SUADDR<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
           <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;Your mailbox: $luser is $lusers{$luser}% full.<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
           <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;Please consider deleting e-mail and emptying your trash folder to clear some space.<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
           <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;Contact &lt;$SUADDR&gt; for further assistance.<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
           <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;Thank You.<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
           <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;--<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
           <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;$CONAME<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
           <span style="color: #000066;">close</span><span style="color: #009900;">&#40;</span>MAIL<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>3. Edit next lines inside and set up your postmaster email address, percentage, etc</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$POSTFIX_CF</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;/etc/postfix/main.cf&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$MAILPROG</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;/usr/sbin/sendmail -t&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$WARNPERCENT</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">80</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@POSTMASTERS</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'postmaster@mydomain.tld'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$CONAME</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'Company ....'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$COADDR</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'postmaster@mydomain.tld'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$SUADDR</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'postmaster@mydomain.tld'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$MAIL_REPORT</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$MAIL_WARNING</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span></pre></div></div>

<p>4. set chmod 755 on quota_notify (# chmod 755 /usr/local/sbin/quota_notify)</p>
<p>5. add next line to crontab so it will be executed at 0:00 every day.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">0 0 * * * /usr/local/sbin/quota_notify &amp;&gt; /dev/null</pre></div></div>

<p>Keep in mind that this script has only reporting purpose and it will not reject any email when user mailbox is over quota. For this you will need Postfix with quota patch.</p>
<p>This post was inspired by this <a href="http://www.howtoforge.com/forums/showthread.php?t=10883" target="_blank">LINK</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.serveradminblog.com/2010/08/postfix-quota-notification-email-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Workbench</title>
		<link>http://www.serveradminblog.com/2010/06/mysql-workbench/</link>
		<comments>http://www.serveradminblog.com/2010/06/mysql-workbench/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 08:54:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.serveradminblog.com/?p=113</guid>
		<description><![CDATA[MySQL Workbench is a cross-platform, visual database design tool developed by MySQL. It is the highly anticipated successor application of the DBDesigner4 project. MySQL Workbench will be available as a native GUI tool on Window, Linux and OS X. MySQL Workbench 5.2 RC provides: 1. Data Modeling 2. Query (upgrade from MySQL Query Browser) 3. [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL Workbench is a cross-platform, visual database design tool developed by MySQL. It is the highly anticipated successor application of the DBDesigner4 project. MySQL Workbench will be available as a native GUI tool on Window, Linux and OS X. </p>
<p>MySQL Workbench 5.2 RC provides:<br />
   1. Data Modeling<br />
   2. Query (upgrade from MySQL Query Browser)<br />
   3. Admin (upgrade from MySQL Administrator)</p>
<p>Please get your copy from <a href="http://dev.mysql.com/downloads/workbench/" target="_blank">this page</a></p>
<p><img class="aligncenter" title="MySQL WB" src="http://i5.photobucket.com/albums/y157/mangia/ostalo/wb_diagam_fk_highlight1.png" alt="" width="319" height="250" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.serveradminblog.com/2010/06/mysql-workbench/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The worst software I ever used was&#8230;</title>
		<link>http://www.serveradminblog.com/2010/05/the-worst-software-i-ever-used-was/</link>
		<comments>http://www.serveradminblog.com/2010/05/the-worst-software-i-ever-used-was/#comments</comments>
		<pubDate>Thu, 13 May 2010 08:10:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.serveradminblog.com/?p=97</guid>
		<description><![CDATA[What is the worst, the most poorly designed, buggiest, prone-to-breakdown, driver-devouring, update-eluding, the worst piece of crap application  you&#8217;ve ever see? It is hard to say, but lets be honest&#8230; Samsung PC Studio is the first candidate for this title&#8230; Three years ago, I bought Samsung D900 mobile phone and I must admit that this [...]]]></description>
			<content:encoded><![CDATA[<p>What is the worst, the most poorly designed, buggiest,  prone-to-breakdown, driver-devouring, update-eluding,  the worst piece of crap application  you&#8217;ve ever see? It is hard to say, but lets be honest&#8230; Samsung PC Studio is the first candidate for this title&#8230;</p>
<p><span id="more-97"></span></p>
<p>Three years ago, I bought Samsung D900 mobile phone and I must admit that this phone is very good. I was worried about their slider mechanism. After hundreds slides it still works perfectly and I didn&#8217;t had any problems with this phone. I still use the original battery,  display works perfectly&#8230;. Ops&#8230; I forget that camera doesn&#8217;t work any more&#8230; I don&#8217;t know why&#8230; The picture is to dark and I can&#8217;t see anything. </p>
<p>But&#8230; If you want to manage your phonebook, messages or files directly from your computer,  you&#8217;ll need Samsung PC Studio&#8230;. The app is so stupid and buggy that I can&#8217;t understand. I tried to use it on more than 5 different computers. Unfort. only once I made it. After first PC Studio update I could say bye-bye to my phone-PC relationship. Only option I had, was to transfer music and images to SD card and then to phone. Sometimes the error was that I can see folders but I can&#8217;t delete them, or I can&#8217;t upload anything, or the computer simple don&#8217;t see phone, or everything works fine but my phone book is unavailable, unreadable, bla bla&#8230; </p>
<p>Luckily, bluetooth on the phone works fine so I finally made a phone book backup. </p>
<p>Few days ago, I bought the brand new Samsung i5700 Spica with Android&#8230; Fantastic piece of the hardware but to install USB drivers, I should first install &#8220;NPS&#8221; or in other words New PC Studio&#8230;. Oh my dear&#8230; This app has completely different approach. Design is so stupid that I&#8217;m not sure whats the main purpose. Is this game? Cartoon? Spyware? Some icons flying around, desktop inside desktop, sound which irritates you (yes, some of us don&#8217;t like stupid sounds in the middle of the night). Sure, if you&#8217;re 11 years old, this can look interesting but&#8230; </p>
<p>Of course, the install procedure on Win7 64b wasn&#8217;t successful and USB drivers are not installed properly (even when I run them in XP or Vista compatibility mode)&#8230; </p>
<p>I know that some of you don&#8217;t think like my opinion, but the Samsung developers can be candidate for the worst in the world. Their software designers seems like they came from the past (or future, I&#8217;m not sure). All people around me, have the same opinion. All of them had some kind of problems with Samsung PC studio. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.serveradminblog.com/2010/05/the-worst-software-i-ever-used-was/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RPMforge howto</title>
		<link>http://www.serveradminblog.com/2010/03/rpmforge-howto/</link>
		<comments>http://www.serveradminblog.com/2010/03/rpmforge-howto/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 18:12:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.serveradminblog.com/?p=71</guid>
		<description><![CDATA[The RPMforge project is an open source project that provides RPM packages for various distributions (RH, CentOS, Fedora, &#8230;). To enable RPMforge you can install the rpmforge-release package for your distribution. For RHEL5 / CentOS-5: i386 # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm # rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm x86_64 # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm # rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm For older releases (RHEL [...]]]></description>
			<content:encoded><![CDATA[<p>The RPMforge project is an open source project that provides RPM packages for various distributions (RH, CentOS, Fedora, &#8230;). To enable RPMforge you can install the rpmforge-release package for your distribution. </p>
<p>For RHEL5 / CentOS-5:<br />
i386</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
# rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm</pre></div></div>

<p>x86_64</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm</pre></div></div>

<p>For older releases (RHEL 4 / CentOS 4) please follow the instructions available on <a href="http://rpmrepo.org/RPMforge/Using" target="_blank">RPMrepo Wiki</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.serveradminblog.com/2010/03/rpmforge-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set date and time from command prompt</title>
		<link>http://www.serveradminblog.com/2010/03/set-date-and-time-from-command-prompt/</link>
		<comments>http://www.serveradminblog.com/2010/03/set-date-and-time-from-command-prompt/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 08:55:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.serveradminblog.com/?p=61</guid>
		<description><![CDATA[If the Linux server time and date is wrong and you need to set it to new values from the shell prompt, you should use date command. You must login as root user to use date command. Also from command prompt you can check and set system clock (hwclock command). Use the following syntax to [...]]]></description>
			<content:encoded><![CDATA[<p>If the Linux server time and date is wrong and you need to set it to new values from the shell prompt, you should use date command. You must login as root user to use date command. Also from command prompt you can check and set system clock (hwclock command).</p>
<p>Use the following syntax to set new data and time:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># date -s &quot;16 MAR 2010 09:36:00&quot;</pre></div></div>

<p>Also you can use next syntax:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">date set=&quot;16 MAR 2010 09:36:00&quot;</pre></div></div>

<p>After you set date and time, it is good idea to check your system clock with</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># hwclock --show</pre></div></div>

<p>If there is some difference you can sync system date and time with</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># hwclock --systohc</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.serveradminblog.com/2010/03/set-date-and-time-from-command-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tftp server on CentOS/RHEL/Fedora</title>
		<link>http://www.serveradminblog.com/2010/01/tftp-server-on-centosrhelfedora/</link>
		<comments>http://www.serveradminblog.com/2010/01/tftp-server-on-centosrhelfedora/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 23:16:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networks]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.serveradminblog.com/?p=49</guid>
		<description><![CDATA[Trivial File Transfer Protocol (TFTP) is a file transfer protocol, with the functionality of a very basic form of File Transfer Protocol (FTP). It was first defined in 1980 and it is used for operations like firmware upgrade on network devices. This post won&#8217;t be the history lesson . To install tftp server on RH [...]]]></description>
			<content:encoded><![CDATA[<p>Trivial File Transfer Protocol (TFTP) is a file transfer protocol, with the functionality of a very basic form of File Transfer Protocol (FTP). It was first defined in 1980 and it is used for operations like firmware upgrade on network devices. This post won&#8217;t be the history lesson <img src='http://www.serveradminblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . To install tftp server on RH based distros, follow the next steps</p>
<p>Install tftp-server with</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># yum install tftp-server xinetd</pre></div></div>

<p>Now you will need to set up some things before you can start and use tftp server</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># nano /etc/xinetd.d/tftp</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /var/lib/tftpboot
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}</pre></div></div>

<p>To enable tftp server, set “disable” to no. Also, check server_args. In this case, all files will be/must be in /var/lib/tftpboot. If you have any problems with permissions, try to chmod 777 /var/lib/tftpboot and fix perms later. </p>
<p>Restart xinetd to apply settings you just made</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># service xinetd restart</pre></div></div>

<p>Setting &#8220;disable&#8221; to yes will disable tftp server and for security reasons, you should disable tftp whenever you don&#8217;t need it. </p>
<p>TFTP has been implemented on top of the User Datagram Protocol (UDP) using port number 69. TFTP is designed to be small and easy to implement, therefore, lacks most of the features of a regular FTP. TFTP only reads and writes files (or mail) from/to a remote server. It cannot list directories, and currently has no provisions for user authentication.</p>
<p>In TFTP, any transfer begins with a request to read or write a file, which also serves to request a connection. If the server grants the request, the connection is opened and the file is sent in fixed length blocks of 512 bytes. Each data packet contains one block of data, and must be acknowledged by an acknowledgment packet before the next packet can be sent. A data packet of less than 512 bytes signals termination of a transfer. If a packet gets lost in the network, the intended recipient will timeout and may retransmit his last packet (which may be data or an acknowledgment), thus causing the sender of the lost packet to retransmit that lost packet. The sender has to keep just one packet on hand for retransmission, since the lock step acknowledgment guarantees that all older packets have been received. Notice that both machines involved in a transfer are considered senders and receivers. One sends data and receives acknowledgments, the other sends acknowledgments and receives data.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.serveradminblog.com/2010/01/tftp-server-on-centosrhelfedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check dir size howto</title>
		<link>http://www.serveradminblog.com/2010/01/check-di-size-howto/</link>
		<comments>http://www.serveradminblog.com/2010/01/check-di-size-howto/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 01:17:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.serveradminblog.com/?p=45</guid>
		<description><![CDATA[It is useful to know how to check the size of a folder. All you need to do is to run next command: # du -hs /dir/location/ For example: [root@myserver /]# du -hs /mail/mydomain.com/ 837M /mail/mydomain.com/ In this case, the size is shown in MBs.]]></description>
			<content:encoded><![CDATA[<p>It is useful to know how to check the size of a folder. All you need to do is to run next command:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># du -hs /dir/location/</pre></div></div>

<p>For example:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[root@myserver /]# du -hs /mail/mydomain.com/
837M    /mail/mydomain.com/</pre></div></div>

<p>In this case, the size is shown in MBs. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.serveradminblog.com/2010/01/check-di-size-howto/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Small update&#8230;</title>
		<link>http://www.serveradminblog.com/2009/12/small-update/</link>
		<comments>http://www.serveradminblog.com/2009/12/small-update/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 00:09:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.serveradminblog.com/?p=43</guid>
		<description><![CDATA[Hi there&#8230; Its been a while since my last post and that seems like a tradition for my blogs&#8230; Few posts and then couple months of inactivity&#8230; Well, you know, I&#8217;m busy, I&#8217;m sick, tired etc.. At the end I would like to announce a couple articles about Sysbench, mod_fcgid and other &#8220;Nuclear science&#8221; utilities&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>Hi there&#8230; Its been a while since my last post and that seems like a tradition for my blogs&#8230; Few posts and then couple months of inactivity&#8230; Well, you know, I&#8217;m busy, I&#8217;m sick, tired etc.. At the end I would like to announce a couple articles about Sysbench, mod_fcgid and other &#8220;Nuclear science&#8221; utilities&#8230; </p>
<p>see ya &#8230; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.serveradminblog.com/2009/12/small-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://www.serveradminblog.com/2009/03/hello-world/</link>
		<comments>http://www.serveradminblog.com/2009/03/hello-world/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 13:40:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://serveradminblog.com/?p=1</guid>
		<description><![CDATA[# nano hello.sh #!/bin/bash STR='Hello World!' echo $STR # chmod +x hello.sh [me@star ~]# ./hello.sh Hello World!]]></description>
			<content:encoded><![CDATA[<p># nano hello.sh</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #007800;">STR</span>=<span style="color: #ff0000;">'Hello World!'</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$STR</span></pre></div></div>

<p># chmod +x hello.sh</p>
<p>[me@star ~]# ./hello.sh<br />
Hello World!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.serveradminblog.com/2009/03/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
