OK. Running tmda-ofmipd directly as the vpopmail user works well. However,
I'm using the following command to execute tmda-ofmipd from daemontools' 
supervise:

su -l vpopmail -c "python /usr/local/tmda/bin/tmda-ofmipd -R imaps" 2>&1

As I noted above: This works.

But when I do a 'svc -d' to shut down tmda-ofmipd, the process has forked,
and thus continues executing. This isn't good.

Now, I believe that if I were to use sudo, this wouldn't happen.

However, does anyone know how to keep the tmda-ofmipd process from forking
WITH su? I don't want to complicate things by requiring that sudo be
installed if I don't have to.

Thanks!


On Friday 13 December 2002 08:48, Jesse Guardiani wrote:
> See comments below.
>
> 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
>
> We are actively looking for companies that do a lot of long
> distance faxing and want to cut their long distance bill by
> up to 50%.  Contact [EMAIL PROTECTED] for more info.
>
>
> ----- Original Message -----
> From: "Tim Legant" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 12, 2002 8:49 PM
> Subject: Re: tmda-tofmipd + vpopmail problem
>
> > Jesse Guardiani <[EMAIL PROTECTED]> writes:
> > > I get the following error when I try to authenticate with Microsoft IE,
> > > tmda-tofmipd (most recent), and vpopmail 5.2.1:
> >
> > It's not an authentication problem -- you were successfully
> > authenticated.  See explanation below.
>
> My manager and I had a debate about this. I said I authenticated, and he
> said I didn't.
> With pegasus mail, we really didn't authenticate, but I believe the error
> was similar in
> nature.
>
> > > -----------------------------------------------------------
> > > [17:13]jesse@lego:[/var/log/tmda-ofmipd]# python
>
> /usr/local/tmda/bin/tmda-ofmipd  tofmipd -R imap -d
>
> > Here you run tmda-ofmipd in global mode (as root).  That's the root
> > (pardon the pun) of the problem.  Also, it looks like a -u switch
> > might have gotten lost when copied and pasted?  If not, I don't
> > understand the 'tofmipd' in the command line.
>
> I may have been running that particular session without the -u mistakenly,
> or maybe it did get
> lost, but you're correct, 'tofmipd' is usually the user tmda-ofmipd runs
> as.
>
> > [...]
> >
> > > Auth:  succeeded for user '[EMAIL PROTECTED]'
> >
> > Here you were successfully authenticated.  Note that the authenticated
> > user is '[EMAIL PROTECTED]'.
>
> ok.
>
> > [...]
> >
> > > error: uncaptured python exception, closing channel
>
> <__main__.SMTPChannel
>
> > > connected 206.30.215.5:2484 at 0x821088c>
>
> (exceptions.KeyError:getpwnam():
> > > name not found [/usr/local/lib/python2.2/asyncore.py|poll|95]
> > > [/usr/local/lib/python2.2/asyncore.py|handle_read_event|392]
> > > [/usr/local/lib/python2.2/asynchat.py|handle_read|130]
> > > [/usr/local/tmda/bin/tmda-ofmipd|found_terminator|713]
> > > [/usr/local/tmda/bin/tmda-ofmipd|process_message|981]
> > > [./TMDA/Util.py|getgid|86])
> >
> > What dies here is a call to getgid.  When you run as root, tmda-ofmipd
> > tries to get the group id of the authenticated user.  Since there is
> > almost certainly no real user on the system with the username
> > '[EMAIL PROTECTED]', that request fails.
>
> AH! I'm used to Java debug outputs, in which the FIRST line is the only
> important line.
> So I assumed that either an SMTP error had occured, or a call to getpwnam()
> had
> failed. I see that this is reversed, and the last line is most important.
> Thanks!!
>
> > The workaround is to run tmda-ofmipd as the vpopmail user and not as
> > root.  In other words, use su or sudo to run tmda-ofmipd as vpopmail
> > (or whatever that user is called on your system).  Specifying the -u
> > switch isn't enough.
>
> understood. I'll try this.
>
> > > I tried it with Pegasus Mail (CRAM-MD5 AUTH), and it didn't even
> > > authenticate.
> >
> > Well, let's solve one problem at a time :)
>
> Sure. Thanks for the help! Much appreciated.
>
> > Tim
> > _____________________________________________
> > tmda-users mailing list ([EMAIL PROTECTED])
> > http://tmda.net/lists/listinfo/tmda-users
>
> _____________________________________________
> tmda-users mailing list ([EMAIL PROTECTED])
> http://tmda.net/lists/listinfo/tmda-users

-- 
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

We are actively looking for companies that do a lot of long
distance faxing and want to cut their long distance bill by
up to 50%.  Contact [EMAIL PROTECTED] for more info.


_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to