Community Discussions and Support
Policy not run on incoming message

It should make no difference to Mercury what program was used for SMTP delivery, assuming that RFC syntax was followed. The contents of the message sent by Outlook will presumably not be exactly the same as the one sent by Blat, though, and the program called by the policy may thus react differently to it. Mercury help says:

if a policy task crashes or hangs, Mercury will timeout after 90 seconds. In this case, Mercury treats the message as having passed the task's tests, and will allow it to be processed normally.

You could try using the MSendTo commandline mailer included with Mercury since version 4.61 as an alternative to Blat.

/Rolf  

<p>It should make no difference to Mercury what program was used for SMTP delivery, assuming that RFC syntax was followed. The contents of the message sent by Outlook will presumably not be exactly the same as the one sent by Blat, though, and the program called by the policy may thus react differently to it. Mercury help says:</p><blockquote><p><i>if a policy task crashes or hangs, Mercury will timeout after 90 seconds. In this case, Mercury treats the message as having passed the task's tests, and will allow it to be processed normally.</i></p></blockquote><p>You could try using the MSendTo commandline mailer included with Mercury since version 4.61 as an alternative to Blat.</p><p>/Rolf  </p>

I am running 4.72. I have a policy where if Outlook sends the message the policy is run, if blat sends the message the policy is not run. Both messages sent from the same PC via SMTP.

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

My understating is policies are run for all messages received by SMTP

 

As this is for Anti-Virus testing I would like this to work, any ideas?

&lt;P class=MsoNormal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;FONT face=&quot;Times New Roman&quot; size=3&gt;I am running 4.72. I have a policy where if Outlook sends the message the policy is run, if blat sends the message the policy is not run. Both messages sent from the same PC via SMTP.&lt;/FONT&gt;&lt;/P&gt; &lt;P class=MsoNormal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&lt;FONT face=&quot;Times New Roman&quot; size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt; &lt;P class=MsoNormal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;FONT face=&quot;Times New Roman&quot; size=3&gt;My understating is policies are run for all messages received by SMTP&lt;/FONT&gt;&lt;/P&gt; &lt;P class=MsoNormal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;o:p&gt;&lt;FONT face=&quot;Times New Roman&quot; size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt; &lt;P class=MsoNormal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;FONT face=&quot;Times New Roman&quot; size=3&gt;As this is for Anti-Virus testing I would like this to work, any ideas?&lt;/FONT&gt;&lt;/P&gt;

As you may have seen from my Multiple Policy Tasks  postings, I am using policies to assist in removing SPAM.  As I understand it, a policy will affect all messages that are left in the incoming mail queue.  However, for example, if you do any filtering beforehand and delete any messages in the queue they will, of course, not be subjected to any policies that you may have set up.  An exception to this is if you run a Policy before filtering, which is an option.  There are, of course, other ways in which messages might be removed from the mail queue before reaching a policy.

I am guessing that you are using the X-Mailer header to check whether Outlook or Blat is sending the mail.  Another issue, of course is whether your program, script or whatever, is correctly recognizing thise header and providing the correct reponses back to the Mercury policy (deleting the sentinel file and generating a results file ... if you are using the sentinel method for your policy).

Gordon

&lt;P&gt;As you may have seen from my &lt;A class=ForumNameRead title=&quot;&quot; href=&quot;http://community.pmail.com/forums/thread/20251.aspx&quot;&gt;&lt;STRONG&gt;&lt;FONT color=#4c7a9e&gt;Multiple Policy Tasks &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/A&gt;&amp;nbsp;postings, I am using policies to assist in removing SPAM.&amp;nbsp; As I understand it, a policy will affect all messages that are left in the incoming mail queue.&amp;nbsp; However, for example, if you do any filtering beforehand and delete any messages in the queue they will, of course, not be subjected to any policies that you may have set up.&amp;nbsp; An exception to this is if you run a Policy before filtering, which is an option.&amp;nbsp; There are, of course, other ways in which messages might be removed from the mail queue before reaching a policy.&lt;/P&gt; &lt;P&gt;I am guessing that you are using the X-Mailer header to check whether Outlook or Blat is sending the mail.&amp;nbsp; Another issue, of course is whether your program, script or whatever, is correctly recognizing thise header and providing the correct reponses back to the Mercury policy (deleting the sentinel file and generating a results file ... if you are using the sentinel method for your policy).&lt;/P&gt; &lt;P&gt;Gordon&lt;/P&gt;

I am not doing any mail header pre checks or filtering. The policy is set to run before filters anyhow. When using blat I see the message received in the SMTP server window, then processed in the core window and forwarded. The policy is not run. The mail is internal but all works as expected with using outlook from the same PC, so am thinking this is not the issue.

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

Matthew

&lt;P class=MsoNormal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;FONT face=&quot;Times New Roman&quot; size=3&gt;I am not doing any mail header pre checks or filtering. The policy is set to run before filters anyhow. When using blat I see the message received in the SMTP server window, then processed in the core window and forwarded. The policy is not run. The mail is internal but all works as expected with using outlook from the same PC, so am thinking this is not the issue.&lt;/FONT&gt;&lt;/P&gt; &lt;P class=MsoNormal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&lt;FONT face=&quot;Times New Roman&quot; size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt; &lt;P class=MsoNormal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;FONT face=&quot;Times New Roman&quot; size=3&gt;Matthew&lt;/FONT&gt;&lt;/P&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft