"Samuel Hill" <[EMAIL PROTECTED]> writes:
> > Auth: succeeded for user '[EMAIL PROTECTED]'
> > Data: 'MAIL FROM: <[EMAIL PROTECTED]>'
> > ===> MAIL FROM: <[EMAIL PROTECTED]>
> > sender: [EMAIL PROTECTED]
> >
> >[...]
> >
> > error: uncaptured python exception, closing channel
> > <__main__.SMTPChannel connected 192.168.4.26:3250 at 0x8237dcc>
> > (exceptions.KeyError:'getpwnam(): name not found'
> > [/usr/local/lib/python2.3/asyncore.py|read|69]
> > [/usr/local/lib/python2.3/asyncore.py|handle_read_event|387]
> > [/usr/local/lib/python2.3/asynchat.py|handle_read|136]
> > [/usr/local/tmda/bin/tmda-ofmipd|found_terminator|847]
> > [/usr/local/tmda/bin/tmda-ofmipd|process_message|1191]
> > [/usr/local/tmda/TMDA/Util.py|gethomedir|102])
> >
> >Is the 'google' user in /etc/passwd?
> >
> >TMDA is trying to find the 'google' user's home directory in order to
> >find the user's configuration file. It apparently can't get that
> >information.
> >
> >
> >Tim
>
> I figured out that problem, sort of.
> I needed to specify the home directory script.
Ok, so you're using vpopmail?
> My biggest problem now is that it depends on which version of python I
> am using.
This shouldn't matter at all.
> If I copy python2.3 to /usr/local/bin/python tmda-ofmipd works fine but
> TMDA-CGI no longer works.
> If I copy python2.2 into /usr/local/bin/python TMDA-CGI works but I get
> the following error message when I try to send a message.
/usr/local/bin/python should be a hard link to whichever version of
the binary you want to use; either python2.2 or python2.3. You
shouldn't have to copy anything. Also, like you noted below, you can
specify the particular version you want by running the specific
versioned binary.
> error: uncaptured python exception, closing channel
> <__main__.SMTPChannel connected 63.170.141.40:4842 at 0x8206a6c>
> (exceptions.KeyError:getpwnam(): name not found
> [/usr/local/lib/python2.2/asyncore.py|poll|100]
> [/usr/local/lib/python2.2/asyncore.py|handle_read_event|397]
> [/usr/local/lib/python2.2/asynchat.py|handle_read|130]
> [/usr/local/tmda/bin/tmda-ofmipd|found_terminator|847]
> [/usr/local/tmda/bin/tmda-ofmipd|process_message|1151]
> [/usr/local/tmda/TMDA/Util.py|getgid|97])
This indicates that tmda-ofmipd can't find the system user who
controls your virtual domain. You can find out the name of that user
by looking in /var/qmail/control/virtualdomains. The name after the
colon (':') is the system user that Python (and thus tmda-ofmipd)
can't find. If you're running vpopmail, this is normally 'vpopmail',
although it could be something else.
This is a function of your operating system and shouldn't have
anything to do with your version of Python.
> If I specify in tmda-ofmipd the first line the version of python to use
> it still looks at the libraries for 2.2.
> Example . #!/usr/bin/env /usr/local/bin/python2.3
That's not good. It sounds like your installation of 2.3 is screwed
up. Can you provide us more information about how you installed, what
platform you're running on, and so forth? Python compiles the correct
path for its libraries into the python2.3 (or python2.2) binary.
Also, for the above line, you don't need the /usr/bin/env. It just
searches the path and, since you're explicitly specifying the path,
you can just use this first line:
#!/usr/local/bin/python2.3
> Where else may I need to specify the different version of python for
> just ofmipd to use and not really effect the rest of the programs?
You can't. You just need to get your installation(s) fixed so that
Python works like it's supposed to.
Tim
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users