<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Regex string for SMTP command in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/regex-string-for-smtp-command/m-p/614852#M87650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean you're looking for the SMTP "mail from:" command following by empty brackets?  That's close but not quite right.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Mm][Aa][Ii][Ll][ \t]*[Ff][Rr][Oo][Mm][:][ \t]*[&amp;lt;][&amp;gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe different mail servers allow different behavior, so you might be able to get rid of the "[ \t]*" sections if you know how your mail server behaves.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jan 2007 19:57:28 GMT</pubDate>
    <dc:creator>mhellman</dc:creator>
    <dc:date>2007-01-31T19:57:28Z</dc:date>
    <item>
      <title>Regex string for SMTP command</title>
      <link>https://community.cisco.com/t5/network-security/regex-string-for-smtp-command/m-p/614849#M87645</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a signature to look for SMTP "command mail from:&amp;lt;&amp;gt;".  Is  this the right regex statement to look for this traffic?&lt;/P&gt;&lt;P&gt;[Mm][Aa][Ii][Ll] [Ff][Rr][Oo][Mm][:][&amp;lt;&amp;gt;]&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 10:26:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-string-for-smtp-command/m-p/614849#M87645</guid>
      <dc:creator>rrutledge</dc:creator>
      <dc:date>2019-03-10T10:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regex string for SMTP command</title>
      <link>https://community.cisco.com/t5/network-security/regex-string-for-smtp-command/m-p/614850#M87647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually use the hex equivalent of the space, but that's just personal preference as it makes it easier to read to me (and i don't inadvertently add random spaces where I don't want them).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Mm][Aa][Ii][Ll]\x20[Ff][Rr][Oo][Mm][:][&amp;lt;&amp;gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Realize that [&amp;lt;&amp;gt;] is a character class and means "&amp;lt;" or "&amp;gt;" in that spot, so the regex you propose would match:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mail from:&amp;lt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;mail from:&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wanted to find:&lt;/P&gt;&lt;P&gt;mail from:&amp;lt;&amp;gt; (no value in between the braces) then the following:&lt;/P&gt;&lt;P&gt;[Mm][Aa][Ii][Ll]\x20[Ff][Rr][Oo][Mm][:][&amp;lt;][&amp;gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 19:49:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-string-for-smtp-command/m-p/614850#M87647</guid>
      <dc:creator>wsulym</dc:creator>
      <dc:date>2007-01-31T19:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regex string for SMTP command</title>
      <link>https://community.cisco.com/t5/network-security/regex-string-for-smtp-command/m-p/614851#M87649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 19:53:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-string-for-smtp-command/m-p/614851#M87649</guid>
      <dc:creator>rrutledge</dc:creator>
      <dc:date>2007-01-31T19:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Regex string for SMTP command</title>
      <link>https://community.cisco.com/t5/network-security/regex-string-for-smtp-command/m-p/614852#M87650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean you're looking for the SMTP "mail from:" command following by empty brackets?  That's close but not quite right.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Mm][Aa][Ii][Ll][ \t]*[Ff][Rr][Oo][Mm][:][ \t]*[&amp;lt;][&amp;gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe different mail servers allow different behavior, so you might be able to get rid of the "[ \t]*" sections if you know how your mail server behaves.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 19:57:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-string-for-smtp-command/m-p/614852#M87650</guid>
      <dc:creator>mhellman</dc:creator>
      <dc:date>2007-01-31T19:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regex string for SMTP command</title>
      <link>https://community.cisco.com/t5/network-security/regex-string-for-smtp-command/m-p/614853#M87651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Already got serveral hits&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 20:00:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-string-for-smtp-command/m-p/614853#M87651</guid>
      <dc:creator>rrutledge</dc:creator>
      <dc:date>2007-01-31T20:00:33Z</dc:date>
    </item>
  </channel>
</rss>

