<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:m = 
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928">
<STYLE>@font-face {
        font-family: Cambria Math;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@page WordSection1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; COLOR: black; FONT-SIZE: 12pt
}
LI.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; COLOR: black; FONT-SIZE: 12pt
}
DIV.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; COLOR: black; FONT-SIZE: 12pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P.MsoAcetate {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black; FONT-SIZE: 8pt; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
LI.MsoAcetate {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black; FONT-SIZE: 8pt; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
DIV.MsoAcetate {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black; FONT-SIZE: 8pt; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
SPAN.BalloonTextChar {
        FONT-FAMILY: "Tahoma","sans-serif"; mso-style-priority: 99; mso-style-link: "Balloon Text"; mso-style-name: "Balloon Text Char"
}
SPAN.EmailStyle19 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d; mso-style-type: personal
}
SPAN.EmailStyle20 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d; mso-style-type: personal-reply
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.WordSection1 {
        page: WordSection1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US link=blue bgColor=white vLink=purple>
<DIV><FONT size=2 face=Arial>I'm not an expert by any means but perhaps doing an 
'od -c' on the file and posting it here might help someone to spot the 
problem.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>JC</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=Sampson@p2sol.com href="mailto:Sampson@p2sol.com">Sampson, Aaron</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=mailscanner@lists.mailscanner.info 
  href="mailto:mailscanner@lists.mailscanner.info">MailScanner discussion</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, September 20, 2012 2:15 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: Filter by IP</DIV>
  <DIV><BR></DIV>
  <DIV class=WordSection1>
  <P class=MsoNormal><SPAN 
  style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">No 
  it was created on UNIX on the e-mail server <o:p></o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p>&nbsp;</o:p></SPAN></P>
  <DIV>
  <DIV 
  style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
  <P class=MsoNormal><B><SPAN 
  style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: windowtext; FONT-SIZE: 10pt">From:</SPAN></B><SPAN 
  style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: windowtext; FONT-SIZE: 10pt"> 
  <A 
  href="mailto:mailscanner-bounces@lists.mailscanner.info">mailscanner-bounces@lists.mailscanner.info</A> 
  [mailto:mailscanner-bounces@lists.mailscanner.info] <B>On Behalf Of </B>Steve 
  Campbell<BR><B>Sent:</B> Thursday, September 20, 2012 7:27 AM<BR><B>To:</B> <A 
  href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</A><BR><B>Subject:</B> 
  Re: Filter by IP<o:p></o:p></SPAN></P></DIV></DIV>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>This isn't a DOS, instead of a UNIX file, perhaps? Was it 
  created and modified on the server or did you copy it from a Windows machine? 
  Do you need to run dos2unix on it?<BR><BR>steve campbell<o:p></o:p></P>
  <DIV>
  <P class=MsoNormal>On 9/19/2012 3:01 PM, Steve Campbell 
  wrote:<o:p></o:p></P></DIV>
  <BLOCKQUOTE style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt">
    <P class=MsoNormal>Are you certain you didn't type ";" instead of ":" in you 
    rule file? It sort of indicates that one of your lines needs that ":" in 
    it<BR><BR>steve campbell<o:p></o:p></P>
    <DIV>
    <P class=MsoNormal>On 9/19/2012 2:25 PM, Sampson, Aaron 
    wrote:<o:p></o:p></P></DIV>
    <BLOCKQUOTE style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt">
      <P class=MsoNormal><SPAN 
      style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I 
      did make sure that the capitalization was the same through it all and that 
      everything was spaced out the same as well, still got the same error 
      message.&nbsp; Did discover that everything seemed to be working properly 
      with Mail Scanner until I attempted to send out an e-mail from one of the 
      domains that I had listed.&nbsp; Once that e-mail attempted to go through 
      the system the syntax error appeared.</SPAN><o:p></o:p></P>
      <P class=MsoNormal><SPAN 
      style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">&nbsp;</SPAN><o:p></o:p></P>
      <P class=MsoNormal><B><SPAN 
      style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN 
      style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> <A 
      href="mailto:mailscanner-bounces@lists.mailscanner.info">mailscanner-bounces@lists.mailscanner.info</A> 
      [<A 
      href="mailto:mailscanner-bounces@lists.mailscanner.info">mailto:mailscanner-bounces@lists.mailscanner.info</A>] 
      <B>On Behalf Of </B>Martin Hepworth<BR><B>Sent:</B> Wednesday, September 
      19, 2012 10:47 AM<BR><B>To:</B> MailScanner discussion<BR><B>Subject:</B> 
      Re: Filter by IP</SPAN><o:p></o:p></P>
      <P class=MsoNormal>&nbsp;<o:p></o:p></P>
      <P style="MARGIN-BOTTOM: 12pt" class=MsoNormal>have you made sure there no 
      tab's in that ruleset.<BR>check out the examples in the examples dir and 
      here.<BR><BR><A 
      href="http://wiki.mailscanner.info/doku.php?id=documentation:configuration:rulesets:examples&amp;s=rules">http://wiki.mailscanner.info/doku.php?id=documentation:configuration:rulesets:examples&amp;s=rules</A><BR><BR>yes 
      you'll need the default entry , try making sure the capitalisasion is 
      consistent with the examples as welll.<BR><BR>To: @<A 
      href="http://domain1.com" target=_blank>domain1.com</A> deliver<BR>To: @<A 
      href="http://domain2.com" target=_blank>domain2.com</A> deliver<BR>From: 
      ip.address &nbsp; &nbsp; &nbsp; &nbsp;store<BR>FromOrTo: default &nbsp; 
      &nbsp; &nbsp; deliver<BR><BR clear=all>-- <BR>Martin Hepworth, 
      CISSP<BR>Oxford, UK<BR><BR><BR><o:p></o:p></P>
      <DIV>
      <P class=MsoNormal>On 19 September 2012 16:00, Sampson, Aaron &lt;<A 
      href="mailto:Sampson@p2sol.com" target=_blank>Sampson@p2sol.com</A>&gt; 
      wrote:<o:p></o:p></P>
      <P class=MsoNormal>Alex,<BR><BR>So I tried out your suggestion and put in 
      a a ruleset in the non-spam actions. rules that read<BR>to: *@<A 
      href="http://domain1.com" target=_blank>domain1.com</A> deliver<BR>to: 
      *@<A href="http://domain2.com" target=_blank>domain2.com</A> 
      deliver<BR>from: ip.address &nbsp; &nbsp; &nbsp; &nbsp;store<BR>and then 
      when that did not work added<BR>fromorTo: default &nbsp; &nbsp; &nbsp; 
      deliver<BR><BR>Still did not work and all e-mails coming into the company 
      were lost (dang it) and I kept getting an error message saying &nbsp; 
      Syntax error in "header" action in spam actions,<BR>missing ":" in 
      etc/MailScanner/rules/non.spam.rules<BR><BR>We have checked and rechecked 
      the rule-set pattern to see if we missed something and have tried a few 
      things and nothing has worked so far. &nbsp;We would like to not have to 
      set up an additional smtp server to take care of this issue so any 
      additional thoughts would be great, or let me know if you need/want any 
      additional information<o:p></o:p></P>
      <DIV>
      <P style="MARGIN-BOTTOM: 12pt" class=MsoNormal><BR><BR>-----Original 
      Message-----<BR>From: <A 
      href="mailto:mailscanner-bounces@lists.mailscanner.info">mailscanner-bounces@lists.mailscanner.info</A> 
      [mailto:<A 
      href="mailto:mailscanner-bounces@lists.mailscanner.info">mailscanner-bounces@lists.mailscanner.info</A>] 
      On Behalf Of Alex Neuman<BR>Sent: Monday, September 17, 2012 12:41 
      PM<BR>To: MailScanner discussion<BR>Subject: Re: Filter by 
      IP<o:p></o:p></P></DIV>
      <DIV>
      <DIV>
      <P class=MsoNormal>You can probably add the test server's IP to the spam 
      whitelist, then add a "non-spam actions" ruleset that says something 
      like:<BR><BR>To:<A href="http://allowed.domain.com" 
      target=_blank>allowed.domain.com</A> deliver<BR>To:<A 
      href="http://allowed2.domain.com" target=_blank>allowed2.domain.com</A> 
      deliver<BR>From:xx.xx.xx.xx store<BR><BR>That way, the first two domains 
      "hit" and "deliver" the e-mails, while anything else from the test server 
      will be "stored" - you could use "delete" but just in case use "store" so 
      you can release them if necessary.<BR><BR><BR>On Mon, Sep 17, 2012 at 
      11:01 AM, Sampson, Aaron &lt;<A 
      href="mailto:Sampson@p2sol.com">Sampson@p2sol.com</A>&gt; wrote:<BR>&gt; I 
      am running Centos 6 with Postfix/mailscanner 4.84.5 with Spam<BR>&gt; 
      Assassin and Clamd and I have a Test server that I am trying to<BR>&gt; 
      prevent from e-mailing anyone outside 2 certain domains. &nbsp;I have 
      been<BR>&gt; trying to figure out the best way to set this up so that it 
      does not<BR>&gt; interfere with the production servers or regular e-mails. 
      &nbsp;But not really clear on the best way to set this up.<BR>&gt;<BR>&gt; 
      I thought about trying to put something in whitelist.rules but want 
      to<BR>&gt; have a clear plan of attack before I try anything to 
      prevent<BR>&gt; disruption of normal 
      e-mails.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Wanting to do something 
      like<BR>&gt;<BR>&gt; When From: ip.tst.srv.add &nbsp; &nbsp; &nbsp; &nbsp; 
      &nbsp; Only Allow to send to: <A href="http://our.domain.com" 
      target=_blank>our.domain.com</A> &amp;<BR>&gt; this <A 
      href="http://domain.com" target=_blank>domain.com</A> (and block anything 
      not to that domain)<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Any thoughts would be 
      greatly appreciated<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Aaron 
      Sampson<BR>&gt;<BR>&gt; IT 
      Department<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; --<BR>&gt; MailScanner 
      mailing list<BR>&gt; <A 
      href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</A><BR>&gt; 
      <A href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" 
      target=_blank>http://lists.mailscanner.info/mailman/listinfo/mailscanner</A><BR>&gt;<BR>&gt; 
      Before posting, read <A href="http://wiki.mailscanner.info/posting" 
      target=_blank>http://wiki.mailscanner.info/posting</A><BR>&gt;<BR>&gt; 
      Support MailScanner development - buy the book off the 
      website!<BR>&gt;<BR><BR><BR><BR>--<BR><BR>--<BR><BR>Alex Neuman van der 
      Hans<BR>Reliant Technologies / Vida Digital<BR><A 
      href="http://vidadigital.com.pa/" 
      target=_blank>http://vidadigital.com.pa/</A><BR><BR><A 
      href="tel:%2B507-6781-9505">+507-6781-9505</A><BR><A 
      href="tel:%2B507-832-6725">+507-832-6725</A><BR><A 
      href="tel:%2B1-440-253-9789">+1-440-253-9789</A>&nbsp;(USA)<BR><BR>Follow 
      @AlexNeuman on Twitter<BR><A href="http://facebook.com/vidadigital" 
      target=_blank>http://facebook.com/vidadigital</A><BR><BR><BR>-- So-called 
      "legal disclaimers" are not legally binding, so don't bother. A cute 
      graphic saying "save the planet, don't print this" can potentially create 
      more CO2, not less, so don't bother either.<BR>--<BR>MailScanner mailing 
      list<BR><A 
      href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</A><BR><A 
      href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" 
      target=_blank>http://lists.mailscanner.info/mailman/listinfo/mailscanner</A><BR><BR>Before 
      posting, read <A href="http://wiki.mailscanner.info/posting" 
      target=_blank>http://wiki.mailscanner.info/posting</A><BR><BR>Support 
      MailScanner development - buy the book off the 
      website!<BR>--<BR>MailScanner mailing list<BR><A 
      href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</A><BR><A 
      href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" 
      target=_blank>http://lists.mailscanner.info/mailman/listinfo/mailscanner</A><BR><BR>Before 
      posting, read <A href="http://wiki.mailscanner.info/posting" 
      target=_blank>http://wiki.mailscanner.info/posting</A><BR><BR>Support 
      MailScanner development - buy the book off the 
      website!<o:p></o:p></P></DIV></DIV></DIV>
      <P class=MsoNormal>&nbsp;<o:p></o:p></P>
      <P class=MsoNormal><BR><BR><o:p></o:p></P></BLOCKQUOTE>
    <P class=MsoNormal><BR><BR><BR><o:p></o:p></P></BLOCKQUOTE>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P></DIV>
  <P>
  <HR>

  <P></P>-- <BR>MailScanner mailing 
  list<BR>mailscanner@lists.mailscanner.info<BR>http://lists.mailscanner.info/mailman/listinfo/mailscanner<BR><BR>Before 
  posting, read http://wiki.mailscanner.info/posting<BR><BR>Support MailScanner 
  development - buy the book off the website! <BR></BLOCKQUOTE></BODY></HTML>