<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — What's new in iRedMail (LDAP) -current (2009.06.10)]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic60.xml" />
	<updated>2009-06-10T14:52:49Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic60-whats-new-in-iredmail-ldap-current-20090610.html</id>
		<entry>
			<title type="html"><![CDATA[Re: What's new in iRedMail (LDAP) -current (2009.06.10)]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post307.html#p307" />
			<content type="html"><![CDATA[<p>2009.06.10:<br /></p><ul><li><p>Automatically add a disclaimer to outgoing emails with Amavisd-new + alterMIME (v0.3.10). Disabled by default.</p></li><li><p>Add sample script for dovecot quota warning: tools/dovecot-quota-warning.sh.</p></li><li><p>Update perl-Mail-DKIM to 0.36. Hope DKIM signing is more stable.</p></li></ul>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-06-10T14:52:49Z</updated>
			<id>http://www.iredmail.org/forum/post307.html#p307</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[What's new in iRedMail (LDAP) -current (2009.06.10)]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post268.html#p268" />
			<content type="html"><![CDATA[<p>Hi, all.</p><p>I&#039;d like to introduce two big improvements in iRedMail (LDAP) -current (2009.06.06):<br /></p><ul><li><p>Mail list/group for LDAP backend is re-designed.</p></li><li><p>Maildir format for LDAP backend is re-designed.</p></li></ul><p>Give me your feedback/suggestions.</p><h5>Mail list/group is re-designed.</h5><p>In prevous version, LDIF of mail list/group is like below:<br /></p><div class="codebox"><pre><code>dn: mail=group01@a.cn,ou=Groups,domainName=a.cn,o=domains,dc=iredmail,dc=org
objectClass: mailList
objectClass: top
enabledService: mail
enabledService: deliver
mailForwarding: user01@a.cn
mailForwarding: user02@a.cn
mailForwarding: user03@a.cn
mailForwarding: user04@a.cn
hasMember: yes</code></pre></div><p>In above LDIF, members of group are defined in mailForwardingAddress, both internal and external user are acceptable.</p><p>Benefits:<br /></p><ul><li><p>Both internal and external users are acceptable.</p></li></ul><p>Disadvantage:<br /></p><ul><li><p>You don&#039;t know whether the user exist or not.</p></li><li><p>Hard to control member list.</p></li></ul><p>LDIF of mail list/group after re-designed:<br /></p><div class="codebox"><pre><code>dn: mail=group01@a.cn,ou=Groups,domainName=a.cn,o=domains,dc=iredmail,dc=org
objectClass: mailList
objectClass: top
accountStatus: active
enabledService: mail
enabledService: deliver
hasMember: yes</code></pre></div><p>As you see, no member defined in group object. Yes, you have to specify group in user object:<br /></p><div class="codebox"><pre><code>dn: mail=user01@a.cn,ou=Users,domainName=a.cn,o=domains,dc=iredmail,dc=org
objectClass: mailUser
objectClass: top
accountStatus: active
enabledService: mail
enabledService: pop3
enabledService: imap
enabledService: smtp
enabledService: deliver
enabledService: managesieve
enabledService: forward
enabledService: recipientbcc
enabledService: senderbcc
enabledService: displayedInGlobalAddressBook
memberOfGroup: group01@a.cn
memberOfGroup: group02@a.cn
memberOfGroup: group03@a.cn</code></pre></div><p>As you see, user01@ is member of three groups: group01@, group02, group03.</p><p>Benefits:<br /></p><ul><li><p>Group info is defined in user object, you can make sure this group member exist.</p></li><li><p>Easy to maintain group memberes.</p></li></ul><h5>Maildir format for LDAP backend is re-designed.</h5><p>In prevous version, maildir format is:<br /></p><div class="codebox"><pre><code>user01@domain.ltd: /home/vmail01/domain.ltd/user01/</code></pre></div><p>Description:<br /></p><ul><li><p>/home/vmail01 is storage base directory, defined in &#039;homeDirectory&#039; attribute.</p></li><li><p>domain.ltd/user01/ is path of mailbox, defined in &#039;mailMessageStore&#039; attribute.</p></li></ul><p>Disadvantage:<br /></p><ul><li><p>/home/vmail01 is hard-coded in Dovecot setting (/etc/dovecot{,-mysql,-ldap}.conf), it means all mail data must be sotred in this directory. You can&#039;t change it even disk storage is full.</p></li></ul><p>Maildir format after re-designed:<br /></p><div class="codebox"><pre><code>user01@domain.ltd: /home/vmail01/domain.ltd/u/us/use/user01/Maildir/
user02@domain.ltd: /home/vmail20/domain.ltd/u/us/use/user02/Maildir/</code></pre></div><p>Maildir is &#039;hashed&#039; string.<br />It&#039;s a *BAD* idea to have too many file/directories under same directory, it will reduce file system performance while kernel find the file you want.</p><p>Dovecot setting is changed too, it will use value of &#039;storageBaseDirectory&#039; as storage base directory (in above: /home/vmail01, /home/vmail20), and append value of &#039;mailMessageStore&#039; (in above: domain.ltd/u/us/use/user01/, domain.ltd/u/us/use/user02/) and &#039;Maildir/&#039; string as maildir.</p><p>And, user&#039;s &#039;homeDirectory&#039; is not used for mail service, so that you can specify another path used as HOME directory for ssh login or other service.</p><p>Benefits (useful for large-scale deployment)<br /></p><ul><li><p>Flexible, you get a per-user storage base directory. Your disk storage won&#039;t be &quot;FULL&quot; anymore, just attacted another disk and make new users use the new one.</p></li><li><p>Performance improvement. It&#039;s a bad idea to store 1000 mailbox under one directory, find a file in this directory will be slower.</p></li></ul>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-06-06T07:37:39Z</updated>
			<id>http://www.iredmail.org/forum/post268.html#p268</id>
		</entry>
</feed>
