Community Discussions and Support
Non-local email bypassing global filter?

It took me a few days to get back to everyone.  Here's what I have found out.

 First, the "Suppress validation of 'From' field..." option does affect whether the  filters are applied.  As an experiment, I enabled suppression, and no longer received notifications of invalid addresses.  Instead, notification was skipped and my filter deleted the email, as shown below.

Fri 15, 12:22:24: Job MG00003B: sender address 'charlesnn@softwaremeadows.com' is invalid
   * Job killed by filtering rule.

 To prove it, I disabled only that setting, and began receiving notifications again.

Fri 15, 13:56:45: Job MG00004F: sender address 'charlesnn@softwaremeadows.com' is invalid
Fri 15, 13:56:56: Job MG000051: from <> (local)
   * Recipient <charlesnn@softwaremeadows.com> unknown
Fri 15, 13:56:56: Job MG000051: Processing failed deliveries and generating notifications
   Mail Delivery System <> - Notification discarded - potential loop.
Fri 15, 13:57:07: Job MG000053: from postmaster@flattland.com (local)
   To: charles (local) -OK

With that said, based on Thomas' advice, I'm going to

  • Disable  "Suppress validation of 'From' field...", which is the default
  • Disable "Accept mail for invalid local addresses", which is also the default.  I had it enabled because, at one time, I accepted any email to the domain.

Thanks for the help.  If I run into trouble, I'll post again.

Charles

&lt;p&gt;It took me a few days to get back to everyone.&amp;nbsp; Here&#039;s what I have found out.&lt;/p&gt; &lt;p&gt;&amp;nbsp;First, the &quot;Suppress validation of &#039;From&#039; field...&quot; option &lt;i&gt;does&lt;/i&gt; affect whether the&amp;nbsp; filters are applied.&amp;nbsp; As an experiment, I enabled suppression, and no longer received notifications of invalid addresses.&amp;nbsp; Instead, notification was skipped and my filter deleted the email, as shown below.&lt;/p&gt; &lt;code&gt;&lt;/code&gt;&lt;p&gt;Fri 15, 12:22:24: Job MG00003B: sender address &#039;charlesnn@softwaremeadows.com&#039; is invalid &amp;nbsp;&amp;nbsp; * Job killed by filtering rule.&lt;/p&gt; &lt;p&gt;&amp;nbsp;To prove it, I disabled only that setting, and began receiving notifications again.&lt;/p&gt; &lt;code&gt;&lt;/code&gt;&lt;p&gt;Fri 15, 13:56:45: Job MG00004F: sender address &#039;charlesnn@softwaremeadows.com&#039; is invalid Fri 15, 13:56:56: Job MG000051: from &amp;lt;&amp;gt; (local) &amp;nbsp;&amp;nbsp; * Recipient &amp;lt;charlesnn@softwaremeadows.com&amp;gt; unknown Fri 15, 13:56:56: Job MG000051: Processing failed deliveries and generating notifications &amp;nbsp;&amp;nbsp; Mail Delivery System &amp;lt;&amp;gt; - Notification discarded - potential loop. Fri 15, 13:57:07: Job MG000053: from postmaster@flattland.com (local) &amp;nbsp;&amp;nbsp; To: charles (local) -OK &lt;/p&gt; &lt;p&gt;With that said, based on Thomas&#039; advice, I&#039;m going to&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Disable&amp;nbsp; &quot;Suppress validation of &#039;From&#039; field...&quot;, which is the default&lt;/li&gt; &lt;li&gt;Disable &quot;Accept mail for invalid local addresses&quot;, which is also the default.&amp;nbsp; I had it enabled because, at one time, I accepted any email to the domain.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Thanks for the help.&amp;nbsp; If I run into trouble, I&#039;ll post again.&lt;/p&gt; &lt;p&gt;Charles &lt;/p&gt;

I have spam email addressed from/to a non-local user that seems to bypass my global filtering rule.  In the example below, there is a user named charles, who is also the postmaster.  The email is addressed to a non-local user, "charlesn" (note the appended "n").

From: charlesn@domain.com
To: charlesn@domain.com

The global filtering rule is:

If header "FTRE" contains "charlesn@domain.com" Delete ""

I expect the email to be deleted before local delivery is attempted.  However, the emails are instead processed as

Mon 11, 7:46:10: Job MG000001: sender address charlesn@domain.com' is invalid
Mon 11, 7:46:10: Job MG000001: Processing failed deliveries and generating notifications
Mon 11, 7:46:21: Job MG000003: from <> (local)
   * Recipient <charlesn@domain.com> unknown
 Mon 11, 7:46:21: Job MG000002: from postmaster@domain.com (local)
   To: charles(local) -OK

1. Is this due to the option "Suppress validation of 'From' field when processing mail" (which is currently unchecked)?  Or have I made some mistake?

2. If this option is the problem, and I enable it, what other problems might I encounter?

I'm using v4.62, with modules MercuryS, MercuryE, MercuryI

Thanks for your help, and this excellent product.

Charles

 

