<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — How set a default mailQuota to all users in virtual domain? [solved]]]></title>
		<link>http://www.iredmail.org/forum/topic302-how-set-a-default-mailquota-to-all-users-in-virtual-domain-solved.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic302.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How set a default mailQuota to all users in virtual domain? [solved].]]></description>
		<lastBuildDate>Thu, 08 Oct 2009 11:13:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How set a default mailQuota to all users in virtual domain? [solved]]]></title>
			<link>http://www.iredmail.org/forum/post1391.html#p1391</link>
			<description><![CDATA[<p>No one has Eng as mother language!</p><p>Which OS? What is the below mean<br /></p><div class="codebox"><pre><code>for i in $(ldapsearch -x -D &quot;${BINDDN}&quot; -w &quot;${BINDPW}&quot; |egrep &quot;mail=&quot;|cut -d&quot;,&quot; -f1|cut -d&quot;=&quot; -f2); do
    echo ;
    echo dn: mail=$i,${OU_USER_DN},${DOMAIN_DN},${BASE_DN}
    echo changetype:modify;
    echo replace:mailQuota;
    echo mailQuota:${QUOTA};
done</code></pre></div><p>Try to explained your idea first! All are echo and ok! no thing special.</p>]]></description>
			<author><![CDATA[null@example.com (lmthong)]]></author>
			<pubDate>Thu, 08 Oct 2009 11:13:08 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post1391.html#p1391</guid>
		</item>
		<item>
			<title><![CDATA[Re: How set a default mailQuota to all users in virtual domain? [solved]]]></title>
			<link>http://www.iredmail.org/forum/post1386.html#p1386</link>
			<description><![CDATA[<p>I got it! and I will share with you my script!</p><p>#!/bin/bash<br /># This script set a global quota for all user in virtual domain using Openldap Backend<br />#Credits: giorgiolago#gmail.com<br /># How to use:<br /># ./set_global_quota_OpenLDAP.sh &gt; global_quota.ldif<br /># ldapmodify -x -D &quot;cn=Manager,dc=iredmail,dc=org&quot; -w password&nbsp; -f global_quota.ldif</p><p>LDAP_SUFFIX=&quot;dc=iredmail,dc=org&quot;<br />BINDDN=&quot;cn=Manager,${LDAP_SUFFIX}&quot;<br />BINDPW=&#039;password&#039;<br />BASE_DN=&quot;o=domains,${LDAP_SUFFIX}&quot;<br />QUOTA=&#039;1048576000&#039;<br />DOMAIN_NAME=&quot;iredmail.org&quot;<br />DOMAIN_DN=&quot;domainName=${DOMAIN_NAME}&quot;<br />OU_USER_DN=&quot;ou=Users&quot;</p><br /><br /><p>for i in $(ldapsearch -x -D &quot;${BINDDN}&quot; -w &quot;${BINDPW}&quot; |egrep &quot;mail=&quot;|cut -d&quot;,&quot; -f1|cut -d&quot;=&quot; -f2); do<br />&nbsp; &nbsp; echo ;<br />&nbsp; &nbsp; echo dn: mail=$i,${OU_USER_DN},${DOMAIN_DN},${BASE_DN}<br />&nbsp; &nbsp; echo changetype:modify;<br />&nbsp; &nbsp; echo replace:mailQuota;<br />&nbsp; &nbsp; echo mailQuota:${QUOTA};<br />done</p><br /><p>#Examples of Email Quota<br />#250MB = 262144000<br />#500MB = 524288000<br /># 1 GB = 1048576000</p>]]></description>
			<author><![CDATA[null@example.com (giorgiolago)]]></author>
			<pubDate>Thu, 08 Oct 2009 03:15:20 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post1386.html#p1386</guid>
		</item>
		<item>
			<title><![CDATA[How set a default mailQuota to all users in virtual domain? [solved]]]></title>
			<link>http://www.iredmail.org/forum/post1376.html#p1376</link>
			<description><![CDATA[<p>How can i set a default mailQuota to all users in virtual domain? I set a small quota for all user (250MB) and now i need update all user`s quota to unlimited.<br />backend: openldap</p><p>How i can do that ?</p><p>Thx for some help</p><p>ps: i not speak english :{</p>]]></description>
			<author><![CDATA[null@example.com (giorgiolago)]]></author>
			<pubDate>Wed, 07 Oct 2009 05:12:01 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post1376.html#p1376</guid>
		</item>
	</channel>
</rss>
