<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — [FAQ] How to enable signing disclaimer on outgoing mails?]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic210.xml" />
	<updated>2009-08-30T01:04:07Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic210-faq-how-to-enable-signing-disclaimer-on-outgoing-mails.html</id>
		<entry>
			<title type="html"><![CDATA[[FAQ] How to enable signing disclaimer on outgoing mails?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1006.html#p1006" />
			<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>.</p><p>iRedMail uses Amavisd-new plus <a href="http://www.pldaniels.com/altermime/">alterMIME</a> to implement this feature, it is configured but disabled by default after installation.</p><p>You can find disclaimer settings in /etc/amavisd.conf (RHEL/CentOS) or /etc/amavis/conf.d/50-user (Debian/Ubuntu), it&#039;s self-documented:<br /></p><div class="codebox"><pre><code># ------------ Disclaimer Setting ---------------
# Uncomment this line to enable singing disclaimer in outgoing mails.
#$defang_maps_by_ccat{+CC_CATCHALL} = [ &#039;disclaimer&#039; ];

# Program used to signing disclaimer in outgoing mails.
$altermime = &#039;/usr/bin/altermime&#039;;

# Disclaimer in plain text formart.
@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/disclaimer/_OPTION_.txt --disclaimer-html=/etc/postfix/disclaimer/_OPTION_.txt --force-for-bad-html);

@disclaimer_options_bysender_maps = ({
    # Per-domain disclaimer setting: /etc/postfix/disclaimer/host1.iredmail.org.txt
    #&#039;host1.iredmail.org&#039; =&gt; &#039;host1.iredmail.org&#039;,

    # Sub-domain disclaimer setting: /etc/postfix/disclaimer/iredmail.org.txt
    #&#039;.iredmail.org&#039;      =&gt; &#039;iredmail.org&#039;,

    # Per-user disclaimer setting: /etc/postfix/disclaimer/boss.iredmail.org.txt
    #&#039;boss@iredmail.org&#039;  =&gt; &#039;boss.iredmail.org&#039;,

    # Catch-all disclaimer setting: /etc/postfix/disclaimer/default.txt
    &#039;.&#039; =&gt; &#039;default&#039;,
},);
# ------------ End Disclaimer Setting ---------------</code></pre></div><p>That&#039;s all configurations we need for singing disclaimer on outgoing mails, but it&#039;s disabled with this setting in the above:<br /></p><div class="codebox"><pre><code>#$defang_maps_by_ccat{+CC_CATCHALL} = [ &#039;disclaimer&#039; ];</code></pre></div><p>What you need to do to enable it is uncomment this line, and append your domain name in <strong>@local_domains_maps</strong> list, like this:<br /></p><div class="codebox"><pre><code>@local_domains_maps = [&#039;demo.iredmail.org&#039;, &#039;YOUR_DOMAIN.LTD&#039;,];

$defang_maps_by_ccat{+CC_CATCHALL} = [ &#039;disclaimer&#039; ];</code></pre></div><p>It should work as expected after you restart amavisd (RHEL/CentOS) or amavis (Debian/Ubuntu) service.</p><p>Next step is edit related files to add disclaimer text you want.</p><p>_OPTION_ in &#039;@altermime_args_disclaimer&#039; is a placeholder, do *NOT* change it, it will be replaced by filename you defined in &#039;@disclaimer_options_bysender_maps&#039;.</p><p>To add a catch-all disclaimer setting, what you need to do is edit file /etc/postfix/disclaimer/default.txt, add plain text paragraphs which you want to displayed in the mail foot of every outgoing mails.</p><p>As it&#039;s self-documented, you can add per-user, per-domain, sub-domain settings like the sample lines.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-08-30T01:04:07Z</updated>
			<id>http://www.iredmail.org/forum/post1006.html#p1006</id>
		</entry>
</feed>
