Re: [Mailman-Users] About Spam Filtering

2013-02-06 Thread Mark Sapiro
METU E-List Admin wrote:
>
>"^X-Mailer: (?!Microsoft Outlook .*)$" has single spacing between the 
>colon and the parenthesis. The screenshot is taken using Chrome on Ubuntu.


The screenshot is problematic for the reason that it is incomplete. The
whole page is not shown and the content of some of the text boxes is
longer than the box. It would be much better to post something like
the relevant part of

 bin/config_list -o - LISTNAME | grep -A20 header_filter_rules

to provide this information.


>We have removed the Mailman version number using the configuration file. 
>I think that configuration also removes the version number from the 
>headers. If it is a problem, we can convert it to the original state.


I don't think this would be a problem. The question still remains as to
why your header_filter_rules rule is apparently not working.

You could try applying the attached patch to
Mailman/Handlers/SpamDetect.py and restarting Mailman. This will
produce a 'debug' log in Mailman's logs/ directory with information
about all the header_filter_rules hits which may help find what's
going wrong.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--- test-mailman-2.1/Mailman/Handlers/SpamDetect.py 2012-02-05 
13:28:46.0 -0800
+++ test-mailman/Mailman/Handlers/SpamDetect.py 2013-02-06 08:16:35.390728500 
-0800
@@ -34,6 +34,7 @@
 from Mailman import i18n
 from Mailman.Utils import GetCharSet
 from Mailman.Handlers.Hold import hold_for_approval
+from Mailman.Logging.Syslog import syslog
 
 try:
 True, False
@@ -107,6 +108,7 @@
 if not pattern.strip():
 continue
 if re.search(pattern, headers, re.IGNORECASE|re.MULTILINE):
+syslog('debug', 'pattern: %s\naction: %s', pattern, action)
 if action == mm_cfg.DISCARD:
 raise Errors.DiscardMessage
 if action == mm_cfg.REJECT:
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] About Spam Filtering

2013-02-06 Thread METU E-List Admin

Hello,

This mail address is not registered to any mailing lists officially. I 
think we have to request a manual unsubscribe from the owner of the 
list. However, there are lots of mails like this and blocking them is 
much easier and better method.


"^X-Mailer: (?!Microsoft Outlook .*)$" has single spacing between the 
colon and the parenthesis. The screenshot is taken using Chrome on Ubuntu.


We have removed the Mailman version number using the configuration file. 
I think that configuration also removes the version number from the 
headers. If it is a problem, we can convert it to the original state.


Thanks,


On 02/02/2013 11:36 AM, Mark Sapiro wrote:

On 1/30/2013 11:42 PM, METU E-List Admin wrote:

The message was addressed to the list address. The email address I have
registered is not the owner of the list.

The message headers are:



[...]

X-BeenThere: fethiy...@googlegroups.com


I don't know why it would matter, but it seems your regis...@metu.edu.tr
list a member of this fethiy...@googlegroups.com google group. Do you
want that? Is all the problem mail coming via that google group? Do you
have any list settings to allow mail from that group?

However, if you haven't reordered the pipeline for this list, SpamDetect
which processes header_filter_rules comes first and should take precedence.


[...]

X-Mailer: Microsoft CDO for Windows 2000


It's hard to see from your jpeg image, but is it possible that your

^X-Mailer: (?!Microsoft Outlook .*)$

actually contains more than one space after the colon?


[...]

X-Mailman-Version:


Odd that this is empty ...



Reply-To: fethiy...@googlegroups.com

[...]



--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org