Community Discussions and Support
Certain spam source bypassing Popfile

I have been having a similar problem, although not with spam from a specific sender, and had wondered if some of the mails which were not being scanned by Popfile were missed because the server was too busy since it is only a single core single CPU system.   However I had a quick look at one example today and noted that it was 58 K in length and that my -s setting was 50.   I have now raised this to 100 and await developments.

 

There goes my reason for hassling my bosses for a spangly new server!

<p>I have been having a similar problem, although not with spam from a specific sender, and had wondered if some of the mails which were not being scanned by Popfile were missed because the server was too busy since it is only a single core single CPU system.   However I had a quick look at one example today and noted that it was 58 K in length and that my -s setting was 50.   I have now raised this to 100 and await developments.</p><p> </p><p>There goes my reason for hassling my bosses for a spangly new server! </p>

I have been using Popfile along with Mercury with great success for years, however, I have one perplexing issue.

 For some reason, there is one spammer that is (somehow) bypassing popfile. His messages appear in my mailbox and the headers do not show any Popfile classification. The messages do not appear in the Popfile history as being classified or reviewed. In my Mercury log they appear as having been received. It appears that Mercury (for some reason) is simply not sending these messages to Popfile for classification.

Has anyone run into this sort of thing in the past? Is there any setting in Mercury that I could have damaged inadvertently that causes it to exempt these messages from being sent to popfile for classification?

 

<P>I have been using Popfile along with Mercury with great success for years, however, I have one perplexing issue.</P> <P> For some reason, there is one spammer that is (somehow) bypassing popfile. His messages appear in my mailbox and the headers do not show any Popfile classification. The messages do not appear in the Popfile history as being classified or reviewed. In my Mercury log they appear as having been received. It appears that Mercury (for some reason) is simply not sending these messages to Popfile for classification.</P> <P>Has anyone run into this sort of thing in the past? Is there any setting in Mercury that I could have damaged inadvertently that causes it to exempt these messages from being sent to popfile for classification?</P> <P mce_keep="true"> </P>

Can't say it's the same thing, but I have seen spam get by our filters when they use one of our email addresses in the "Return-path" header.

Mercury (4.01c at least) seems to think it originated as an internal email and skips the filtering.
I've added a rule where if the "Return-path" header has one of our email addresses and the "From" header doesn't, to add weight to the email.

Tony

<P>Can't say it's the same thing, but I have seen spam get by our filters when they use one of our email addresses in the "Return-path" header.</P> <P>Mercury (4.01c at least) seems to think it originated as an internal email and skips the filtering. I've added a rule where if the "Return-path" header has one of our email addresses and the "From" header doesn't, to add weight to the email.</P> <P>Tony</P>

[quote user="webjack"]

I have been using Popfile along with Mercury with great success for years, however, I have one perplexing issue.

 For some reason, there is one spammer that is (somehow) bypassing popfile. His messages appear in my mailbox and the headers do not show any Popfile classification. The messages do not appear in the Popfile history as being classified or reviewed. In my Mercury log they appear as having been received. It appears that Mercury (for some reason) is simply not sending these messages to Popfile for classification.

Has anyone run into this sort of thing in the past? Is there any setting in Mercury that I could have damaged inadvertently that causes it to exempt these messages from being sent to popfile for classification?

 

[/quote]

 

First are you sure that this spammers messages are not too large for your size setting in POPFile?   Second, if you are using any sort of  popfiled.rxp settings these may be allowing the sender to bypass the POPFileD classifications.

 

[quote user="webjack"]<p>I have been using Popfile along with Mercury with great success for years, however, I have one perplexing issue.</p> <p> For some reason, there is one spammer that is (somehow) bypassing popfile. His messages appear in my mailbox and the headers do not show any Popfile classification. The messages do not appear in the Popfile history as being classified or reviewed. In my Mercury log they appear as having been received. It appears that Mercury (for some reason) is simply not sending these messages to Popfile for classification.</p> <p>Has anyone run into this sort of thing in the past? Is there any setting in Mercury that I could have damaged inadvertently that causes it to exempt these messages from being sent to popfile for classification?</p> <p mce_keep="true"> </p><p>[/quote]</p><p> </p><p>First are you sure that this spammers messages are not too large for your size setting in POPFile?   Second, if you are using any sort of  popfiled.rxp settings these may be allowing the sender to bypass the POPFileD classifications.</p><p> </p>

Thank you very much, Thomas. There is a popfiled.rxp file in my Mercury directory. So this is probably the cause of the problem. The contents of the file are as follows:

