|
I am going to try and send this again to the
list.
Tmda.net was not reachable for some
reason?
My comments are below.
>"Samuel
Hill" <[EMAIL PROTECTED]> writes:
> >> > Auth: succeeded for user '[EMAIL PROTECTED]' >> > Data: 'MAIL FROM: <[EMAIL PROTECTED]>' >> > =3D=3D=3D> 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 >> =20 >> 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. Looking at /var/qmail/control/virtualdomains the above description is not how my file is layed out. I am using vpopmail 5.3.20. I guess vpopmail knows it is only going to control all virtual domains by a single user, I think this was vpopmails idea. I looked through an older machine and it is the same way. Mine looks like this Mydomain.com:mydomain.com If I understand you correctly Python is making an error? If Python is looking at the part after the colon as the user that controls the domain then Python would be making an error. The part after the colon is an ID (the id could be any identifier that is kind of unique in identifying the domain it is mapped to) not a user ID. I do not think this is unique to me, I think the design of qmail was the the virtualdomains file is just a mapping of domains to unique identifiers or users. The first part matches all users in the domain and maps it to the domain or a user if you want. http://www.lamer.de/maex/creative/software/qmail/qmailsys.html http://www.lifewithqmail.com/lwq.html#virtual-domains If I set the virtualdomains file to be mydomain.com:vpopmail I can then send email without the above error message. The problem is that then all email going to mydomain.com will be forwarded to the user vpopmail. Let me know what you think. If the above is the problem I guess I need to find a way to tell ofmipd to ignore the virtualdomains file and just use vpopmail. Sam > >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-ofmipd - Sending Samuel Hill
- Re: tmda-ofmipd - Sending Jason R. Mastaler
- Re: tmda-ofmipd - Sending Tim Legant
- Re: tmda-ofmipd - Sending Samuel Hill
- Re: tmda-ofmipd - Sending Tim Legant
- Re: tmda-ofmipd - Sending Sam
- Re: tmda-ofmipd - Sending Tim Legant
- Re: tmda-ofmipd - Sending Sam
