<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Sharky's Weblog</title>
	<atom:link href="http://ucishark.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ucishark.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 07 Jul 2008 07:56:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ucishark.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Sharky's Weblog</title>
		<link>http://ucishark.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ucishark.wordpress.com/osd.xml" title="Sharky&#039;s Weblog" />
	<atom:link rel='hub' href='http://ucishark.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to Perdition IMAP/POP3 Proxy &#8211; MySQL</title>
		<link>http://ucishark.wordpress.com/2008/07/07/how-to-perdition-imappop3-proxy-mysql/</link>
		<comments>http://ucishark.wordpress.com/2008/07/07/how-to-perdition-imappop3-proxy-mysql/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 07:56:59 +0000</pubDate>
		<dc:creator>ucishark1978</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[imap and pop3 proxy]]></category>
		<category><![CDATA[perdition]]></category>
		<category><![CDATA[perdition_makedb_mysql]]></category>
		<category><![CDATA[separate mailbox from mailserver]]></category>

		<guid isPermaLink="false">http://ucishark.wordpress.com/?p=8</guid>
		<description><![CDATA[Me and my brother was doing a preventive maintenance for one of our clients for their email services. Previously we used traditional UNIX mbox format (which of course from UW-IMAP). With some of the users mailbox size bigger than 1GB, we were forced to do a restructure of the whole email architecture. The architecture implements [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ucishark.wordpress.com&amp;blog=4026364&amp;post=8&amp;subd=ucishark&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="font-family:Georgia;text-align:justify;">Me and my brother was doing a preventive maintenance for one of our clients for their email services. Previously we used traditional UNIX mbox format (which of course from UW-IMAP). With some of the users mailbox size bigger than 1GB, we were forced to do a restructure of the whole email architecture.</div>
<div style="font-family:Georgia;text-align:justify;">The architecture implements 1 server for Perdition IMAP/POP3 proxy and with 2 different mailbox servers. It was hell setting up the whole thing which get me and my brother for almost 4 days with no clue of what to do.</div>
<div style="font-family:Georgia;text-align:justify;">Thank god that we manage to set up everything and it works fine. I was a bit dissappointed because I was unable to explore the possibility of integrating Perdition IMAP proxy and DBMail. I think the integration would be a very stable implementation and email structure.</div>
<div style="font-family:Georgia;">Procedures:-</div>
<ol>
<li>
<div style="font-family:Georgia;">Download perdition source file. Compile and furnish with all the required dependencies.</div>
</li>
<li>
<div style="font-family:Georgia;">Configure the perdition to work with MySQL by running perdition_mysql_makedb and run through the whole process by providing the information required.</div>
</li>
<li>
<div style="font-family:Georgia;">Configure the perdition.conf (if you are compiling from the source, it is usually located under /usr/etc/perdition/perdition.conf) in /etc</div>
</li>
<li>
<div style="font-family:Georgia;">Change these for values at # M|map_library FILENAME: header</div>
<ul>
<li> M /usr/lib/libperditiondb_mysql.so</li>
<li>map_library /usr/lib/libperditiondb_mysql.so.0</li>
</ul>
</li>
<li>
<div style="font-family:Georgia;">Enable &#8216;username_from_database&#8217;</div>
</li>
<li>
<div style="font-family:Georgia;">Save the config file and restart</div>
</li>
<li>
<div style="font-family:Georgia;">Voilla. Your perdition is ready to serve you</div>
</li>
</ol>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ucishark.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ucishark.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ucishark.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ucishark.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ucishark.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ucishark.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ucishark.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ucishark.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ucishark.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ucishark.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ucishark.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ucishark.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ucishark.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ucishark.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ucishark.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ucishark.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ucishark.wordpress.com&amp;blog=4026364&amp;post=8&amp;subd=ucishark&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ucishark.wordpress.com/2008/07/07/how-to-perdition-imappop3-proxy-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34b692fb7f7aeb57386b55cacac1b563?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ucishark1978</media:title>
		</media:content>
	</item>
		<item>
		<title>How to &#8211; Postfix MySQL</title>
		<link>http://ucishark.wordpress.com/2008/06/21/how-to-postfix-mysql/</link>
		<comments>http://ucishark.wordpress.com/2008/06/21/how-to-postfix-mysql/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 05:14:56 +0000</pubDate>
		<dc:creator>ucishark1978</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[CentOS Postfix MySQL]]></category>
		<category><![CDATA[DBMail Postfix]]></category>
		<category><![CDATA[Postfix MySQL]]></category>

		<guid isPermaLink="false">http://ucishark.wordpress.com/?p=6</guid>
		<description><![CDATA[Configuration details:-  + CentOS 5 + MySQL 5 + Postfix 2.5 1. Download the latest Postfix from http://www.postfix.org/download.html  2. Untar the file run make command. Do as the following:- # make -f Makefile.init makefiles &#8216;CCARGS=-DHAS_MYSQL -I/usr /include/mysql&#8217; ‘AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm&#8217; # make install 3. Now to configure Postfix to lookup for aliases in MySQL [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ucishark.wordpress.com&amp;blog=4026364&amp;post=6&amp;subd=ucishark&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Configuration details:-</p>
<p> + CentOS 5</p>
<p>+ MySQL 5</p>
<p>+ Postfix 2.5</p>
<hr size="1" noshade="65535" />1. Download the latest Postfix from <a href="http://www.postfix.org/download.html">http://www.postfix.org/download.html</a></p>
<p> 2. Untar the file run make command. Do as the following:-</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># make -f Makefile.init makefiles &#8216;CCARGS=-DHAS_MYSQL -I/usr /include/mysql&#8217; ‘AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm&#8217;<br />
# make install</div>
<p>3. Now to configure Postfix to lookup for aliases in MySQL database</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># vi main.cf</div>
<p>Search the following line and change value to:</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;">alias_maps = mysql:/etc/postfix/mysql-aliases.cf</div>
<p>4. Now create a new file named mysql-aliases.cf in default Postfix configuration directory. Usually in /etc/postfix</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># vi mysq-aliases.cf</div>
<p>Add the followings:</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># mysql config file for local aliases lookup<br />
# The user name and password to log into the mysql server.<br />
user = &lt;database username&gt;<br />
password = &lt;database user password&gt;<br />
# The database name on the servers.<br />
dbname = &lt;database name&gt;<br />
# For Postfix 2.2 and later The SQL query template.<br />
query = SELECT forw_addr FROM mxaliases WHERE alias=&#8221;%s&#8221;;</div>
<p>5. Restart your postfix</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># postfix stop<br />
# postfix start</div>
<p><span style="text-decoration:underline;">Optional</span> : You can also configure your Postfix to lookup for local recipients using MySQL database. Below is the example for database lookup and configuration with DBMail</p>
<p> 6. Create a new file named sql-recipients.cf in Postfix configuration directory</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># vi sql-recipients.cf</div>
<p>Add the following:</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;">user = &lt;username&gt;<br />
password = &lt;password&gt;<br />
hosts = &lt;dbhost&gt;<br />
dbname = &lt;dbname&gt;<br />
query = SELECT alias FROM dbmail_aliases WHERE alias=&#8217;%s&#8217;<br />
UNION SELECT userid FROM dbmail_users WHERE userid=&#8217;%s&#8217;;</div>
<p>7. Configure your main.cf to map to the sql-recipients.cf file:</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># vi main.cf</div>
<p>Look for local_recipient_maps and add the following value:</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;">local_recipient_maps = mysql:/etc/postfix/sql-recipients.cf</div>
<p>8. Restart your postfix</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># postfix stop<br />
# postfix start</div>
<p> Reference Site:</p>
<p>DBMail with Postfix : <a href="http://www.dbmail.org/dokuwiki/doku.php?id=setup_postfix">http://www.dbmail.org/dokuwiki/doku.php?id=setup_postfix</a><br />
Postfix MySQL : <a href="http://www.postfix.org/MYSQL_README.html">http://www.postfix.org/MYSQL_README.html</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ucishark.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ucishark.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ucishark.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ucishark.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ucishark.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ucishark.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ucishark.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ucishark.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ucishark.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ucishark.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ucishark.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ucishark.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ucishark.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ucishark.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ucishark.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ucishark.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ucishark.wordpress.com&amp;blog=4026364&amp;post=6&amp;subd=ucishark&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ucishark.wordpress.com/2008/06/21/how-to-postfix-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34b692fb7f7aeb57386b55cacac1b563?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ucishark1978</media:title>
		</media:content>
	</item>
		<item>
		<title>How to &#8211; Disclaimer with alterMIME and Postfix</title>
		<link>http://ucishark.wordpress.com/2008/06/20/setting-up-altermime-with-postfix/</link>
		<comments>http://ucishark.wordpress.com/2008/06/20/setting-up-altermime-with-postfix/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 12:15:10 +0000</pubDate>
		<dc:creator>ucishark1978</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[alterMIME]]></category>
		<category><![CDATA[alterMIME Disclaimer]]></category>
		<category><![CDATA[Postfix + alterMIME]]></category>

		<guid isPermaLink="false">http://ucishark.wordpress.com/?p=4</guid>
		<description><![CDATA[This is the first time i&#8217;ve use web blog to store all my notes. Not really much on myself but I do think this really helps me when I don&#8217;t have much time to think about googling the web. Let&#8217;s head straigh to our main point. How to setup alterMIME to work with Postfix. What [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ucishark.wordpress.com&amp;blog=4026364&amp;post=4&amp;subd=ucishark&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the first time i&#8217;ve use web blog to store all my notes. Not really much on myself but I do think this really helps me when I don&#8217;t have much time to think about googling the web. Let&#8217;s head straigh to our main point. How to setup alterMIME to work with Postfix.</p>
<p>What is alterMIME</p>
<p>&#8220;<em>alterMIME is a small program which is used to alter your mime-encoded mailpacks as typically received by <a href="http://pldaniels.com/inflex">Inflex</a>, <a href="http://xamime.com/">Xamime</a> and AMaViS</em>&#8220;<br />
[taken from http://www.pldaniels.com/altermime/]</p>
<p> </p>
<hr size="1" noshade="65535" />My configuration :<br />
+ CentOS 5.0<br />
+ Postfix 2.5<br />
+ altermime 0.3.8</p>
<hr size="1" noshade="65535" /> </p>
<p> </p>
<div style="border-bottom:1px dotted #333333;font-size:16px;font-weight:bold;">alterMIME</div>
<p>1. Download alterMIME from <a href="http://www.pldaniels.com/altermime">http://www.pldaniels.com/altermime</a></p>
<p>2. Compile alterMIME</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># make<br />
# make install</div>
<p>3. Add a filter user</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># useradd -r -c &#8220;Postfix Filters&#8221; -d /var/spool/filter filter</div>
<p>4. Create filter directory for user filter</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># mkdir /var/spool/filter<br />
# chown filter:filter /var/spool/filter<br />
# chmod 750 /var/spool/filter</div>
<div style="border-bottom:1px dotted #333333;font-size:16px;font-weight:bold;">
<p>Postfix</p></div>
<p>5. Change directory to where your Postfix configuration files located. Usually under /etc/postfix</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># cd /etc/postfix<br />
# cp master.cf master.cf.ori</div>
<p>6. Modify you master.cf by adding these lines.</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;">smtp inet     n     -     n     -     -     smtpd<br />
-o content_filter=dfilt:<br />
dfilt    unix     -     n     n     -     -     pipe<br />
flags=Rq user=filter argv=/etc/postfix/disclaimer -f ${sender} &#8212; ${recipient}</div>
<p>Usually, the first line is already added to the default master.cf file. Look for that line and just add the second line below the entry or you can remark/remove the old entry and just add a new line according to the above configuration.</p>
<p>Should you require only the outbound emails are added with disclaimer, you can do the following:</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;">192.168.1.25:smtp     inet     n     -     n     -     -     smtpd<br />
-o content_filter=dfilt:<br />
127.0.0.1:smtp     inet     n     -     n     -     -     smtpd<br />
-o content_filter=dfilt:<br />
dfilt    unix     -     n     n     -     -     pipe<br />
flags=Rq user=filter argv=/etc/postfix/disclaimer -f ${sender} &#8212; ${recipient}</div>
<p>The 192.168.1.25:smtp entry is the IP Address for the outgoing SMTP Server</p>
<p>7. Create a disclaimer file in your default Postfix configuration folder</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># vi /etc/postfix/disclaimer.txt<br />
# vi /etc/postfix/disclaimer.html</div>
<p>Add your own text. Example for disclaimer.txt:</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;">This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of &#8220;[business name]&#8220;.<br />
If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone.<br />
Please contact the sender if you believe you have received this email in error.</div>
<p>Example for disclaimer.html:</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;">&lt;hr&gt;&lt;br&gt;<br />
This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of &#8220;[business name]&#8220;.<br />
If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone.<br />
Please contact the sender if you believe you have received this email in error.<br />
&lt;a href=&#8221;www.abc.com&#8221;&gt;ABC Company&lt;/a&gt;</div>
<p>8. Create a disclaimer script in your default Postfix configuration directory.</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># cd /etc/postfix<br />
# vi disclaimer</div>
<p>Add these lines in your disclaimer script</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;">#!/bin/sh<br />
# Localize these.<br />
INSPECT_DIR=/var/spool/filter<br />
SENDMAIL=/usr/sbin/sendmail<br />
FOLDER_DISCLAIMER=/etc/postfix/</div>
<p># Exit codes from &lt;sysexits.h&gt;<br />
EX_TEMPFAIL=75<br />
EX_UNAVAILABLE=69</p>
<p># Clean up when done or when aborting.<br />
trap &#8220;rm -f in.$$&#8221; 0 1 2 3 15</p>
<p># Start processing.<br />
cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit $EX_TEMPFAIL; }<br />
TEXT_DISCLAIMER=`grep &#8220;[a|A-z|Z]&#8221; ${FOLDER_DISCLAIMER}/disclaimer.txt | grep -v &#8220;_&#8221; | tail -2 | head -1`</p>
<p>cat &gt; in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; }<br />
nohup grep &#8220;${TEXT_DISCLAIMER}&#8221; in.$$ &gt; /dev/null 2&gt;&amp;1</p>
<p>if [ ! "$" = 0 ]; then<br />
/usr/local/bin/altermime &#8211;input=in.$$ &#8211;disclaimer=${FOLDER_DISCLAIMER}/disclaimer.txt &#8211;disclaimer-html=${FOLDER_DISCLAIMER/disclaimer.txt &#8211;xheader=&#8221;X-Copyrighted-Material: Please visit http://www.company.com/privacy.htm&#8221; || { echo Message content rejected; exit $EX_UNAVAILABLE; }<br />
fi</p>
<p>$SENDMAIL &#8220;$@&#8221; &lt; in.$$<br />
exit $?</p>
<p>9. Set permission for the disclaimer script</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># chgrp filter /etc/postfix/disclaimer<br />
# chmod 750 /etc/postfix/disclaimer</div>
<p>10. Now we need to restart Postfix</p>
<div style="color:#00CC33;border:1px dashed #CCCCCC;font-family:'Courier New', Courier, monospace;font-size:12px;padding:5px;"># postfix stop<br />
# postfix start</div>
<p>Reference Site:</p>
<p>Zimbra &#8211; alterMIME and Postfix : <a href="http://wiki.zimbra.com/index.php?title=Adding_a_disclaimer_(altermime)_or_footer">http://wiki.zimbra.com/index.php?title=Adding_a_disclaimer_(altermime)_or_footer</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ucishark.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ucishark.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ucishark.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ucishark.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ucishark.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ucishark.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ucishark.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ucishark.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ucishark.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ucishark.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ucishark.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ucishark.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ucishark.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ucishark.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ucishark.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ucishark.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ucishark.wordpress.com&amp;blog=4026364&amp;post=4&amp;subd=ucishark&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ucishark.wordpress.com/2008/06/20/setting-up-altermime-with-postfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34b692fb7f7aeb57386b55cacac1b563?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ucishark1978</media:title>
		</media:content>
	</item>
	</channel>
</rss>
