<?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/"
	>

<channel>
	<title>Endersys Blog &#187; English</title>
	<atom:link href="http://blog.endersys.com/tag/english/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.endersys.com</link>
	<description>Üst Düzey Çözümler</description>
	<lastBuildDate>Sun, 05 Sep 2010 20:49:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>qmail multilog localtime patch for daemontools-0.76</title>
		<link>http://blog.endersys.com/2009/12/qmail-multilog-localtime-patch-for-daemontools-0-76/</link>
		<comments>http://blog.endersys.com/2009/12/qmail-multilog-localtime-patch-for-daemontools-0-76/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 01:09:35 +0000</pubDate>
		<dc:creator>ismail.yenigul</dc:creator>
				<category><![CDATA[AR-GE]]></category>
		<category><![CDATA[Yazılım]]></category>
		<category><![CDATA[daemontools]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">http://blog.endersys.com/?p=444</guid>
		<description><![CDATA[For performance issue multilog binary in daemontools logs in TAI format like following: @400000004a9b768834d8118c status: local 0/500 remote 4/299 You have to pipe output to tai64nlocal binary to see date in human readable format.  This is being annoying while searching in log files. We created a small patch to enable human readable logging in multilog [...]


Related posts:<ol><li><a href='http://blog.endersys.com/2009/12/qmail-from-address-and-smtp-auth-username-check-patch/' rel='bookmark' title='Permanent Link: qmail from address and SMTP-AUTH username check patch'>qmail from address and SMTP-AUTH username check patch</a></li>
<li><a href='http://blog.endersys.com/2009/12/qmail-canonicalised-recipient-logging-and-more-patch/' rel='bookmark' title='Permanent Link: qmail canonicalised recipient logging and more patch'>qmail canonicalised recipient logging and more patch</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>For performance issue multilog binary in daemontools logs in TAI format like following:</p>
<p><strong>@400000004a9b768834d8118c status: local 0/500 remote 4/299</strong></p>
<p>You have to pipe output to tai64nlocal binary to see date in human readable format.  This is being annoying while searching in log files.</p>
<p>We created a small patch to enable human readable logging in multilog via localtime function. The new log lines will look like following:</p>
<p><strong>Sat Dec 19 03:02:51 2009  status: local 0/500 remote 0/299</strong></p>
<p>I belive that some people will not like this idea.  We found it useful and wanted to share with open source community.</p>
<p>The patch is located at <a href="http://files.endersys.com/patches/daemontools-0.76-localtime.patch" target="_blank">http://files.endersys.com/patches/daemontools-0.76-localtime.patch</a></p>
<pre class="brush: diff;">

diff -ruN daemontools-0.76.orig/src/multilog.c daemontools-0.76/src/multilog.c
--- daemontools-0.76.orig/src/multilog.c        2001-07-12 19:49:49.000000000 +0300
+++ daemontools-0.76/src/multilog.c     2009-12-19 02:52:09.000000000 +0200
@@ -514,7 +514,8 @@
 }
 if (!linelen)
 if (flagtimestamp) {
-          timestamp(line);
+          /* timestamp(line); */
+          timestamplocal(line);
 line[25] = ' ';
 linelen = 26;
 }
diff -ruN daemontools-0.76.orig/src/timestamp.c daemontools-0.76/src/timestamp.c
--- daemontools-0.76.orig/src/timestamp.c       2001-07-12 19:49:49.000000000 +0300
+++ daemontools-0.76/src/timestamp.c    2009-12-19 02:53:02.000000000 +0200
@@ -1,7 +1,13 @@
+#include &lt;sys/types.h&gt;
+#include &lt;time.h&gt;
+#include &lt;sys/time.h&gt;
+#include &lt;unistd.h&gt;
 #include &quot;taia.h&quot;
 #include &quot;timestamp.h&quot;

 static char hex[16] = &quot;0123456789abcdef&quot;;
+time_t lt;
+struct tm *t;

 void timestamp(char s[TIMESTAMP])
 {
@@ -18,3 +24,11 @@
 s[i * 2 + 2] = hex[nowpack[i] &amp; 15];
 }
 }
+
+void timestamplocal(char s[TIMESTAMP])
+{
+      lt = time(NULL);
+      t = localtime(&amp;lt);
+      asctime_r(t, s);
+      s[24] = ' ';
+}
diff -ruN daemontools-0.76.orig/src/timestamp.h daemontools-0.76/src/timestamp.h
--- daemontools-0.76.orig/src/timestamp.h       2001-07-12 19:49:49.000000000 +0300
+++ daemontools-0.76/src/timestamp.h    2009-12-19 02:52:17.000000000 +0200
@@ -4,5 +4,6 @@
 #define TIMESTAMP 25

 extern void timestamp(char *);
+extern void timestamplocal(char *);

 #endif
</pre>


<p>Related posts:<ol><li><a href='http://blog.endersys.com/2009/12/qmail-from-address-and-smtp-auth-username-check-patch/' rel='bookmark' title='Permanent Link: qmail from address and SMTP-AUTH username check patch'>qmail from address and SMTP-AUTH username check patch</a></li>
<li><a href='http://blog.endersys.com/2009/12/qmail-canonicalised-recipient-logging-and-more-patch/' rel='bookmark' title='Permanent Link: qmail canonicalised recipient logging and more patch'>qmail canonicalised recipient logging and more patch</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.endersys.com/2009/12/qmail-multilog-localtime-patch-for-daemontools-0-76/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Endersys to attend ISS World in Dubai</title>
		<link>http://blog.endersys.com/2009/12/endersys-will-attent-to-iss-world-in-dubai/</link>
		<comments>http://blog.endersys.com/2009/12/endersys-will-attent-to-iss-world-in-dubai/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 19:37:14 +0000</pubDate>
		<dc:creator>ismail.yenigul</dc:creator>
				<category><![CDATA[AR-GE]]></category>
		<category><![CDATA[Duyuru]]></category>
		<category><![CDATA[Güvenlik]]></category>
		<category><![CDATA[VoIP]]></category>
		<category><![CDATA[Yazılım]]></category>
		<category><![CDATA[Electronic Investigations]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[ISS World MEA]]></category>
		<category><![CDATA[lawful interception]]></category>
		<category><![CDATA[Network Intelligence]]></category>
		<category><![CDATA[Telecom]]></category>

		<guid isPermaLink="false">http://blog.endersys.com/?p=430</guid>
		<description><![CDATA[Murat BALABAN, our Director of R&#38;D Division,  will give a talk entitled &#8220;Network Level VoIP Interception with Voitap(tm)&#8221; at ISS World Middle East, on February 24, 2010 at 9:00-9:30 in Dubai. The talk will be about voitap(tm), Endersys&#8217; approach to VoIP LI at the network level, discussing the pros and cons of the network and [...]


Related posts:<ol><li><a href='http://blog.endersys.com/2010/04/voip-projemizde-teydeb-2-donem-tamamlandi/' rel='bookmark' title='Permanent Link: VoIP analizi projemizde TEYDEB 2. dönem tamamlandı'>VoIP analizi projemizde TEYDEB 2. dönem tamamlandı</a></li>
<li><a href='http://blog.endersys.com/2009/04/endersys%e2%80%99e-tubitak-teydeb-destegi/' rel='bookmark' title='Permanent Link: Endersys’e TÜBİTAK TEYDEB Desteği'>Endersys’e TÜBİTAK TEYDEB Desteği</a></li>
<li><a href='http://blog.endersys.com/2010/01/icaptm-packet-capture-engine-reaches-zero-packet-loss-at-satured-1-gbps/' rel='bookmark' title='Permanent Link: icap(tm) packet capture engine reaches zero packet loss at satured 1 Gbps'>icap(tm) packet capture engine reaches zero packet loss at satured 1 Gbps</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Murat BALABAN, our Director of R&amp;D Division,  will give a talk entitled &#8220;<strong>Network Level VoIP Interception with Voitap(tm)</strong>&#8221; at ISS World Middle East, on February 24, 2010 at 9:00-9:30 in Dubai.</p>
<p>The talk will be about <strong>voitap(tm)</strong>, Endersys&#8217; approach to VoIP LI at the network level, discussing the pros and cons of the network and service level interception as well as how voitap(tm) fits in the overall LI infrastructure of an institution to do the VoIP LI.</p>
<p><strong><a href="http://www.issworldtraining.com/ISS_MEA/" target="_blank">ISS World MEA</a></strong> is the world&#8217;s largest gathering of Middle East and African Law Enforcement, Intelligence and Homeland Security Analysts and Telecom Operators responsible for Lawful Interception, Electronic Investigations and Network Intelligence gathering. ISS World Programs present the methodologies and tools to bridge the chasms from lawful intercept data gathering to information creation to investigator knowledge to actionable intelligence.</p>
<p><img class="alignleft size-full wp-image-433" title="issworld" src="http://blog.endersys.com/wp-content/uploads/2009/12/issworld1.png" alt="issworld" width="496" height="197" /></p>


<p>Related posts:<ol><li><a href='http://blog.endersys.com/2010/04/voip-projemizde-teydeb-2-donem-tamamlandi/' rel='bookmark' title='Permanent Link: VoIP analizi projemizde TEYDEB 2. dönem tamamlandı'>VoIP analizi projemizde TEYDEB 2. dönem tamamlandı</a></li>
<li><a href='http://blog.endersys.com/2009/04/endersys%e2%80%99e-tubitak-teydeb-destegi/' rel='bookmark' title='Permanent Link: Endersys’e TÜBİTAK TEYDEB Desteği'>Endersys’e TÜBİTAK TEYDEB Desteği</a></li>
<li><a href='http://blog.endersys.com/2010/01/icaptm-packet-capture-engine-reaches-zero-packet-loss-at-satured-1-gbps/' rel='bookmark' title='Permanent Link: icap(tm) packet capture engine reaches zero packet loss at satured 1 Gbps'>icap(tm) packet capture engine reaches zero packet loss at satured 1 Gbps</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.endersys.com/2009/12/endersys-will-attent-to-iss-world-in-dubai/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>qmail from address and SMTP-AUTH username check patch</title>
		<link>http://blog.endersys.com/2009/12/qmail-from-address-and-smtp-auth-username-check-patch/</link>
		<comments>http://blog.endersys.com/2009/12/qmail-from-address-and-smtp-auth-username-check-patch/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 22:40:09 +0000</pubDate>
		<dc:creator>ismail.yenigul</dc:creator>
				<category><![CDATA[Duyuru]]></category>
		<category><![CDATA[E-mail]]></category>
		<category><![CDATA[Yazılım]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[qmail]]></category>
		<category><![CDATA[smtp auth]]></category>
		<category><![CDATA[vpopmail]]></category>

		<guid isPermaLink="false">http://blog.endersys.com/?p=414</guid>
		<description><![CDATA[qmail SMTP-AUTH control mechanism is very good way to stop spams and give flexibility user to send email from anywere in the world. But current SMTP-AUTH patches do not check whether from address and SMTP-AUTH username is same. The following patch will simply reject the mail if the SMTP-AUTH username does not match with the [...]


Related posts:<ol><li><a href='http://blog.endersys.com/2009/12/qmail-canonicalised-recipient-logging-and-more-patch/' rel='bookmark' title='Permanent Link: qmail canonicalised recipient logging and more patch'>qmail canonicalised recipient logging and more patch</a></li>
<li><a href='http://blog.endersys.com/2009/09/qmailde-hotmailden-mail-alamama-sorunu/' rel='bookmark' title='Permanent Link: qmail&#8217;de Hotmail&#8217;den mail alamama sorunu'>qmail&#8217;de Hotmail&#8217;den mail alamama sorunu</a></li>
<li><a href='http://blog.endersys.com/2009/12/qmail-multilog-localtime-patch-for-daemontools-0-76/' rel='bookmark' title='Permanent Link: qmail multilog localtime patch for daemontools-0.76'>qmail multilog localtime patch for daemontools-0.76</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>qmail SMTP-AUTH control mechanism is very good way to stop spams and give flexibility user to send email from anywere in the world. But current SMTP-AUTH patches do not check whether from address and SMTP-AUTH username is same.</p>
<p>The following patch will simply reject the mail if the SMTP-AUTH username does not match with the from address.<br />
To be enable use this patch SMTP-AUTH username must be in email address format (user@domain.com). This can be<br />
possible only in qmail+vpopmail  or qmail-ldap (if the uid is in email address format) installation.</p>
<p>This patch is based on <a href="http://qmail.org/netqmail/" target="_blank">netqmail-1.06</a> and Erwin Hoffmann&#8217;s <a href="http://www.fehcom.de/qmail/smtpauth.html##PATCHES" target="_blank">qmail-authentication-0.68 patch</a>. But I believe that you can simply integrate your qmail source.</p>
<p>PS:  qmail-remote-logging.patch and qmail-smtp-auth-fromcheck.patch are integrated into JMS1 combined patch and Shupp Toaster patch.</p>
<p>URLs:</p>
<p><a href="http://files.endersys.com/patches/qmail-1.03-jms1.7.08_endersys.patch" target="_blank">http://files.endersys.com/patches/qmail-1.03-jms1.7.08_endersys.patch</a></p>
<p><a href="http://files.endersys.com/patches/qmail-toaster-0.9.1_endersys.patch" target="_blank">http://files.endersys.com/patches/qmail-toaster-0.9.1_endersys.patch</a></p>
<p><strong>INSTALLATION and CONFIGURATION</strong></p>
<p>1.  Stop qmail<br />
2. Apply this patch to your qmail toaster and compile it (don&#8217;t install!)<br />
3. Take backup of your qmail-smtpd binary and override new qmail-smtpd binary<br />
4. Create control/checksenderauth to enable this control<br />
5. Start qmail</p>
<p>You can get the patch from <a href="http://files.endersys.com/patches/qmail-smtp-auth-fromcheck.patch" target="_blank">here</a></p>
<pre class="brush: diff;">

--- qmail-smtpd.c.orig  2009-12-16 00:09:42.000000000 +0200
+++ qmail-smtpd.c       2009-12-16 00:20:34.000000000 +0200
@@ -1,3 +1,4 @@
+#include &lt;sys/stat.h&gt;
#include &quot;sig.h&quot;
#include &quot;readwrite.h&quot;
#include &quot;stralloc.h&quot;
@@ -346,6 +347,7 @@
out(&quot;250 ok\r\n&quot;);
}
void smtp_rcpt(arg) char *arg; {
+struct stat st;
if (!seenmail) { err_wantmail(); return; }
if (!addrparse(arg)) { err_syntax(); return; }
if (flagbarf) { err_bmf(); return; }
@@ -356,6 +358,22 @@
}
else
if (!addrallowed()) { err_nogateway(); return; }
+/* This small patch compare mail from value and smtp auth username.
+* if they are not identical,  the mail will not be relayed!
+* This control will be ignored, if the remote IP is defined in tcp.smtp.cdb
+* create/delete control/checksenderauth file to enable/disable this feature
+*  - Developed by Endersys Ltd R&amp;D Team - http://www.endersys.com
+*/
+  if ((stat(&quot;control/checksenderauth&quot;,&amp;st) == 0) &amp;&amp; (remoteinfo)) {
+
+ /* remoteinfo:username issued during the smtp auth state
+ *   mailfrom.s: From value issued at mail from: state */
+        if (str_diff(remoteinfo, mailfrom.s))  {
+               out(&quot;535 Mail From address and SMTP-AUTH username does not match (#5.7.1)\r\n&quot;);
+                       return;
+       }
+ }
+
</pre>


<p>Related posts:<ol><li><a href='http://blog.endersys.com/2009/12/qmail-canonicalised-recipient-logging-and-more-patch/' rel='bookmark' title='Permanent Link: qmail canonicalised recipient logging and more patch'>qmail canonicalised recipient logging and more patch</a></li>
<li><a href='http://blog.endersys.com/2009/09/qmailde-hotmailden-mail-alamama-sorunu/' rel='bookmark' title='Permanent Link: qmail&#8217;de Hotmail&#8217;den mail alamama sorunu'>qmail&#8217;de Hotmail&#8217;den mail alamama sorunu</a></li>
<li><a href='http://blog.endersys.com/2009/12/qmail-multilog-localtime-patch-for-daemontools-0-76/' rel='bookmark' title='Permanent Link: qmail multilog localtime patch for daemontools-0.76'>qmail multilog localtime patch for daemontools-0.76</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.endersys.com/2009/12/qmail-from-address-and-smtp-auth-username-check-patch/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
