[Mailman-Users] bounce runner day of year out of range error

2005-03-18 Thread Heather Madrone
Hello.

I'm running Mailman 2.1.5 on Mac OSX 10.2.8 using Python 2.4 and exim
4.42.  I have the bounce threshold set to 3.0, but Mailman only rarely manages
to disable accounts that have been bouncing solidly for weeks.

Before I set up Mailman on my own server, I was running it through an ISP.
During the several years I ran Mailman on that site, I only had a handful of
bouncers disabled.  I thought that was suspicious at the time, but it wasn't my
server, and so I couldn't get in under the hood.

I've been watching the exim traffic.  About 20 addresses have been failing
solidly for the past 3 weeks, but Mailman has only disabled 8 of them.  Every
few days, I get the following message:

Traceback (most recent call last):
  File /Applications/mailman/bin/qrunner, line 270, in ?
main()
 File /Applications/mailman/bin/qrunner, line 230, in main
   qrunner.run()
  File /Applications/mailman/Mailman/Queue/Runner.py, line 87, in run
   self._cleanup()
 File /Applications/mailman/Mailman/Queue/BounceRunner.py, line 220, 
in _cleanup
BounceMixin._cleanup(self)
  File /Applications/mailman/Mailman/Queue/BounceRunner.py, line 132, 
in _cleanup
   self._register_bounces()
  File /Applications/mailman/Mailman/Queue/BounceRunner.py, line 120, 
in _register_bounces
mlist.registerBounce(addr, msg, day=day)
  File /Applications/mailman/Mailman/Bouncer.py, line 131, in 
registerBounce
time.strftime('%d-%b-%Y', day + (0,)*6))
ValueError: day of year out of range

Auditing the bounce log, I can see that this error causes the bounce score of 
bouncers
to be reset.

Has anyone seen anything like this?  I've checked the FAQ and the sourceforge 
bug
page, and even gone Googling looking for this problem.  So far, I've turned up 
nothing.

-- 
Thank you,

Heather Madrone [EMAIL PROTECTED]
http://www.madrone.com
--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] bounce runner day of year out of range error

2005-03-18 Thread Mark Sapiro
Heather Madrone wrote:

I'm running Mailman 2.1.5 on Mac OSX 10.2.8 using Python 2.4 and exim
4.42.  I have the bounce threshold set to 3.0, but Mailman only rarely manages
to disable accounts that have been bouncing solidly for weeks.

snip

I've been watching the exim traffic.  About 20 addresses have been failing
solidly for the past 3 weeks, but Mailman has only disabled 8 of them.  Every
few days, I get the following message:

   Traceback (most recent call last):
 File /Applications/mailman/bin/qrunner, line 270, in ?
   main()
File /Applications/mailman/bin/qrunner, line 230, in main
  qrunner.run()
 File /Applications/mailman/Mailman/Queue/Runner.py, line 87, in run
  self._cleanup()
File /Applications/mailman/Mailman/Queue/BounceRunner.py, line 220, 
 in _cleanup
   BounceMixin._cleanup(self)
 File /Applications/mailman/Mailman/Queue/BounceRunner.py, line 132, 
 in _cleanup
  self._register_bounces()
 File /Applications/mailman/Mailman/Queue/BounceRunner.py, line 120, 
 in _register_bounces
   mlist.registerBounce(addr, msg, day=day)
 File /Applications/mailman/Mailman/Bouncer.py, line 131, in 
 registerBounce
   time.strftime('%d-%b-%Y', day + (0,)*6))
   ValueError: day of year out of range

I don't know what causes this error beyond the immediately obvious
ValueError, but I have an idea about bouncing users not being disabled.

Bounce processing was changed in 2.1.5. From the NEWS file -

- The bounce processor has been redesigned so that now when an
  address's bounce score reaches the threshold, that address will be
  sent a probe message.  Only if the probe bounces will the address
  be disabled.  The score is reset to zero when the probe is sent.
  Also, bounce events are now kept in an event file instead of in
  memory.  This should help contain the bloat of the BounceRunner.

  New supporting variables in Defaults.py: VERP_PROBE_FORMAT,
  VERP_PROBE_REGEXP

Check the 'bounce' log. The sending of a probe is logged. The question
is are probes being sent for all 20 or so addresses? If so, the
underlying problem may be that the VERP like probe address is not
being properly preserved and returned to the bounce processor when the
probe bounces.

If it turns out that this is the problem, I'm not sure what you can do
in 2.1.5, but 2.1.6 (in late beta) makes bounce probes optional and
off by default.

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

--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] bounce runner day of year out of range error

2005-03-18 Thread Jim Tittsler
On Mar 19, 2005, at 07:27, Heather Madrone wrote:
I'm running Mailman 2.1.5 on Mac OSX 10.2.8 using Python 2.4 and exim
[...]
	  File /Applications/mailman/Mailman/Bouncer.py, line 131, in 
registerBounce
	time.strftime('%d-%b-%Y', day + (0,)*6))
	ValueError: day of year out of range
This error occurs because Python 2.4's strftime() checks its arguments 
more strictly than earlier versions.

Three options are:
  1) switch to the 2.1.6beta versions, where this has already been fixed
  2) change line 131 of Bouncer.py to be:
   time.strftime('%d-%b-%Y', day + (0,0,0,0,1,0)))
  3) use Python 2.3
--
Jim Tittsler http://www.OnJapan.net/  GPG: 0x01159DB6
Python Starship  http://Starship.Python.net/
Ringo MUG Tokyo  http://www.ringo.net/rss.html
--
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=showamp;file=faq01.027.htp