[Mailman-Users] header_filter_rules possible bug

2005-08-02 Thread Iain Pople
Hi,

I have noticed some unexpected behaviour with header_filter_rules.

I wanted to reject messages with an empty subject line so i came up  
with the following regex:

^subject:\s*$

However it wasn't working as desired. After delving around in the  
SpamDetect.py code i noticed that the re.search call is not using  
MULTILINE mode. So the headers are treated as one long string and ^  
would only match the beginning of the string.

Is this the desired behaviour? To me it makes more sense that it  
should use multiline mode.

i.e.:

--- SpamDetect.py.bak   2005-08-02 15:56:42.08327 +1000
+++ SpamDetect.py   2005-08-02 17:33:59.698226000 +1000
@@ -127,7 +127,7 @@
  for pattern in patterns.splitlines():
  if pattern.startswith('#'):
  continue
-if re.search(pattern, headers, re.IGNORECASE):
+if re.search(pattern, headers, re.IGNORECASE|re.MULTILINE):
  if action == mm_cfg.DISCARD:
  raise Errors.DiscardMessage
  if action == mm_cfg.REJECT:
@@ -137,3 +137,4 @@
  hold_for_approval(mlist, msg, msgdata,  
HeaderMatchHold)
  if action == mm_cfg.ACCEPT:
  return

--
Iain Pople
Systems Programmer
University of Melbourne

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] thousands of lists

2005-07-27 Thread Iain Pople
We are using Solaris UFS.

On 28/07/2005, at 2:55 PM, [EMAIL PROTECTED] wrote:

> On Thu, Jul 28, 2005 at 01:55:36PM +1000, Iain Pople wrote:
>
>> The concern is that on a unix filesystem it is very slow to access
>> directories with thousands of entries.
>>
>
> While I can't address your question directly, I can say that this
> isn't an issue.  Just use ReiserFS or set your ext2/3 filesystems to
> use dir_index.  Either one will give you hashed directory lookups and
> resolve this performance issue.

--
Iain Pople
Systems Programmer
University of Melbourne

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] thousands of lists

2005-07-27 Thread Iain Pople
Hi,

I need to setup a system with around 15,000 lists. Have other people  
been using mailman for such a large number of lists? One thing that  
concerns me is that there doesn't seem to be any support for a hashed  
directory structure for storing the the lists config and archives under:

$VAR_PREFIX/lists
$VAR_PREFIX/archives

The concern is that on a unix filesystem it is very slow to access  
directories with thousands of entries.

Apart from this are there likely to be an issues with hosting so many  
lists?

thanks, iain.
--
Iain Pople
Systems Programmer
University of Melbourne

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] performance tuning for sendmail and local users

2005-03-01 Thread Iain Pople
Hi,
I am setting up a Mailman instance that will deliver to around 10,000 
local users. Can anyone suggest appropriate settings for Mailman and 
Sendmail to optimize performance?

Specifically I am interested in suggestions for the following Mailman 
options:

SMTP_MAX_RCPTS
SMTP_MAX_SESSIONS_PER_CONNECTION
MAX_DELIVERY_THREADS
thanks, Iain.
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Re: list admin passwords failing [fixed]

2005-02-15 Thread Iain Pople
It is working now after an apache restart. go figure.
Iain Pople wrote:
No I haven't made any changes, but I have just discovered that if i 
submit the form as a GET request manually I can login. i.e:

http://host/cgi-bin/mailman/admin/soccer-uni?adminpw=password
However, once I am logged in I have the same problem, where If i change 
any settings the page just reloads. So it definitely looks like it is a 
problem with POST requests. The thing is I haven't changed anything in 
my apache setup for ages, so I can't see how this could be a problem.

Mark Sapiro wrote:
Have you made any change to the admlogin.html template(s), in
particular the line
   
?

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Re: list admin passwords failing

2005-02-15 Thread Iain Pople
No I haven't made any changes, but I have just discovered that if i 
submit the form as a GET request manually I can login. i.e:

http://host/cgi-bin/mailman/admin/soccer-uni?adminpw=password
However, once I am logged in I have the same problem, where If i change 
any settings the page just reloads. So it definitely looks like it is a 
problem with POST requests. The thing is I haven't changed anything in 
my apache setup for ages, so I can't see how this could be a problem.

Mark Sapiro wrote:
Have you made any change to the admlogin.html template(s), in
particular the line
   
?
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Re: list admin passwords failing

2005-02-15 Thread Iain Pople
Mark Sapiro wrote:
Your issue, if it is caused by a redirect discarding POST data as
mentioned in FAQ 4.45 would have to be a redirect which would affect 
URLs like http://lists.domain.com/cgi-bin/mailman/admin/ or
http://lists.domain.com/cgi-bin/mailman/admindb/ or whatever
you're using to access these pages.
I get the following in my apache logs so it looks like the POST is 
working ok anyway?

128.250.xx.xx - - [16/Feb/2005:09:03:56 +1100] "POST 
/cgi-bin/mailman/admin/soccer-uni HTTP/1.1" 200 2281

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Re: list admin passwords failing

2005-02-14 Thread Iain Pople
thanks for that. I had a look at the URL and maybe it has something to 
do with my redirects. I have the following rule:

RewriteRule ^/$ http://%{HTTP_HOST}/cgi-bin/mailman/listinfo [R]
Which essentially redirects pages from http://lists.domain.com -> 
http://lists.domain.com/cgi-bin/mailman/listinfo

Could this be causing the problem?
Mark Sapiro wrote:
If there is no red "Authorization failed." message at the top of the
page when it reloads, the problem isn't the passwords per se. The
information at
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.045.htp
may be of help.
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Re: list admin passwords failing

2005-02-14 Thread Iain Pople
I should also mention that this is not a cookies issue (at least not on 
the client end). I have tried with several browsers and double checked 
that cookies are enabled.

Iain Pople wrote:
Hi,
I have noticed in the last couple of days that all my list admin 
passwords are failing. I.e. I can't login to my lists via the admin web 
interface. I've had a look through the logs and can't see anything 
strange there.

When I try and login the page just reloads with the password prompt again.
I am using mailman 2.1.5.
I have tried resetting the password from the command line, but this 
makes no difference.

Has anyone else experienced this? Where else can I look to debug this 
behaviour?

thanks, Iain.
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] list admin passwords failing

2005-02-14 Thread Iain Pople
Hi,
I have noticed in the last couple of days that all my list admin 
passwords are failing. I.e. I can't login to my lists via the admin web 
interface. I've had a look through the logs and can't see anything 
strange there.

When I try and login the page just reloads with the password prompt again.
I am using mailman 2.1.5.
I have tried resetting the password from the command line, but this 
makes no difference.

Has anyone else experienced this? Where else can I look to debug this 
behaviour?

thanks, Iain.
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp