<?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>HeXagon's Hut &#187; Postcube</title>
	<atom:link href="http://hexhost.net/category/postcube/feed" rel="self" type="application/rss+xml" />
	<link>http://hexhost.net</link>
	<description>"Quiet. My dumb dumb want to speak."</description>
	<lastBuildDate>Wed, 21 Apr 2010 12:40:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>PostfixAdmin + Roundcube = Postcube &#8211; UPDATE</title>
		<link>http://hexhost.net/82/postfixadmin-roundcube-postcube-update</link>
		<comments>http://hexhost.net/82/postfixadmin-roundcube-postcube-update#comments</comments>
		<pubDate>Tue, 04 Aug 2009 02:02:15 +0000</pubDate>
		<dc:creator>HeXagon</dc:creator>
				<category><![CDATA[Postcube]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[postfixadmin]]></category>
		<category><![CDATA[roundcube]]></category>

		<guid isPermaLink="false">http://hexhost.net/?p=82</guid>
		<description><![CDATA[After the Postfix developers said F*@&#38;  you to anyone who wants user management and the new ability to add plugins. Here is what I have come up with. Donations are welcome! This installation assumes a few things: 1. You have PostfixAdmin already installed somewhere.  (While it is not required. It is nice to have since this [...]<br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://hexhost.net/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></description>
			<content:encoded><![CDATA[<p>After the Postfix developers said F*@&amp;  you to anyone who wants user management and the new ability to add plugins. Here is what I have come up with. <a href="http://hexhost.net/donate" target="_blank">Donations are welcome!</a></p>
<h2><span style="text-decoration: underline;"><strong>This installation assumes a few things:</strong></span></h2>
<p>1. You have PostfixAdmin already installed somewhere.  (While it is not required. It is nice to have since this doesn&#8217;t do domain admin.)<br /> 2. You are using the default database structure that comes with PostfixAdmin<br /> 3. You know what you are doing.  (You have to modify the postfix database.)<br /> 4. You are using the latest subversion release of RoundCube that supports plugins.</p>
<h2><span style="text-decoration: underline;"><strong>It also does have some limitations:</strong></span></h2>
<p>1. It only allows for add/removal/editing of  accounts under a single domain. The accounts that are being edited must match the domain of the logged in user.<br /> 2. I am not an excellent programmer. This version is a complete mess of code and may or may not break on you. If it does, please tell me how, when, where, and why and I will do my best to fix it.<br /> 3. You must manually edit the database to create the superuser that cannot be deleted.<br /> 4. This must be done perfectly or stuff will break.<br /> 5. It does not remove account data.<br /> 6. This also currently must be installed on the same server as the e-mail.</p>
<p><span style="text-decoration: underline;"><br /> </span></p>
<h2><span style="text-decoration: underline;">Installation Steps:</span></h2>
<p><strong>Altering the database structure + configs.</strong></p>
<ol>
<li>Add a field to the mailbox table
<pre>ALTER TABLE `mailbox` ADD `is_admin` TINYINT NOT NULL AFTER `active`;</pre>
</li>
<li> Create a table called quotacron
<pre>CREATE TABLE IF NOT EXISTS `quotacron` ( `path` varchar(255) NOT NULL, `bytes` varchar(255) NOT NULL, `time` datetime NOT NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;</pre>
</li>
<li>Modify dovecot and postfix configuation (Make sure to do this for ANY query that checks the database for a virtual user.</li>
<li>Change the SQL string to use WHERE username = &#8216;%u&#8217; AND active &gt; 0&#8242; instead of &#8216;WHERE username = &#8216;%u&#8217; AND active = 1&#8242;</li>
<li>Okay, now reload postfix and dovecot. The reason we did this is because a normal user will be active = 1 and is_admin = 1. The super user will have a value of 2 for both fields. This is so that we can make sure that if we grant another user admin, they cannot steal it.</li>
</ol>
<p><strong>Installing the Plug-in</strong></p>
<ol>
<li>Download the Plugin
<pre>http://hexhost.net/files/roundcube_plugin-manage_users.zip</pre>
</li>
<li>Unzip the plugin in the roundcube plugins directory
<pre>unzip roundcube_plugin-manage_users.zip</pre>
</li>
<li>Edit roundcube configuration file (/path/to/roundcube/config/main.inc.php)
<pre>$rcmail_config['plugins'] = Array('manage_users');</pre>
</li>
<li>Edit Plugin configuration file (/path/to/roundcube/plugins/config.inc.php)
<pre>$rcmail_config['postfixadmin_user'] = 'postfix'; // Username to access the postfix database$rcmail_config['postfixadmin_pass'] = 'password'; // Password to access the postfix database$rcmail_config['postfixadmin_db'] = 'postfix'; // Name for the postfix database$rcmail_config['postfixadmin_host'] = 'localhost'; // Host for the postfix database$rcmail_config['physical_mail_path'] = '/path/to/virtual/mail/root/';  //Path to virtual Mailboxes (MUST HAVE BEGINNINGAND TRAILING SLASHES!</pre>
</li>
<li>If you want quota&#8217;s to work, Create a cron for the user that is owner of the virtual mailboxes. In it add the following line (editing it appropriately):
<pre>*/5 * * * * cd /path/to/roundcube/plugins/manage_users/; php quota_cron.php</pre>
</li>
</ol>
<p><strong>Configuring the superuser</strong></p>
<ol>
<li>Using SQL administrator change the is_admin and active field for your superuser to a value of 2 in the MySQL database. This will make the superuser irremovable and nobody can deactivate it without manually editing the database.</li>
</ol>
<p><strong>Using the plugin</strong></p>
<ol>
<li>Log into RounCube interface as super-administrator</li>
<li>Go to User Preferences</li>
<li>Click on User Admin</li>
<li>You can now edit users.</li>
</ol>
<p><strong>In the end</strong></p>
<ul>
<li>This probably will break. It might or might not work. Remember you HAVE to know what your doing. And, this is VERY alpha, and you are charged with knowing what you are doing!</li>
</ul>
<br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://hexhost.net/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></content:encoded>
			<wfw:commentRss>http://hexhost.net/82/postfixadmin-roundcube-postcube-update/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfixadmin + Roundcube plugin = PostCube</title>
		<link>http://hexhost.net/68/postfixadmin-roundcube-plugin-postcube</link>
		<comments>http://hexhost.net/68/postfixadmin-roundcube-plugin-postcube#comments</comments>
		<pubDate>Tue, 14 Jul 2009 21:05:35 +0000</pubDate>
		<dc:creator>HeXagon</dc:creator>
				<category><![CDATA[Postcube]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[postfixadmin]]></category>
		<category><![CDATA[roundcube]]></category>

		<guid isPermaLink="false">http://hexhost.net/?p=68</guid>
		<description><![CDATA[So I&#8217;m sitting here scouring the internet looking for a plug-in for RoundCube that will let me administer a Postfix database from within RoundCube. Everyone in the community seems to think that RoundCube should never have the distinction between a user and an administrator. I think differently. I have embarked on an adventure to create [...]<br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://hexhost.net/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;m sitting here scouring the internet looking for a plug-in for RoundCube that will let me administer a Postfix database from within RoundCube.</p>
<p>Everyone in the community seems to think that RoundCube should never have the distinction between a user and an administrator. I think differently. I have embarked on an adventure to create a plug-in that will allow an &#8216;administrator&#8217; user as defined in the Postfix database to be used in RoundCube. I deem it.. PostCube</p>
<p>Once I have a beta / release-candidate I will post it here. Should be here within a week.</p>
<br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://hexhost.net/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></content:encoded>
			<wfw:commentRss>http://hexhost.net/68/postfixadmin-roundcube-plugin-postcube/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
