﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>SUF's Blog</title>
    <description>SUF's English Language Blog.
I'm trying to write in English but I can't</description>
    <link>http://www.clamagent.org/Blog/tabid/118/BlogId/4/Default.aspx</link>
    <language>en-US</language>
    <managingEditor>suf@freemail.hu</managingEditor>
    <webMaster>suf@freemail.hu</webMaster>
    <pubDate>Wed, 10 Mar 2010 22:29:37 GMT</pubDate>
    <lastBuildDate>Wed, 10 Mar 2010 22:29:37 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.5.1.19887</generator>
    <item>
      <title>Get Transport Rules into work to stop SPAM</title>
      <description>&lt;p&gt;A few days ago I've got a question:&lt;/p&gt;
&lt;p&gt;How can I block the messages with empty from address in the Exchange 2007.&lt;/p&gt;
&lt;p&gt;The trivial answer is:&lt;/p&gt;
&lt;p&gt;By using the Sender Filter Agent on the Edge Transport can block the empty senders.&lt;/p&gt;
&lt;p&gt;But...&lt;/p&gt;
&lt;p&gt;Stop here for a moment. It will block the messages with empty address in the MAIL FROM: smtp command. What will happen with the messages what has no From: address in the message header. The Sender Filter will not even know about these messages because it just examines the smtp communication not the message contents.&lt;/p&gt;
&lt;p&gt;The solution:&lt;/p&gt;
&lt;p&gt;We are able to write a Transport Rule (running on the Edge or the Hub Transport) what able to block such message:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: smaller"&gt;&lt;span style="font-family: Courier New"&gt;$Condition = Get-TransportRulePredicate FromScope &lt;br /&gt;
$Condition.Scope = 'NotInOrganization'&lt;br /&gt;
$Exception = Get-TransportRulePredicate FromAddressMatches&lt;br /&gt;
$Exception.Patterns = @("@")&lt;br /&gt;
$Action = Get-TransportRuleAction DeleteMessage&lt;br /&gt;
New-TransportRule -Name "Remove message with empty from address" -Conditions $Condition -Exception $Exception -Actions $Action &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You may realize that I used a single @ to determine the empty sender. You can change it to real e-mail regex pattern if you want to validate the e-mail address format. In that case all messages with not valid format sender will be dropped.&lt;/p&gt;</description>
      <link>http://www.clamagent.org/Blog/tabid/118/EntryId/258/Get-Transport-Rules-into-work-to-stop-SPAM.aspx</link>
      <author>suf@freemail.hu</author>
      <comments>http://www.clamagent.org/Blog/tabid/118/EntryId/258/Get-Transport-Rules-into-work-to-stop-SPAM.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.clamagent.org/Blog/tabid/118/EntryId/258/Get-Transport-Rules-into-work-to-stop-SPAM.aspx</guid>
      <pubDate>Mon, 11 May 2009 14:10:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.clamagent.org/DesktopModules/Blog/Trackback.aspx?id=258</trackback:ping>
    </item>
    <item>
      <title>MVP</title>
      <description>&lt;p&gt;I just got the news. I was not reelected as MVP so removed the MVP logo from the site.&lt;/p&gt;</description>
      <link>http://www.clamagent.org/Blog/tabid/118/EntryId/56/MVP.aspx</link>
      <author>suf@freemail.hu</author>
      <comments>http://www.clamagent.org/Blog/tabid/118/EntryId/56/MVP.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.clamagent.org/Blog/tabid/118/EntryId/56/MVP.aspx</guid>
      <pubDate>Mon, 30 Mar 2009 11:41:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.clamagent.org/DesktopModules/Blog/Trackback.aspx?id=56</trackback:ping>
    </item>
    <item>
      <title>DistList new build</title>
      <description>&lt;p&gt;I've made a slight modification in the handling of the subject tagging. The new version (DistList v1.2b5 &amp; DistList 2007 v2.1b4) allows to switch on and off the subject tagging on the distribution groups individually.&lt;/p&gt;
&lt;p&gt;Download links:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.clamagent.org/Default.aspx?tabid=115&amp;id=38"&gt;DistList (Exchange 2003 version)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.clamagent.org/Default.aspx?tabid=115&amp;id=39"&gt;DistList 2007 (Exchange 2007 version)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.clamagent.org/Default.aspx?tabid=115&amp;id=41"&gt;Documentation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.clamagent.org/Default.aspx?tabid=115&amp;id=40"&gt;Source code&lt;/a&gt;&lt;/p&gt;</description>
      <link>http://www.clamagent.org/Blog/tabid/118/EntryId/43/DistList-new-build.aspx</link>
      <author>suf@freemail.hu</author>
      <comments>http://www.clamagent.org/Blog/tabid/118/EntryId/43/DistList-new-build.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.clamagent.org/Blog/tabid/118/EntryId/43/DistList-new-build.aspx</guid>
      <pubDate>Wed, 18 Feb 2009 13:13:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.clamagent.org/DesktopModules/Blog/Trackback.aspx?id=43</trackback:ping>
    </item>
    <item>
      <title>DistList &amp; DistList 2007</title>
      <description>&lt;p&gt;Two years ago I was writing an Exchange 2003 SMTP Sink and an Exchange 2007 Transport Agent what able to switch an Exchange distribution list to a mailing list. This software was never published before because I'd no time to clean up the code and write proper documentation to it.&lt;/p&gt;
