<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0" -->
<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/"
	>

<channel>
	<title>Farhad Malekpour</title>
	<link>http://www.farhad.ca</link>
	<description>Professional Work Weblog</description>
	<pubDate>Fri, 28 Jul 2006 00:00:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>
	<language>en</language>
			<item>
		<title>How to disable delayed bounce back messages in exim</title>
		<link>http://www.farhad.ca/2006/07/27/how-to-disable-delayed-bounce-back-messages-in-exim/</link>
		<comments>http://www.farhad.ca/2006/07/27/how-to-disable-delayed-bounce-back-messages-in-exim/#comments</comments>
		<pubDate>Thu, 27 Jul 2006 23:37:45 +0000</pubDate>
		<dc:creator>Farhad Malekpour</dc:creator>
		
	<category>How To</category>
		<guid isPermaLink="false">http://www.farhad.ca/2006/07/27/how-to-disable-delayed-bounce-back-messages-in-exim/</guid>
		<description><![CDATA[Problem: When a mail server accepts a  message and later decides that it can&#8217;t deliver the message, it is required to  send back a bounce email to the sender of the original message. These bounce  emails are often misdirected.
For many MTAs there are solutions, so here is my solution for exim:
Solution: This [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold">Problem:</span> When a mail server accepts a  message and later decides that it can&#8217;t deliver the message, it is required to  send back a bounce email to the sender of the original message. These bounce  emails are often misdirected.</p>
<p>For many MTAs there are solutions, so here is my solution for exim:</p>
<p>Solution: This solution uses filtering to discard bounced back emails. So  your exim should have a central filter. Such filter can be configured in  exim.conf configuration file like this:</p>
<blockquote><p>system_filter = /etc/antivirus.exim</p></blockquote>
<p>Where antivirus.exim is the filter file, Format of this file described in  exim documentation:</p>
<p><a title="http://www.exim.org/exim-html-4.62/doc/html/filter.html" target="_blank" href="http://www.exim.org/exim-html-4.62/doc/html/filter.html"> http://www.exim.org/exim-html-4.62/doc/html/filter.html</a></p>
<p>Most CPanel boxes have this filter already set and working. Usually default  filter file has these lines at the beginning</p>
<blockquote><p>if not first_delivery<br />
then<br />
finish<br />
endif</p></blockquote>
<p>That means rest of the filter conditions will be ignored if that&#8217;s not the  first delivery. To make sure you should put the bounce filter <span style="font-weight: bold">before</span> those conditions or filter may  not work properly.</p>
<p>Now the bounce conditions itself. Here is the code:</p>
<blockquote><p>if $sender_address is &#8220;&#8221;<br />
then<br />
if ${lookup{${extract{2}{@}{$recipients}}}lsearch{/etc/localdomains}{yes}{no}}  	is &#8220;no&#8221;<br />
then<br />
fail text &#8220;Delayed bounce message ignored&#8221;<br />
seen finish<br />
endif<br />
endif</p></blockquote>
<p>This will discard any delayed bounce message. If you want to receive a copy  of the discarded message (just to make sure it works) use this code:</p>
<blockquote><p>if $sender_address is &#8220;&#8221;<br />
then<br />
if ${lookup{${extract{2}{@}{$recipients}}}lsearch{/etc/localdomains}{yes}{no}}  	is &#8220;no&#8221;<br />
then<br />
headers add &#8220;Old-Subject: $h_subject:&#8221;<br />
headers remove &#8220;Subject&#8221;<br />
headers add &#8220;Subject: [Delayed Bounce]$h_old-subject:&#8221;<br />
headers remove &#8220;Old-Subject&#8221;<br />
deliver &#8220;<a href="mailto:abuse@yourdomain.com">abuse@yourdomain.com</a>&#8221;<br />
fail text &#8220;Delayed bounce message ignored&#8221;<br />
seen finish<br />
endif<br />
endif</p></blockquote>
<p>Make sure to replace the abuse@yourdomain.com with your email address.<br />
Hope that helps someone.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.farhad.ca/2006/07/27/how-to-disable-delayed-bounce-back-messages-in-exim/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Dayana MySQL Databases Check</title>
		<link>http://www.farhad.ca/2006/02/02/dayana-mysql-databases-check/</link>
		<comments>http://www.farhad.ca/2006/02/02/dayana-mysql-databases-check/#comments</comments>
		<pubDate>Fri, 03 Feb 2006 05:09:54 +0000</pubDate>
		<dc:creator>Farhad Malekpour</dc:creator>
		
	<category>Scripts</category>
		<guid isPermaLink="false">http://www.farhad.ca/2006/02/02/dayana-mysql-databases-check/</guid>
		<description><![CDATA[This script will check all tables within all MySQL databases of a server.
Code written in Perl and can be executed at a root access shell with a command like this:
perl dysqlcheck.pl
No installation will be needed Just download to a folder and execute. You might need to change some configuration parameters at the beginning of the [...]]]></description>
			<content:encoded><![CDATA[<p>This script will check all tables within all MySQL databases of a server.</p>
<p>Code written in Perl and can be executed at a root access shell with a command like this:</p>
<blockquote><p>perl dysqlcheck.pl</p></blockquote>
<p>No installation will be needed Just download to a folder and execute. You might need to change some configuration parameters at the beginning of the script itself.</p>
<p><a id="more-25"></a></p>
<p><a title="Dayana MySQL Database Check" href="http://farhad.ca/file/dysqlcheck.pl_">Download Dayana MySQL Database Check v1.0</a><br />
Current version: 1.0<br />
<!--more--></p>
<p>If you wish to do that on a linux shell do:</p>
<blockquote><p>cd<br />
wget http://farhad.ca/file/dysqlcheck.pl_<br />
mv -f dysqlcheck.pl_ dysqlcheck.pl<br />
perl dysqlcheck.pl</p></blockquote>
<p>F.Malekpour
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.farhad.ca/2006/02/02/dayana-mysql-databases-check/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Affiliate System</title>
		<link>http://www.farhad.ca/2002/08/02/affiliate-system/</link>
		<comments>http://www.farhad.ca/2002/08/02/affiliate-system/#comments</comments>
		<pubDate>Fri, 02 Aug 2002 21:47:09 +0000</pubDate>
		<dc:creator>Farhad Malekpour</dc:creator>
		
	<category>Programming</category>
		<guid isPermaLink="false">http://www.farhad.ca/?p=21</guid>
		<description><![CDATA[Aug 2002
Dayana Networks
A fully automated system for those who want to earn money by referring others to Dayana Networks. Flexible commission and direct payment using PayPal. Use cookie for tracking sales and referrals. Use mySQL for database and Perl for code.

]]></description>
			<content:encoded><![CDATA[<p>Aug 2002<br />
Dayana Networks</p>
<p>A fully automated system for those who want to earn money by referring others to Dayana Networks. Flexible commission and direct payment using PayPal. Use cookie for tracking sales and referrals. Use mySQL for database and Perl for code.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.farhad.ca/2002/08/02/affiliate-system/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Multipart Account Activation System</title>
		<link>http://www.farhad.ca/2002/07/02/multipart-account-activation-system/</link>
		<comments>http://www.farhad.ca/2002/07/02/multipart-account-activation-system/#comments</comments>
		<pubDate>Tue, 02 Jul 2002 21:31:05 +0000</pubDate>
		<dc:creator>Farhad Malekpour</dc:creator>
		
	<category>Programming</category>
		<guid isPermaLink="false">http://www.farhad.ca/?p=20</guid>
		<description><![CDATA[Jul 2002
Dayana Networks
As a part of my new e-commerce web site this web-based application control user payments in a secure SSL tunnel, then open account for hosting instantly. I use Perl/PHP for programming and mySQL for databases. All parts of this application have been written on RedHat Linux 7.3.
This process use multi way payments, basically [...]]]></description>
			<content:encoded><![CDATA[<p>Jul 2002<br />
Dayana Networks</p>
<p>As a part of my new e-commerce web site this web-based application control user payments in a secure SSL tunnel, then open account for hosting instantly. I use Perl/PHP for programming and mySQL for databases. All parts of this application have been written on RedHat Linux 7.3.</p>
<p>This process use multi way payments, basically it has these abilities:</p>
<ol>
<li>Accept Direct Credit Card payment in a SSL environment.</li>
<li>Accept payments by PayPal.</li>
<li>Tracking user activities by assigning a 16 digit unique order number.</li>
<li>Accept 3 levels of accounts, Personal, Business and Reseller.</li>
<li>Daily sales values for administration uses.</li>
<li>Track refunds.</li>
<li>Fraud Protection System on Credit Card payments.</li>
<li>Customer Support Tracking System.</li>
<li>Report any illegal access to administrator email and cell-phone (text messaging)</li>
<li>Ability to open account on different Linux server.</li>
</ol>
]]></content:encoded>
			<wfw:commentRSS>http://www.farhad.ca/2002/07/02/multipart-account-activation-system/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Wireless Networks Solutions</title>
		<link>http://www.farhad.ca/2002/06/02/wireless-networks-solutions/</link>
		<comments>http://www.farhad.ca/2002/06/02/wireless-networks-solutions/#comments</comments>
		<pubDate>Sun, 02 Jun 2002 21:28:55 +0000</pubDate>
		<dc:creator>Farhad Malekpour</dc:creator>
		
	<category>Programming</category>
		<guid isPermaLink="false">http://www.farhad.ca/?p=19</guid>
		<description><![CDATA[Feb 2002 to Jun 2002
Parsian Networks
After using AVAYA, ORINOCO, Cisco and Lucent wireless solutions I prepared to start a new project for building some wireless devices, at the end of project these devices were ready to sell:

General Access Point (Prism + Linux Box) (save up to 90%)
AP + Bandwidth Manager
AP + Bridge
AP + Firewall
AP + [...]]]></description>
			<content:encoded><![CDATA[<p>Feb 2002 to Jun 2002<br />
Parsian Networks</p>
<p>After using AVAYA, ORINOCO, Cisco and Lucent wireless solutions I prepared to start a new project for building some wireless devices, at the end of project these devices were ready to sell:</p>
<ul>
<li>General Access Point (Prism + Linux Box) (save up to 90%)</li>
<li>AP + Bandwidth Manager</li>
<li>AP + Bridge</li>
<li>AP + Firewall</li>
<li>AP + BWM + Bridge + Firewall (save up to 95% on a $10,000 device!)</li>
</ul>
<p>And of course we soled more than 10 boxes of them.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.farhad.ca/2002/06/02/wireless-networks-solutions/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>FSG Telephony Server - Phone to Phone for private use</title>
		<link>http://www.farhad.ca/2002/02/02/fsg-telephony-server-phone-to-phone-for-private-use/</link>
		<comments>http://www.farhad.ca/2002/02/02/fsg-telephony-server-phone-to-phone-for-private-use/#comments</comments>
		<pubDate>Sat, 02 Feb 2002 21:28:06 +0000</pubDate>
		<dc:creator>Farhad Malekpour</dc:creator>
		
	<category>Programming</category>
		<guid isPermaLink="false">http://www.farhad.ca/?p=18</guid>
		<description><![CDATA[Apr, 2001 to Feb 2002
Parsian Networks
In this big project I wrote a server/client that work thru TCP/IP between two or more points. At the first phase I initialize this system from Iran to UAE, each part have 160 phone lines for both calling and answering. Also a base server controls the phone lines from a [...]]]></description>
			<content:encoded><![CDATA[<p>Apr, 2001 to Feb 2002<br />
Parsian Networks</p>
<p>In this big project I wrote a server/client that work thru TCP/IP between two or more points. At the first phase I initialize this system from Iran to UAE, each part have 160 phone lines for both calling and answering. Also a base server controls the phone lines from a high speed internet connection.  At this time my base server is located at Iran but I will change the location of the server to Canada or USA for better performance. In this server there is no limit on number of servers.<br />
Also I design all of its hardware parts and now it can be soled to anyone interested to be a gateway for us. Each box can handle 8 phone line and a price of 6000 USD.<br />
At this time this system required 8kb/s for each user but I&#8217;m in research to reach a lower bandwidth about 2.3kb/s for each user. The main idea is now complete but it takes 20 percent of an Intel Pentium III 600 CPU time for each user and it&#8217;s too high. I should resolve this problem and produce a new version of my server.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.farhad.ca/2002/02/02/fsg-telephony-server-phone-to-phone-for-private-use/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>FSG Telephony Server - Phone to Phone in long distance - gateway</title>
		<link>http://www.farhad.ca/2001/03/02/fsg-telephony-server-phone-to-phone-in-long-distance-gateway/</link>
		<comments>http://www.farhad.ca/2001/03/02/fsg-telephony-server-phone-to-phone-in-long-distance-gateway/#comments</comments>
		<pubDate>Fri, 02 Mar 2001 21:27:27 +0000</pubDate>
		<dc:creator>Farhad Malekpour</dc:creator>
		
	<category>Programming</category>
		<guid isPermaLink="false">http://www.farhad.ca/?p=17</guid>
		<description><![CDATA[Mar, 2001
Parsian Networks
This server can worked under WinNT4.0 or Win2K and can answer the call, then take user pid and a password from caller, then it can gave him/her a free line for connecting. At this time (25/5/2001) it uses Go2Call service for its long distance. I use my own Language and Interpreter for this [...]]]></description>
			<content:encoded><![CDATA[<p>Mar, 2001<br />
Parsian Networks</p>
<p>This server can worked under WinNT4.0 or Win2K and can answer the call, then take user pid and a password from caller, then it can gave him/her a free line for connecting. At this time (25/5/2001) it uses Go2Call service for its long distance. I use my own Language and Interpreter for this server.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.farhad.ca/2001/03/02/fsg-telephony-server-phone-to-phone-in-long-distance-gateway/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>FSG Telephony Server (VOIP) - Language and Interpreter</title>
		<link>http://www.farhad.ca/2001/02/02/fsg-telephony-server-voip-language-and-interpreter/</link>
		<comments>http://www.farhad.ca/2001/02/02/fsg-telephony-server-voip-language-and-interpreter/#comments</comments>
		<pubDate>Fri, 02 Feb 2001 21:26:45 +0000</pubDate>
		<dc:creator>Farhad Malekpour</dc:creator>
		
	<category>Programming</category>
		<guid isPermaLink="false">http://www.farhad.ca/?p=16</guid>
		<description><![CDATA[Feb, 2001
Parsian Networks
This language is designed be myself. Also an interpreter is designed. The main reason for this Object Oriented language is to controlling modems and does what ever I need to do with them generally in voice mode. With this language any one can design and developed many useful modem voice based applications like [...]]]></description>
			<content:encoded><![CDATA[<p>Feb, 2001<br />
Parsian Networks</p>
<p>This language is designed be myself. Also an interpreter is designed. The main reason for this Object Oriented language is to controlling modems and does what ever I need to do with them generally in voice mode. With this language any one can design and developed many useful modem voice based applications like an Answering Machine. This is an Object Oriented language and its ready now for using by any one and of coerce first of all is me!
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.farhad.ca/2001/02/02/fsg-telephony-server-voip-language-and-interpreter/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>ICQ Bomb</title>
		<link>http://www.farhad.ca/2000/11/15/icq-bomb/</link>
		<comments>http://www.farhad.ca/2000/11/15/icq-bomb/#comments</comments>
		<pubDate>Wed, 15 Nov 2000 22:25:44 +0000</pubDate>
		<dc:creator>Farhad Malekpour</dc:creator>
		
	<category>Programming</category>
		<guid isPermaLink="false">http://www.farhad.ca/?p=15</guid>
		<description><![CDATA[Nov, 2000
Parsian Networks
This tiny software can send a message to a couple of ICQ members. Generally this tool is useful for advertisement, but I think it&#8217;s not legal, so this program has never published and I wrote it only for testing.

]]></description>
			<content:encoded><![CDATA[<p>Nov, 2000<br />
Parsian Networks</p>
<p>This tiny software can send a message to a couple of ICQ members. Generally this tool is useful for advertisement, but I think it&#8217;s not legal, so this program has never published and I wrote it only for testing.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.farhad.ca/2000/11/15/icq-bomb/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Web based Accounting</title>
		<link>http://www.farhad.ca/2000/11/02/web-based-accounting/</link>
		<comments>http://www.farhad.ca/2000/11/02/web-based-accounting/#comments</comments>
		<pubDate>Thu, 02 Nov 2000 21:25:09 +0000</pubDate>
		<dc:creator>Farhad Malekpour</dc:creator>
		
	<category>Programming</category>
		<guid isPermaLink="false">http://www.farhad.ca/?p=14</guid>
		<description><![CDATA[Nov, 2000
Parsian Networks
This web based application can do all of our office needs in accounting for them. Has two part, first part is an http server that serve up to 1024 clients at a time and second part is an accounting software using Borland Database Engine.

]]></description>
			<content:encoded><![CDATA[<p>Nov, 2000<br />
Parsian Networks</p>
<p>This web based application can do all of our office needs in accounting for them. Has two part, first part is an http server that serve up to 1024 clients at a time and second part is an accounting software using Borland Database Engine.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.farhad.ca/2000/11/02/web-based-accounting/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
