Howdy list (and mainly Gre7g),
I'm having another slight problem with tmda-cgi.
Again, for reference, here is my configure statement:
./configure --base-dir /usr/local/tmda --config-file \
'~/.tmdarc' --install-prefix /usr/local/tmda/tmda-cgi \
--virtual-lookup 'vpopmail1 /usr/local/vpopmail/bin/vuserinfo ~' \
--mode 'single-user' --target /usr/local/apache/cgi-bin/tmda.cgi \
--program-auth /usr/local/vpopmail/bin/vchkpw
Is my --config-file valid for vpopmail virtual user
directories? In other words, is the '~' translated to
the user's home dir (/usr/local/vpopmail/domains/trevarthan.int.wingnet.net/jesse)?
I ask because I'm getting this error upon logging in
after 'installing' TMDA with tmda-cgi on my test user,
[EMAIL PROTECTED] (not a real domain.
It only exists on my laptop.):
--------------------- begin crash output ---------------------
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/tmda-cgi/tmda-cgi.py
84 try:
85 try:
86 PVars = Session.Session(Form)
87 CgiUtil.ErrTemplate = "error.html"
88 except CgiUtil.NotInstalled, (ErrStr, PVars):
PVars undefined, Session = <module 'Session' from 'Session.pyc'>, Session.Session =
<class Session.Session>, Form = FieldStorage(None, None,
[MiniFieldStorage('user...word', 'test'), MiniFieldStorage('cmd', 'init')])
/usr/local/tmda/tmda-cgi/Session.py in __init__(self=<Session.Session instance>,
Form=FieldStorage(None, None, [MiniFieldStorage('user...word', 'test'),
MiniFieldStorage('cmd', 'init')]))
457
458 # Become the user
459 self.BecomeUser()
460
461 # Signal main program
self = <Session.Session instance>, self.BecomeUser = <bound method Session.BecomeUser
of <Session.Session instance>>
/usr/local/tmda/tmda-cgi/Session.py in BecomeUser(self=<Session.Session instance>)
275 try:
276 CWD = os.getcwd()
277 os.chdir(os.path.split(Defaults.TMDARC)[0])
278 Filename = Defaults.CGI_SETTINGS
279 F = open(Filename)
global os = <module 'os' from '/usr/local/lib/python2.2/os.pyc'>, os.chdir = <built-in
function chdir>, os.path = <module 'posixpath' from
'/usr/local/lib/python2.2/posixpath.pyc'>, os.path.split = <function split>, Defaults
= <module 'TMDA.Defaults' from '/usr/local/tmda/TMDA/Defaults.pyc'>, Defaults.TMDARC =
'~/.tmdarc'
OSError: [Errno 2] No such file or directory: '~'
__doc__ = 'OS system call failed.'
__getitem__ = <bound method OSError.__getitem__ of <exceptions.OSError instance>>
__init__ = <bound method OSError.__init__ of <exceptions.OSError instance>>
__module__ = 'exceptions'
__str__ = <bound method OSError.__str__ of <exceptions.OSError instance>>
args = (2, 'No such file or directory')
errno = 2
filename = '~'
strerror = 'No such file or directory'
--------------------- end crash output ---------------------
--
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v) 423-559-5145 (f)
http://www.wingnet.net
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users