<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — How set a default mailQuota to all users in virtual domain? [solved]]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic302.xml" />
	<updated>2009-10-08T11:13:08Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic302-how-set-a-default-mailquota-to-all-users-in-virtual-domain-solved.html</id>
		<entry>
			<title type="html"><![CDATA[Re: How set a default mailQuota to all users in virtual domain? [solved]]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1391.html#p1391" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[lmthong]]></name>
				<uri>http://www.iredmail.org/forum/user296.html</uri>
			</author>
			<updated>2009-10-08T11:13:08Z</updated>
			<id>http://www.iredmail.org/forum/post1391.html#p1391</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How set a default mailQuota to all users in virtual domain? [solved]]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1386.html#p1386" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[giorgiolago]]></name>
				<uri>http://www.iredmail.org/forum/user217.html</uri>
			</author>
			<updated>2009-10-08T03:15:20Z</updated>
			<id>http://www.iredmail.org/forum/post1386.html#p1386</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How set a default mailQuota to all users in virtual domain? [solved]]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1376.html#p1376" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[giorgiolago]]></name>
				<uri>http://www.iredmail.org/forum/user217.html</uri>
			</author>
			<updated>2009-10-07T05:12:01Z</updated>
			<id>http://www.iredmail.org/forum/post1376.html#p1376</id>
		</entry>
</feed>
