Problems with TMDA-CGI

Tanguy Lefebvre <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
Hi,
when  I log to tmda-cgi I get the following error, can anyone help?

Thank you in advance

A problem occurred in a Python script. Here is the sequence of  
function calls leading up to the error, in the order they occurred.

  /usr/local/tmda-cgi-0.16.4bis/tmda-cgi.py
   115 try:
   116   try:
   117     PVars = Session.Session(Form)
   118     CgiUtil.ErrTemplate = "error.html"
   119   except CgiUtil.NotInstalled, (ErrStr, PVars):
PVars undefined, Session = <module 'Session' from '/usr/local/tmda- 
cgi-0.16.4bis/Session.pyc'>, Session.Session = <class  
Session.Session>, Form = FieldStorage(None, None,  
[MiniFieldStorage('user...'azerty'), MiniFieldStorage('cmd', 'init')])
  /usr/local/tmda-cgi-0.16.4bis/Session.py in  
__init__(self=<Session.Session instance>, Form=FieldStorage(None,  
None, [MiniFieldStorage('user...'azerty'), MiniFieldStorage('cmd',  
'init')]))
   406             "Cannot execute %s" % Filename, "execute stub",
   407             "TMDA_VLOOKUP = %s" % os.environ["TMDA_VLOOKUP"],  
"Recompile CGI.")
   408         Params = Sandbox["getuserparams"](List)
   409         self.Vars["HOME"], self.Vars["UID"], self.Vars["GID"] =  
Params[0:3]
   410         if len(Params) > 3:
Params undefined, Sandbox = {'GetPrepend': <function GetPrepend>,  
'User': '[email protected]', '__builtins__': {'ArithmeticError':  
<class exceptions.ArithmeticError>, 'AssertionError': <class  
exceptions.AssertionError>, 'AttributeError': <class  
exceptions.AttributeError>, 'DeprecationWarning': <class  
exceptions.DeprecationWarning>, 'EOFError': <class  
exceptions.EOFError>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class  
exceptions.EnvironmentError>, 'Exception': <class  
exceptions.Exception>, 'False': False, 'FloatingPointError': <class  
exceptions.FloatingPointError>, ...}, '__doc__': 'Stub for interfacing  
to /var/qmail/users/assign', 'getuserparams': <function  
getuserparams>, 'os': <module 'os' from '/usr/lib/python2.4/os.pyc'>,  
'string': <module 'string' from '/usr/lib/python2.4/string.pyc'>,  
'sys': <module 'sys' (built-in)>}, List = []
  /usr/local/tmda-cgi-0.16.4bis/stubs/psa.py in getuserparams(List=[])
    38   UserList=User.split("@")
    39   if (len(UserList) > 1):
    40     prepend=GetPrepend(UserList[1])
    41   else:
    42     prepend=GetPrepend(None)
prepend undefined, global GetPrepend = <function GetPrepend>, UserList  
= ['test', 'neosmedia.be']
  /usr/local/tmda-cgi-0.16.4bis/stubs/psa.py in  
GetPrepend(dom='neosmedia.be')
    23         VirtualDomains="/var/qmail/control/virtualdomains"
    24         #VirtualDomains="/usr/local/tmda-cgi-0.16.4bis/ 
virtualdomains"
    25         F=open(VirtualDomains,"r")
    26         domLine=F.read();
    27         domList=domLine.split("\n")
F undefined, builtin open = <type 'file'>, VirtualDomains = '/var/ 
qmail/control/virtualdomains'
IOError: [Errno 13] Permission denied: '/var/qmail/control/ 
virtualdomains'
       args = (13, 'Permission denied')
       errno = 13
       filename = '/var/qmail/control/virtualdomains'
       strerror = 'Permission denied'
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.