Hi All,

I've had a working installation of tmda (most recently, 1.0 and then 1.0.1 today as I tried to fix this problem) running for several months with very little troubles. As of last night, though, a lot of problems with TMDA started cropping up suddenly. I'm using a relatively complex setup, qmail with vpopmail, also with qmail-scanner running sophie and spamassassin.

The problem appears to be completely with TMDA and/or python, though. What happens is that incoming mail is passing through the scanner just fine, and invoking qmail-local to deliver to my inbox. At this point, it hits the .qmail file and spawns the "preline" process to run through tmda, which runs a python interpreter to process each mail.

What I'm seeing is that the python processes are spinning their wheels - eating up CPU and not doing much. When 5 or so emails queue up, the python processes are pretty much eating up the entire CPU and the machine bogs down...

I'm getting a bunch of errors exactly like these in the debug log:

Uncaught Python 2.3 Exception (Mon Feb  9 12:07:33 2004):
---------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/vpopmail/tmda/bin/tmda-filter", line 53, in ?
    execfile(os.path.join(execdir, 'tmda-rfilter'))
  File "/usr/local/vpopmail/tmda/bin/tmda-rfilter", line 891, in ?
    main()
  File "/usr/local/vpopmail/tmda/bin/tmda-rfilter", line 830, in main
    orig_msgin_size)
  File "./TMDA/FilterParser.py", line 920, in firstmatch
  File "./TMDA/FilterParser.py", line 717, in __search_file
  File "./TMDA/FilterParser.py", line 698, in __search_list
  File "./TMDA/Util.py", line 794, in findmatch
  File "/usr/local/lib/python2.3/fnmatch.py", line 38, in fnmatch
    return fnmatchcase(name, pat)
  File "/usr/local/lib/python2.3/fnmatch.py", line 69, in fnmatchcase
    _cache[pat] = re.compile(res)
  File "/usr/local/lib/python2.3/sre.py", line 179, in compile
    return _compile(pattern, flags)
  File "/usr/local/lib/python2.3/sre.py", line 229, in _compile
    raise error, v # invalid expression
error: bad character range


And these in the maillog:


Feb 9 12:07:33 ns qmail: 1076357253.811816 delivery 1612: deferral: See_/usr/local/vpopmail/domains/betalounge.com/brian/.tmda/logs/debug_for_traceback/

Prior to sunday night, though, this machine was happily running through thousands of emails. Nothing on this machine has changed from when the system was processing emails to when this problem suddenly appeared - the only thing that's changed at all is that I tried upgrading to tmda 1.0.1 to see if it would fix this problem (it didn't, the problem is exactly the same).

I should note that many users of this system DON'T have tmda installed, and mail delivery is working just fine for them - I really don't think it's an issue with qmail/vpopmail or any of the qmail-scanner stuff. Also, I've stopped running tmda at the moment because I need this server to process incoming mail - and my mail is coming in just fine now, albeit without tmda.

Any ideas? Why would this install run cleanly for months and then suddenly be having major python errors?

Brian


_____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users

Reply via email to