<?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>P0L0&#039;s Blog &#187; quota</title>
	<atom:link href="http://p0l0.binware.org/index.php/tag/quota/feed/" rel="self" type="application/rss+xml" />
	<link>http://p0l0.binware.org</link>
	<description>Opensource Projects and IT experiences</description>
	<lastBuildDate>Sun, 30 Oct 2011 08:39:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Postfix+VDA</title>
		<link>http://p0l0.binware.org/index.php/2006/03/05/postfixvda/</link>
		<comments>http://p0l0.binware.org/index.php/2006/03/05/postfixvda/#comments</comments>
		<pubDate>Sun, 05 Mar 2006 00:01:00 +0000</pubDate>
		<dc:creator>P0L0</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[binware]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[quota]]></category>

		<guid isPermaLink="false">http://p0l0.binware.org/index.php/2006/03/05/postfixvda/</guid>
		<description><![CDATA[Esto era una de las cosas que tenia pendiente de poner en el server hosting, y ultimamente ha habido mucha gente que superaba de mucho el limite, asi que me he puesto a configurar e instalar postfix con el parch VDA para poner limite de tamaño a los buzones. Como tengo ahora mismo todo configurado [...]]]></description>
			<content:encoded><![CDATA[<p>Esto era una de las cosas que tenia pendiente de poner en el server hosting, y ultimamente ha habido mucha gente que superaba de mucho el limite, asi que  me he puesto a configurar e instalar postfix con el parch VDA para poner limite de tamaño a los buzones.</p>
<p>Como tengo ahora mismo todo configurado con los paquetes de debian, he pensado que lo mejor es parchear los propios paquetes de debian, y aqui estan los pasos que he seguido:</p>
<ol>
<li>Instalo todas las utilidades necesarias para poder compilar y crear el paquete de postfix.

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential dpkg-dev fakeroot debhelper po-debconf dpatch lsb-release libdb4.3-dev libgdbm-dev libldap2-dev libpcre3-dev libmysqlclient15-dev libsasl2-dev libpq-dev</pre></div></div>

</li>
<li>Nos bajamos el codigo fuente del postfix (Conviene hacerlo en /usr/src ya que lo descarga en el directorio actual)

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #7a0874; font-weight: bold;">source</span> postfix</pre></div></div>

</li>
<li>Nos bajamos el ultimo parche disponible para nuestra version de <a href="http://web.onda.com.br/nadal/">http://web.onda.com.br/nadal/</a>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>web.onda.com.br<span style="color: #000000; font-weight: bold;">/</span>nadal<span style="color: #000000; font-weight: bold;">/</span>postfix<span style="color: #000000; font-weight: bold;">/</span>VDA<span style="color: #000000; font-weight: bold;">/</span>postfix-2.2.8-vda.patch.gz</pre></div></div>

</li>
<li>Parcheamos el codigo

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">gunzip</span> postfix-2.2.8-vda.patch.gz
<span style="color: #c20cb9; font-weight: bold;">patch</span> <span style="color: #660033;">-p1</span></pre></div></div>

</li>
<li>Compilamos

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">dpkg-buildpackage</pre></div></div>

</li>
<li>Instalamos los paquetes generados

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> postfix_2.2.8-<span style="color: #000000;">9</span>_i386.deb
<span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> postfix-mysql_2.2.8-<span style="color: #000000;">9</span>_i386.deb</pre></div></div>

</li>
<li>Configuramos postfix</li>
</ol>
<ol>
<li>main.cf

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000099;">virtual_mailbox_limit_override</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">yes</span>
#Use IMAP compatible files
<span style="color: #000099;">virtual_maildir_extended</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">yes</span>
#Create maildirsize files
<span style="color: #000099;">virtual_create_maildirsize</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">yes</span>
#Bounce mails overquota
<span style="color: #000099;">virtual_overquota_bounce</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">yes</span>
#MySQL info to get user quota
<span style="color: #000099;">virtual_mailbox_limit_maps</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">mysql:/etc/postfix/quota.cf</span>
#Count Trash
<span style="color: #000099;">virtual_trash_count</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">yes</span>
<span style="color: #000099;">virtual_trash_name</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">.Trash</span></pre></div></div>

</li>
<li>quota.cf

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000099;">user</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">mail</span>
<span style="color: #000099;">password</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">mailpassword</span>
<span style="color: #000099;">dbname</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">mail</span>
<span style="color: #000099;">table</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">users</span>
<span style="color: #000099;">hosts</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">localhost</span>
<span style="color: #000099;">where_field</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">address</span>
<span style="color: #000099;">select_field</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">quota</span></pre></div></div>

</li>
</ol>
<li>Configuramos courier</li>
<ol>
<li>authmysqlrc

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">MYSQL_QUOTA_FIELD quota</pre></div></div>

</li>
</ol>
<p>
Updated (2007/07/12): La nueva URL del patch VDA es http://vda.sourceforge.net/</p>
]]></content:encoded>
			<wfw:commentRss>http://p0l0.binware.org/index.php/2006/03/05/postfixvda/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