&lt;p&gt;Now I'd time to finish this work so here thay are:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.clamagent.org/Default.aspx?tabid=115&amp;id=38"&gt;DistList (Exchange 2003 version)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.clamagent.org/Default.aspx?tabid=115&amp;id=39"&gt;DistList 2007 (Exchange 2007 version)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.clamagent.org/Default.aspx?tabid=115&amp;id=41"&gt;Documentation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.clamagent.org/Default.aspx?tabid=115&amp;id=40"&gt;Source code&lt;/a&gt;&lt;/p&gt;</description>
      <link>http://www.clamagent.org/Blog/tabid/118/EntryId/39/DistList-DistList-2007.aspx</link>
      <author>suf@freemail.hu</author>
      <comments>http://www.clamagent.org/Blog/tabid/118/EntryId/39/DistList-DistList-2007.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.clamagent.org/Blog/tabid/118/EntryId/39/DistList-DistList-2007.aspx</guid>
      <pubDate>Fri, 06 Feb 2009 11:02:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.clamagent.org/DesktopModules/Blog/Trackback.aspx?id=39</trackback:ping>
    </item>
    <item>
      <title>ClamAgent - Plans 2.</title>
      <description>&lt;p&gt;I've got few comments, responses on the first release (to be exact, two comments). The first was asking for the Exchange 2003/IIS SMTP version, the second realized some configuration issues where the agent continuously throwing exceptions...&lt;/p&gt;&lt;a href=http://www.clamagent.org/Default.aspx?tabid=118&amp;EntryID=9&gt;More...&lt;/a&gt;</description>
      <link>http://www.clamagent.org/Default.aspx?tabid=118&amp;EntryID=9</link>
      <category domain="http://www.clamagent.org/blog/tabid/118/blogid/5/default.aspx">ClamAgent</category>
      <author>suf@freemail.hu</author>
      <comments>http://www.clamagent.org/Default.aspx?tabid=118&amp;EntryID=9#Comments</comments>
      <guid isPermaLink="true">http://www.clamagent.org/Default.aspx?tabid=118&amp;EntryID=9</guid>
      <pubDate>Fri, 12 Dec 2008 06:36:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.clamagent.org/DesktopModules/Blog/Trackback.aspx?id=9</trackback:ping>
    </item>
    <item>
      <title>ClamAgent - Plans</title>
      <description>&lt;p&gt;What will be the future of the ClamAgent&lt;/p&gt;&lt;a href=http://www.clamagent.org/Default.aspx?tabid=118&amp;EntryID=6&gt;More...&lt;/a&gt;</description>
      <link>http://www.clamagent.org/Default.aspx?tabid=118&amp;EntryID=6</link>
      <category domain="http://www.clamagent.org/blog/tabid/118/blogid/5/default.aspx">ClamAgent</category>
      <author>suf@freemail.hu</author>
      <comments>http://www.clamagent.org/Default.aspx?tabid=118&amp;EntryID=6#Comments</comments>
      <guid isPermaLink="true">http://www.clamagent.org/Default.aspx?tabid=118&amp;EntryID=6</guid>
      <pubDate>Thu, 04 Dec 2008 09:09:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.clamagent.org/DesktopModules/Blog/Trackback.aspx?id=6</trackback:ping>
    </item>
    <item>
      <title>First English blog entry</title>
      <description>&lt;p&gt;Wellcome to my English blog...&lt;/p&gt;&lt;a href=http://www.clamagent.org/Default.aspx?tabid=118&amp;EntryID=5&gt;More...&lt;/a&gt;</description>
      <link>http://www.clamagent.org/Default.aspx?tabid=118&amp;EntryID=5</link>
      <author>suf@freemail.hu</author>
      <comments>http://www.clamagent.org/Default.aspx?tabid=118&amp;EntryID=5#Comments</comments>
      <guid isPermaLink="true">http://www.clamagent.org/Default.aspx?tabid=118&amp;EntryID=5</guid>
      <pubDate>Thu, 04 Dec 2008 08:56:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.clamagent.org/DesktopModules/Blog/Trackback.aspx?id=5</trackback:ping>
    </item>
    <item>
      <title>Alias and Autoforward handling for Windows Server 2003 POP3 Service</title>
      <description>&lt;p&gt;&lt;em&gt;&lt;span lang="en-us"&gt;[04/03/2009] This article was written long time ago (as you see in the date) to my original web site &lt;/span&gt;&lt;/em&gt;&lt;span lang="en-us"&gt;&lt;a href="http://www.gomori.hu"&gt;&lt;em&gt;http://www.gomori.hu&lt;/em&gt;&lt;/a&gt;&lt;/span&gt;&lt;em&gt;&lt;span lang="en-us"&gt;. Because I will use this site further for family purposes only I'm migrating the IT related articles out.&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en-us"&gt;I tried to deploy Microsoft Windows Server 2003 POP3 Service, but I've realized lack of two important (at least it important to me) features. These are the Autoforward and the mail Alias (the ability to add more than one e-mail address to a single mailbox). Because I needed these functions for the deployment I wrote a script witch add them to the POP3/SMTP service.&lt;br /&gt;
