<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — [FAQ] How to dump disclaimer text from LDAP/MySQL automaticly.]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic437.xml" />
	<updated>2009-11-20T07:50:51Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic437-faq-how-to-dump-disclaimer-text-from-ldapmysql-automaticly.html</id>
		<entry>
			<title type="html"><![CDATA[[FAQ] How to dump disclaimer text from LDAP/MySQL automaticly.]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1887.html#p1887" />
			<content type="html"><![CDATA[<h5>Note</h5><p>Signing disclaimer on outgoing mails is available in iRedMail/iRedOS-0.5.0 and later, users upgrade from 0.4.0 or even older versions can <a href="http://code.google.com/p/iredmail/wiki/Upgrade_040_050#Disclaimer">add this feature manually</a> with steps explained in our <a href="http://code.google.com/p/iredmail/wiki/Upgrade_040_050">Upgrade Tutorial (0.4.0 -&gt; 0.5.0)</a>.<br />============</p><h5>Note</h5><ul><li><p>For how to enable disclaimer in iRedMail, please refer to this FAQ item: <a href="http://www.iredmail.org/forum/topic210-faq-how-to-enable-signing-disclaimer-on-outgoing-mails.html">[FAQ] How to enable signing disclaimer on outgoing mails?</a></p></li><li><p>Currently, only LDAP backend is supported.</p></li></ul><p>============</p><p>iRedAdmin-v1.1.0+ ships python script used to dump disclaimer text from OpenLDAP server. Below is steps to use it:<br /></p><ul><li><p>Find script in iRedAdmin installation directory, default is /var/www/iredadmin/tools/dump_disclaimer.py</p></li><li><p>Open it and edit below variables</p></li></ul><div class="codebox"><pre><code># -------------------------- Settings ------------------------------
# Directory used to store disclaimer files.
# Default directory is /etc/postfix/disclaimer/.
# Default disclaimer file name is [domain_name].txt
DISCLAIMER_DIR=&#039;/etc/postfix/disclaimer&#039;    # NOT need to end with slash (&#039;/&#039;).
DISCLAIMER_FILE_EXT=&#039;.txt&#039;

# Debug: True, False
# WARNING:
#   * If set to True, cron daemon will send output message to root user.
DEBUG = False

# Backend used to store disclaimer: ldap, mysql. 
BACKEND=&#039;ldap&#039;

############################################################
# LDAP Settings. Required if you use LDAP backend.
#
# LDAP server address.
LDAP_URI = &#039;ldap://127.0.0.1:389&#039;

# LDAP base dn.
LDAP_BASEDN = &#039;o=domains,dc=iredmail,dc=org&#039;

# LDAP bind dn &amp; password.
# WARNING:
#   * Only READ permission is requied for dumping disclaimer text.
#   * Use &#039;cn=vmailadmin&#039; or &#039;cn=Manager&#039; is *NOT* recommended.
#   * &#039;cn=vmail&#039; IS recommended.
# TIP:
#   You can find password for &#039;cn=vmail&#039; in /etc/postfix/ldap_*.cf.
LDAP_BINDDN = &#039;cn=vmail,dc=iredmail,dc=org&#039;
LDAP_BINDPW = &#039;WEx7NAeBV9WrAPbGpehyN2pwymvTe5&#039;</code></pre></div><ul><li><p>Add one more crontab job for root user.</p></li></ul><div class="codebox"><pre><code># crontab -e -u root
*/1   *   *   *   *   python /var/www/iredadmin/tools/dump_disclaimer.py</code></pre></div><p><strong>Note:</strong> Here we make it dump disclaimer every minute (*/1), you can change it to other interval you like, such as every 5 minutes (*/5), 30 minutes (*/30).</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-11-20T07:50:51Z</updated>
			<id>http://www.iredmail.org/forum/post1887.html#p1887</id>
		</entry>
</feed>
