Hello,

I am having a problem with getting tmda to work properly with qmail.
Right now the sender gets the email to comfirm, but my incoming filter
seems broke/unused and errors in debug log. Gut tells me python maybe
the problem. The instuctions seemed pretty simple, but here is what I
have:

0) Redhat 7.3 system with python rpms

 python2-2.1.1-2.72
 mod_python-2.7.6-1
 python-tools-1.5.2-42.72


1) tried to compile with source and got this:

[root@Knight tmda-0.68]# ./compileall
Traceback (innermost last):
  File "./compileall", line 95, in ?
    sys.exit(not main())
  File "./compileall", line 88, in main
    success = success and compile_dir(dir)
  File "./compileall", line 39, in compile_dir
    major, minor = sys.version_info[0:2]
AttributeError: version_info

2) So, not knowing any python, I installed it as a RPM with no
reported probs. Still wondering if the above is a problem????

  rpmbuild -tb tmda-0.68.tgz
  rpm -Uvh /usr/src/redhat/RPMS/noarch/tmda-0.68-1.noarch.rpm

3) converted plain test to db

 cat whitelist | db_load -T -t hash whitelist.db

4) other useful info:

cat ~/.tmda/logs/debug

Uncaught Python 2.1.1 Exception (Thu Jan 30 23:00:04 2003):
-----------------------------------------------------------
Traceback (most recent call last):
  File "/usr/bin/tmda-filter", line 53, in ?
    execfile(os.path.join(execdir, 'tmda-rfilter'))
  File "/usr/bin/tmda-rfilter", line 763, in ?
    main()
  File "/usr/bin/tmda-rfilter", line 710, in main
    orig_msgin_size)
  File "/usr/lib/python2.1/site-packages/TMDA/FilterParser.py", line
850, in firstmatch
    import cdb
ImportError: No module named cdb

**** Am I missing a module ??? *******

**** below is a basic /home/.tmda/filter/incoming *******

### ~/.tmda/filters/incoming (first match wins) ###

# Accept all bounces (messages with an empty envelope sender)
from <> ok

# Bounce all messages from yahoo.com
from *@=yahoo.dom bounce

# Include my blacklist and whitelist
from-dbm ~/.tmda/lists/blacklist.db drop
from-cdb ~/.tmda/lists/whitelist.cdb accept
#from-file -autodbm ~/.tmda/lists/nastygrams bounce
#from-file -autocdb ~/.tmda/lists/confirmed ok
#from-file ~/.tmda/lists/whitelist_wildcards accept

# Examine the message content
body "viagra|ginseng" confirm
headers 'Precedence:.*junk' reject
headers -case 'MAKE MONEY FAST' drop

*** only two uncommented lines in ~/.tmda/config *****

LOGFILE_DEBUG = os.path.expanduser("~/.tmda/logs/debug")
LOGFILE_INCOMING = os.path.expanduser("~/.tmda/logs/incoming")

[root@Knight lists]# tail /var/log/qmail/current |tai64nlocal

2003-01-30 23:50:20.077379500 info msg 69329: bytes 693 from
<[EMAIL PROTECTED]> qp 24128 uid 506
2003-01-30 23:50:20.089816500 starting delivery 1: msg 69329 to local
[EMAIL PROTECTED]
2003-01-30 23:50:20.089822500 status: local 1/10 remote 0/20
2003-01-30 23:50:20.719355500 delivery 1: deferral:
See_/home/dj/.tmda/logs/debug_for_traceback/
2003-01-30 23:50:20.719365500 status: local 0/10 remote 0/20

cat ~dj/.tmda/logs/debug

Uncaught Python 2.1.1 Exception (Thu Jan 30 23:50:20 2003):
-----------------------------------------------------------
Traceback (most recent call last):
  File "/usr/bin/tmda-filter", line 53, in ?
    execfile(os.path.join(execdir, 'tmda-rfilter'))
  File "/usr/bin/tmda-rfilter", line 763, in ?
    main()
  File "/usr/bin/tmda-rfilter", line 710, in main
    orig_msgin_size)
  File "/usr/lib/python2.1/site-packages/TMDA/FilterParser.py", line
845, in firstmatch
    raise MatchError(lineno, str(e))
MatchError: [line 16]: need 'c' or 'n' flag to open new db

Sorry if I posted to much info, I am greatful for any help offered.
thanks
dj
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to