# Sample Regular Expressions for mydomain.com
# Note comment lines. The Daemon does NOT like blank lines in this file.
#
# Do not check new mail from an internal sender
# Must be From: "xxxx yyyy" <zzzz@mydomain.com>. I don't allow digits.
# I also require the Organization Header and require all my users to
# use Pegasus 4.12a.
#
if From: "[a-z]+ [a-z]+" <[a-z]+@mydomain.com>
and Organization: Phlebotomy Associates, Inc.
and X-mailer: Pegasus Mail for Windows (v4.12a)
#
# Do not check mail bounced by internal sender to someone else
# This rule works because my users all use Pegasus. YMMV.
#
if Resent-from: "[a-z]+ [a-z]+" <[a-z]+@mydomain.com>
and Resent-to: *
and Resent-date: *
#
# Mail that is automatically resent by a Mercury/32 Forward file
# I don't allow digits in my user names. I also don't use first
# names - it's more professional and hinders dictionary attacks.
#
if Resent-from: [a-z]+@mydomain.com
and Resent-Date: *
and X-Autoforward: 1
#
# Mail trapped by DNSBL is spam
# I configure Mercury to insert an X-Blocked: header after a DNSBL check
#
if X-Blocked: *

I tried changing the extension on this file so that it would not be found and interfere. The result is that now all internal mail is being filtered through Popfile. I really don't want to go thru and create a magnet for each and every user and then have to maintain them everytime people come and/or go. Is there an intermediate approach?

 

 

&lt;P&gt;Thank you very much, Thomas. There is a popfiled.rxp file in my Mercury directory. So this is probably the cause of the problem. The contents of the file are as follows:&lt;/P&gt; &lt;P&gt;# Sample Regular Expressions for mydomain.com # Note comment lines. The Daemon does NOT like blank lines in this file. # # Do not check new mail from an internal sender # Must be From: &quot;xxxx yyyy&quot; &amp;lt;&lt;A href=&quot;mailto:zzzz@mydomain.com&quot;&gt;zzzz@mydomain.com&lt;/A&gt;&amp;gt;. I don&#039;t allow digits. # I also require the Organization Header and require all my users to # use Pegasus 4.12a. # if From: &quot;[a-z]+ [a-z]+&quot; &amp;lt;[a-z]+@mydomain.com&amp;gt; and Organization: Phlebotomy Associates, Inc. and X-mailer: Pegasus Mail for Windows (v4.12a) # # Do not check mail bounced by internal sender to someone else # This rule works because my users all use Pegasus. YMMV. # if Resent-from: &quot;[a-z]+ [a-z]+&quot; &amp;lt;[a-z]+@mydomain.com&amp;gt; and Resent-to: * and Resent-date: * # # Mail that is automatically resent by a Mercury/32 Forward file # I don&#039;t allow digits in my user names. I also don&#039;t use first # names - it&#039;s more professional and hinders dictionary attacks. # if Resent-from: [a-z]+@mydomain.com and Resent-Date: * and X-Autoforward: 1 # # Mail trapped by DNSBL is spam # I configure Mercury to insert an X-Blocked: header after a DNSBL check # if X-Blocked: * &lt;/P&gt; &lt;P&gt;I tried changing the extension on this file&amp;nbsp;so that it would not be found and interfere. The result is that now all internal mail is being filtered through&amp;nbsp;Popfile. I really don&#039;t want to go thru and create a magnet for each and every user and then have to maintain them everytime people come and/or go. Is there an intermediate approach?&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt;

I'm not really the one to answer this question for you.  I send all mail via the Mercury queue and so this is no big deal for me.  In any case if your POPFileD startup line says to use this file then you should go through and fix it so it matches your  domain  requiresments.  Are you really using WinPMail v4.12a?  Is your domain actually mydomain.com?

 

 

 

&lt;p&gt;I&#039;m not really the one to answer this question for you.&amp;nbsp; I send all mail via the Mercury queue and so this is no big deal for me.&amp;nbsp; In any case if your POPFileD startup line says to use this file then you should go through and fix it so it matches your&amp;nbsp; domain&amp;nbsp; requiresments.&amp;nbsp; Are you really using WinPMail v4.12a?&amp;nbsp; Is your domain actually mydomain.com?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

Hmmmm. It has been a long time but I believe I simply installed the default configuration of popfile. Looking at it now, you are obviously correct. The .rxp file is simply the demo file that came with the release and bears no resemblance to our installation. Therefore, it would seem that it could not be responsible for giving a free pass to these emails. So that puts me back to square 1!