I have spam email addressed from/to a non-local user that seems to bypass my global filtering rule.&amp;nbsp; In the example below, there is a user named charles, who is also the postmaster.&amp;nbsp; The email is addressed to a non-local user, &quot;charlesn&quot; (note the appended &quot;n&quot;). From: charlesn@domain.com To: charlesn@domain.com The global filtering rule is: If header &quot;FTRE&quot; contains &quot;charlesn@domain.com&quot; Delete &quot;&quot; I expect the email to be deleted before local delivery is attempted.&amp;nbsp; However, the emails are instead processed as Mon 11, 7:46:10: Job MG000001: sender address charlesn@domain.com&#039; is invalid Mon 11, 7:46:10: Job MG000001: Processing failed deliveries and generating notifications Mon 11, 7:46:21: Job MG000003: from &amp;lt;&amp;gt; (local) &amp;nbsp;&amp;nbsp; * Recipient &amp;lt;charlesn@domain.com&amp;gt; unknown &amp;nbsp;Mon 11, 7:46:21: Job MG000002: from postmaster@domain.com (local) &amp;nbsp;&amp;nbsp; To: charles(local) -OK 1. Is this due to the option &quot;Suppress validation of &#039;From&#039; field when processing mail&quot; (which is currently unchecked)?&amp;nbsp; Or have I made some mistake? 2. If this option is the problem, and I enable it, what other problems might I encounter? I&#039;m using v4.62, with modules MercuryS, MercuryE, MercuryI Thanks for your help, and this excellent product. Charles &amp;nbsp;

If header "FTRE" contains "charlesn@domain.com" Delete ""
I expect the email to be deleted before local delivery is attempted.  However, the emails are instead processed as
This filter only comes into play after the message has been received by MercuryS.
Mon 11, 7:46:10: Job MG000001: sender address charlesn@domain.com' is invalid
Mon 11, 7:46:10: Job MG000001: Processing failed deliveries and generating notifications
Mon 11, 7:46:21: Job MG000003: from <> (local)
   * Recipient <charlesn@domain.com> unknown
 Mon 11, 7:46:21: Job MG000002: from postmaster@domain.com (local)
   To: charles(local) -OK

1.

Is this due to the option "Suppress validation of 'From' field when

processing mail" (which is currently unchecked)?  Or have I made some

mistake?

Could be but I doubt it.  FWIW, if you turn this on it's only going to suppress looking for a valid format of the from: field address not the local user.
2. If this option is the problem, and I enable it, what other problems might I encounter?
You'll get messages with badly formatted e-mail addresses.

I'm using v4.62, with modules MercuryS, MercuryE, MercuryI
What you really need to do is reject this address in MercuryS.  If this is the MAIL FROM address then the "Reject mail for invalid local users" will reject it as soon as the address is seen.  If this is in the body of the message only then you will need to use transaction filtering.
&lt;blockquote&gt;If header &quot;FTRE&quot; contains &quot;charlesn@domain.com&quot; Delete &quot;&quot;&lt;/blockquote&gt;&lt;blockquote&gt;I expect the email to be deleted before local delivery is attempted.&amp;nbsp; However, the emails are instead processed as &lt;/blockquote&gt;This filter only comes into play after the message has been received by MercuryS. &lt;blockquote&gt;Mon 11, 7:46:10: Job MG000001: sender address charlesn@domain.com&#039; is invalid Mon 11, 7:46:10: Job MG000001: Processing failed deliveries and generating notifications Mon 11, 7:46:21: Job MG000003: from &amp;lt;&amp;gt; (local) &amp;nbsp;&amp;nbsp; * Recipient &amp;lt;charlesn@domain.com&amp;gt; unknown &amp;nbsp;Mon 11, 7:46:21: Job MG000002: from postmaster@domain.com (local) &amp;nbsp;&amp;nbsp; To: charles(local) -OK 1. Is this due to the option &quot;Suppress validation of &#039;From&#039; field when processing mail&quot; (which is currently unchecked)?&amp;nbsp; Or have I made some mistake?&lt;/blockquote&gt;Could be but I doubt it.&amp;nbsp; FWIW, if you turn this on it&#039;s only going to suppress looking for a valid format of the from: field address not the local user. &lt;blockquote&gt;2. If this option is the problem, and I enable it, what other problems might I encounter?&lt;/blockquote&gt;You&#039;ll get messages with badly formatted e-mail addresses. &lt;blockquote&gt; I&#039;m using v4.62, with modules MercuryS, MercuryE, MercuryI&lt;/blockquote&gt;What you really need to do is reject this address in MercuryS.&amp;nbsp; If this is the MAIL FROM address then the &quot;Reject mail for invalid local users&quot; will reject it as soon as the address is seen.&amp;nbsp; If this is in the body of the message only then you will need to use transaction filtering.

If domain.com is your local domain, then charlesn@domain.com is not a non-local address, it is a non-existent local address.

If domain.com is your local domain, then charlesn@domain.com is not a non-local address, it is a non-existent local address.
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