<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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<br>
<div class="moz-cite-prefix">On 9/19/2012 2:25 PM, Sampson, Aaron
wrote:<br>
</div>
<blockquote
cite="mid:4ACB6FBB6E06074DA18D653BD3155A663FBB08@COMM1.p2sol.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">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. 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. Once that e-mail attempted to go
through the system the syntax error appeared.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a class="moz-txt-link-abbreviated" href="mailto:mailscanner-bounces@lists.mailscanner.info">mailscanner-bounces@lists.mailscanner.info</a>
[<a class="moz-txt-link-freetext" 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<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">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 moz-do-not-send="true"
href="http://wiki.mailscanner.info/doku.php?id=documentation:configuration:rulesets:examples&s=rules">http://wiki.mailscanner.info/doku.php?id=documentation:configuration:rulesets:examples&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 moz-do-not-send="true" href="http://domain1.com"
target="_blank">domain1.com</a> deliver<br>
To: @<a moz-do-not-send="true" href="http://domain2.com"
target="_blank">domain2.com</a> deliver<br>
From: ip.address store<br>
FromOrTo: default deliver<br>
<br clear="all">
-- <br>
Martin Hepworth, CISSP<br>
Oxford, UK<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">On 19 September 2012 16:00, Sampson,
Aaron <<a moz-do-not-send="true"
href="mailto:Sampson@p2sol.com" target="_blank">Sampson@p2sol.com</a>>
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 moz-do-not-send="true" href="http://domain1.com"
target="_blank">domain1.com</a> deliver<br>
to: *@<a moz-do-not-send="true" href="http://domain2.com"
target="_blank">domain2.com</a> deliver<br>
from: ip.address store<br>
and then when that did not work added<br>
fromorTo: default 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 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. 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 class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
-----Original Message-----<br>
From: <a moz-do-not-send="true"
href="mailto:mailscanner-bounces@lists.mailscanner.info">mailscanner-bounces@lists.mailscanner.info</a>
[mailto:<a moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://allowed.domain.com" target="_blank">allowed.domain.com</a>
deliver<br>
To:<a moz-do-not-send="true"
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 <<a
moz-do-not-send="true" href="mailto:Sampson@p2sol.com">Sampson@p2sol.com</a>>
wrote:<br>
> I am running Centos 6 with Postfix/mailscanner
4.84.5 with Spam<br>
> Assassin and Clamd and I have a Test server that I
am trying to<br>
> prevent from e-mailing anyone outside 2 certain
domains. I have been<br>
> trying to figure out the best way to set this up so
that it does not<br>
> interfere with the production servers or regular
e-mails. But not really clear on the best way to set
this up.<br>
><br>
> I thought about trying to put something in
whitelist.rules but want to<br>
> have a clear plan of attack before I try anything
to prevent<br>
> disruption of normal e-mails.<br>
><br>
><br>
><br>
> Wanting to do something like<br>
><br>
> When From: ip.tst.srv.add Only Allow to
send to: <a moz-do-not-send="true"
href="http://our.domain.com" target="_blank">
our.domain.com</a> &<br>
> this <a moz-do-not-send="true"
href="http://domain.com" target="_blank">domain.com</a>
(and block anything not to that domain)<br>
><br>
><br>
><br>
> Any thoughts would be greatly appreciated<br>
><br>
><br>
><br>
><br>
><br>
> Aaron Sampson<br>
><br>
> IT Department<br>
><br>
><br>
><br>
><br>
> --<br>
> MailScanner mailing list<br>
> <a moz-do-not-send="true"
href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
> <a moz-do-not-send="true"
href="http://lists.mailscanner.info/mailman/listinfo/mailscanner"
target="_blank">
http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
><br>
> Before posting, read <a moz-do-not-send="true"
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>
<br>
<br>
<br>
--<br>
<br>
--<br>
<br>
Alex Neuman van der Hans<br>
Reliant Technologies / Vida Digital<br>
<a moz-do-not-send="true"
href="http://vidadigital.com.pa/" target="_blank">http://vidadigital.com.pa/</a><br>
<br>
<a moz-do-not-send="true" href="tel:%2B507-6781-9505">+507-6781-9505</a><br>
<a moz-do-not-send="true" href="tel:%2B507-832-6725">+507-832-6725</a><br>
<a moz-do-not-send="true" href="tel:%2B1-440-253-9789">+1-440-253-9789</a> (USA)<br>
<br>
Follow @AlexNeuman on Twitter<br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a moz-do-not-send="true"
href="http://lists.mailscanner.info/mailman/listinfo/mailscanner"
target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a moz-do-not-send="true"
href="http://lists.mailscanner.info/mailman/listinfo/mailscanner"
target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a moz-do-not-send="true"
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"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>