When you say you send all mail via Mercury queue, I believe we do also. When you hit the send button in Pegasus, an E------.101 file appears in the Mercury queue directory. Shortly thereafter MO-------.QCF and MO------.QDF files join in and then, as the mail is processed, they all disappear. However, are not these scanned by Popfile?

In any case, although this is an interesting academic question, for practical purposes, I think I will just blacklist the domain these emails come from and be done with it. (Or is this being naive?)

&lt;P&gt;Hmmmm. It has been a long time but I believe I simply installed the default configuration of popfile. Looking at it now, you are obviously correct. The .rxp file is simply the demo file that came with the release and bears no resemblance to our installation. Therefore, it would seem that it could not be responsible for giving a free pass to these emails. So that puts me back to square 1! &lt;/P&gt; &lt;P&gt;When you say you send all mail via Mercury queue, I believe we do also. When you hit the send button in Pegasus, an E------.101 file appears in the Mercury queue directory. Shortly thereafter MO-------.QCF and MO------.QDF files join in and then, as the mail is processed, they all disappear. However, are not these scanned by Popfile?&lt;/P&gt; &lt;P&gt;In any case, although this is an interesting academic question, for practical purposes, I think I will just blacklist the domain these emails come from and be done with it. (Or is this being naive?)&lt;/P&gt;

> Hmmmm. It has been a long time but I believe I simply installed the
> default configuration of popfile. Looking at it now, you are
> obviously correct. The .rxp file is simply the demo file that came
> with the release and bears no resemblance to our installation.
> Therefore, it would seem that it could not be responsible for giving
> a free pass to these emails. So that puts me back to square 1!

Not necessarily, that file is giving a free pass to some mail based on a domain or other factors in the message.  You might try running without it and see what happens.

>
> When you say you send all mail via Mercury queue, I believe we do
> also. When you hit the send button in Pegasus, an E------.101 file
> appears in the Mercury queue directory. Shortly thereafter
> MO-------.QCF and MO------.QDF files join in and then, as the mail
> is processed, they all disappear. However, are not these scanned by
> Popfile?

Correct.  It's not a Fxxxxxxx.101 though, it's simple 8 hex numbers.101.  I'm not sure they are not scanned by POPFileD.  That's why you would use the .RXP file to bypass the local mail based on something it the 101 message files.


>
> In any case, although this is an interesting academic question, for
> practical purposes, I think I will just blacklist the domain these
> emails come from and be done with it. (Or is this being naive?)

You really should try and figure out why they are not being processed by POPFileD though.  The only reason I do not get mail processed by POPFileD is when it's over the size limit I set for a message.


&amp;gt; Hmmmm. It has been a long time but I believe I simply installed the &amp;gt; default configuration of popfile. Looking at it now, you are &amp;gt; obviously correct. The .rxp file is simply the demo file that came &amp;gt; with the release and bears no resemblance to our installation. &amp;gt; Therefore, it would seem that it could not be responsible for giving &amp;gt; a free pass to these emails. So that puts me back to square 1! Not necessarily, that file is giving a free pass to some mail based on a domain or other factors in the message.&amp;nbsp; You might try running without it and see what happens. &amp;gt; &amp;gt; When you say you send all mail via Mercury queue, I believe we do &amp;gt; also. When you hit the send button in Pegasus, an E------.101 file &amp;gt; appears in the Mercury queue directory. Shortly thereafter &amp;gt; MO-------.QCF and MO------.QDF files join in and then, as the mail &amp;gt; is processed, they all disappear. However, are not these scanned by &amp;gt; Popfile? Correct.&amp;nbsp; It&#039;s not a Fxxxxxxx.101 though, it&#039;s simple 8 hex numbers.101.&amp;nbsp; I&#039;m not sure they are not scanned by POPFileD.&amp;nbsp; That&#039;s why you would use the .RXP file to bypass the local mail based on something it the 101 message files. &amp;gt; &amp;gt; In any case, although this is an interesting academic question, for &amp;gt; practical purposes, I think I will just blacklist the domain these &amp;gt; emails come from and be done with it. (Or is this being naive?) You really should try and figure out why they are not being processed by POPFileD though.&amp;nbsp; The only reason I do not get mail processed by POPFileD is when it&#039;s over the size limit I set for a message.