I implemented the functions as SMTP Event Sink in JScript.&lt;br /&gt;
It uses an Access database (Microsoft Jet engine) to store the data required for the implementation. The database has two tables:&lt;br /&gt;
&lt;b&gt;Alias Table:&lt;/b&gt; &lt;/span&gt;
&lt;table border="1" cellspacing="0" bordercolor="#000000" cellpadding="2" bgcolor="#ffffbf"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;th width="120"&gt;&lt;span lang="en-us"&gt;Column&lt;/span&gt;&lt;/th&gt;
            &lt;th&gt;&lt;span lang="en-us"&gt;Data&lt;/span&gt;&lt;/th&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;ID&lt;/span&gt;&lt;/td&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;An autoincrement id field. Not used in this implementation.&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;Alias&lt;/span&gt;&lt;/td&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;The alias address.&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;Mail&lt;/span&gt;&lt;/td&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;The original mail address.&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;span lang="en-us"&gt;&lt;b&gt;Forward Table:&lt;/b&gt; &lt;/span&gt;
&lt;table border="1" cellspacing="0" bordercolor="#000000" cellpadding="2" bgcolor="#ffffbf"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;th width="120"&gt;&lt;span lang="en-us"&gt;Column&lt;/span&gt;&lt;/th&gt;
            &lt;th&gt;&lt;span lang="en-us"&gt;Data&lt;/span&gt;&lt;/th&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;ID&lt;/span&gt;&lt;/td&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;An autoincrement id field. Not used in this implementation.&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;Mail&lt;/span&gt;&lt;/td&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;The original mail address.&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;Forward&lt;/span&gt;&lt;/td&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;Forward address(es). Multiple addresses allowed&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;KeepOriginal&lt;/span&gt;&lt;/td&gt;
            &lt;td&gt;&lt;span lang="en-us"&gt;Determine if the mail have to delivered to the original mailbox or not.&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;span lang="en-us"&gt;All e-mail fields need to be in SMTP:&lt;i&gt;name&lt;/i&gt;@&lt;i&gt;domain&lt;/i&gt; format. Where multiple addresses allowed, it must be separated with semicolon.&lt;br /&gt;
In the script code you must change the the &lt;i&gt;DBfile&lt;/i&gt; variable's value to the full path name to the location of the database file used.&lt;br /&gt;
&lt;b&gt;Registration:&lt;/b&gt; The registration procedure involve the same procedure as any other SMTP OnArrival Event Sink. The exact commands looks like the following:&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-size: smaller"&gt;&lt;span style="font-family: Courier New"&gt;cscript smtpreg.vbs /add 1 OnArrival
	Pop3Helper CDO.SS_SMTPOnArrivalSink "mail from=*"
cscript smtpreg.vbs /setprop 1 OnArrival
	Pop3Helper Sink ScriptName "c:\Scripts\SMTP\pop3.js"&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span lang="en-us"&gt;Fortunately with this solution you don't need to create a second SMTP Virtual Server and route all messages thru it because the message is always in MIME format witch means no MAPI/MIME conversion involved.&lt;br /&gt;
Finally here is the script code can be downloaded &lt;a href="http://www.clamagent.org/Default.aspx?tabid=115&amp;id=42"&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;</description>
      <link>http://www.clamagent.org/Blog/tabid/118/EntryId/58/Alias-and-Autoforward-handling-for-Windows-Server-2003-POP3-Service.aspx</link>
      <author>suf@freemail.hu</author>
      <comments>http://www.clamagent.org/Blog/tabid/118/EntryId/58/Alias-and-Autoforward-handling-for-Windows-Server-2003-POP3-Service.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.clamagent.org/Blog/tabid/118/EntryId/58/Alias-and-Autoforward-handling-for-Windows-Server-2003-POP3-Service.aspx</guid>
      <pubDate>Sun, 28 Aug 2005 23:00:00 GMT</pubDate>
      <slash:comments>1</slash:comments>
      <trackback:ping>http://www.clamagent.org/DesktopModules/Blog/Trackback.aspx?id=58</trackback:ping>
    </item>
  </channel>
</rss>