Re: [Mailman-Users] spam discard expressions

I'm trying to ask a question about spam filters, using an example of spam I'm getting, but I'm getting this error:
The response was:
554 permanent error Contact your postmaster/admin for assistance. Please provide the following information in your problem report: time (Sep 22 22:16:42) and client (2607:f8b0:400e:c05::231).
Anyway around this? /jim

Maybe this is how to do it:
My spam filter is not working. I have this syntax: ^Subject: .*Example
And mail with this subject is still getting through: Subject: Desperate for a Example
What would be correct way to catch messages with "Example"?
thanks, jim
On Fri, Sep 22, 2017 at 6:19 PM, Jim Dory <james@dorydesign.com> wrote:
I'm trying to ask a question about spam filters, using an example of spam I'm getting, but I'm getting this error:
The response was:
554 permanent error Contact your postmaster/admin for assistance. Please provide the following information in your problem report: time (Sep 22 22:16:42) and client (2607:f8b0:400e:c05::231).
Anyway around this? /jim

On 09/22/2017 07:22 PM, Jim Dory wrote:
Maybe this is how to do it:
My spam filter is not working. I have this syntax: ^Subject: .*Example
And where are you putting this?
If you have that in bounce_matching_headers, you don't want the ^. The syntax there is the header followed by a regexp to match. E.g.
subject: .*example
or even (I think)
subject: ^.*example
Both the header and regexp are case insensitive.
If it's in header_filter_rules
^Subject: .*Example
should work (and it too is case insensitive).
And mail with this subject is still getting through: Subject: Desperate for a Example
If the above doesn't explain it, it's possible the header is rfc 2047 encoded as in
Subject: =?utf-8?b?RGVzcGVyYXRlIGZvciBhIEV4YW1wbGUK?=
which decodes to
Subject: Desperate for a Example
but headers should be rfc 2047 decoded for header_filter_rules but not for bounce_matching headers.
Also note that bounce_matching_headers is called "Legacy anti-spam filters" for a reason.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On 09/22/2017 07:19 PM, Jim Dory wrote:
I'm trying to ask a question about spam filters, using an example of spam I'm getting, but I'm getting this error:
The response was:
554 permanent error Contact your postmaster/admin for assistance. Please provide the following information in your problem report: time (Sep 22 22:16:42) and client (2607:f8b0:400e:c05::231).
Your email client is not giving you the reject reason which from mail.python.org's log is
Sep 22 22:16:42 mail postfix/smtpd[18989]: NOQUEUE: reject_warning: RCPT from mail-pg0-x231.google.com[2607:f8b0:400e:c05::231]: 554 5.7.1 <mailman-users@python.org>: Recipient address rejected: You must be a member to send to this address.; from=<jim.dory@gmail.com> to=<mailman-users@python.org> proto=ESMTP helo=<mail-pg0-x231.google.com>
I.e. post from your subscribed address which is james@dorydesign.com, not jim.dory@gmail.com
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Jim Dory
-
Mark Sapiro