Well, in the interests of advancing the enlightenment of humanity in general (wow! I feel like I have found new purpose in life), I have done some further investigation... and still come up short. 8-(.

I sent a message from the office to my home address and then checked the headers on the message received at home. They clearly contained the headers:

X-Text-Classification: not_spam

X-POPFile-Link: http://nemcbdc:9090/jump_to_message?view=452630

So, I am convinced that outgoing mail is going thru Popfile.

The offending messages are not greater than our size limit.

I took the .rxp file out of the mix but did not get any of the offending messages yet to test. (They are not a regular occurence. Only happens every couple of weeks. This really is an academic problem, not a pressing operational issue).

So we will see what happens.

 

 

&lt;P&gt;Well, in the interests of advancing the enlightenment of humanity in general (wow! I feel like I have found new purpose in life), I have done some further investigation... and still come up short. 8-(.&lt;/P&gt; &lt;P&gt;I sent a message from the office to my home address and then checked the headers on the message received at home. They clearly contained the headers:&lt;/P&gt; &lt;P&gt;&lt;FONT size=1&gt;X-Text-Classification: not_spam&lt;/P&gt; &lt;P&gt;X-POPFile-Link: &lt;A href=&quot;http://nemcbdc:9090/jump_to_message?view=452630&quot; mce_href=&quot;http://nemcbdc:9090/jump_to_message?view=452630&quot;&gt;http://nemcbdc:9090/jump_to_message?view=452630&lt;/A&gt;&lt;/FONT&lt; P&gt; &lt;P&gt;&lt;FONT size=2&gt;So, I am convinced that outgoing mail is going thru Popfile.&lt;/P&gt; &lt;P&gt;The offending messages are not greater than our size limit.&lt;/P&gt; &lt;P&gt;I took the .rxp file out of the mix but did not get any of the offending messages yet to test. (They are not a regular occurence. Only happens every couple of weeks. This really is an academic problem, not a pressing operational issue).&lt;/P&gt; &lt;P&gt;So we will see what happens.&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;

The only tool in PopFileD to prevent it from scanning outgoing email is the .rxp file - that's why it was created, I didn't need my. You need to edit it to match your configuration, and put it back in. Otherwise your outbound email will be scanned by PopFile.

 

&lt;p&gt;The only tool in PopFileD to prevent it from scanning outgoing email is the .rxp file - that&#039;s why it was created, I didn&#039;t need my. You need to edit it to match your configuration, and put it back in. Otherwise your outbound email will be scanned by PopFile.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

Thank you all for your help. If only I had read earlier posts with a more open mind, I could have resolved this sooner.

One of the first posts mentioned that files over the size limit were exempt from popfile processing. I assumed the writer was talking about the size setting in Mercury configuration (because I was not aware of any other). Looking back on it, that was pretty foolish thinking because, if the message was being filtered out by Mercury's size limit, it wouldn't be showing up in my mailbox to bother me.

While stumbling around I came across the DAEMON.INI file with the call to popfiled. Lo and behold, there I saw the -s switch and realized that there is a size limitation in the popfile parameters (how dumb can I be?). A little review of the popfiled documentation confirmed my ignorance. So I have upped the size limit and will await this spammer's next attack to see what happens.

 In the meantime, I have revised my .rxp file to actually do something (hopefully what I want), have expanded my understanding of the connection between Mercury and Popfile, and deepened my appreciation of the need to listen to the more experienced members of this forum with greater care (and humility).

Very much thanks to Thomas and Subelman.

 

&lt;P&gt;Thank you all for your help. If only I had read earlier posts with a more open mind, I could have resolved this sooner.&lt;/P&gt; &lt;P&gt;One of the first posts mentioned that&amp;nbsp;files over the size limit&amp;nbsp;were exempt from&amp;nbsp;popfile processing. I assumed the writer was talking about the size setting in Mercury configuration (because I was not aware of any other). Looking back on it, that was pretty foolish thinking because, if the message was being filtered out by Mercury&#039;s size limit, it wouldn&#039;t be showing up in my mailbox to bother me. &lt;/P&gt; &lt;P&gt;While stumbling around I came across the DAEMON.INI file with the call to popfiled. Lo and behold, there I saw the -s switch and realized that there is a size limitation in the popfile parameters (how dumb can I be?). A little review of the popfiled documentation confirmed my ignorance. So I have upped the size limit and will await this spammer&#039;s next attack to see what happens.&lt;/P&gt; &lt;P&gt;&amp;nbsp;In the meantime, I have revised my .rxp file to actually do something (hopefully what I want), have expanded my understanding of the connection between Mercury and Popfile, and deepened my appreciation of the need to listen to the more experienced members of this forum with greater care (and humility).&lt;/P&gt; &lt;P&gt;Very much thanks to Thomas and Subelman.&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&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