About processes

2001-08-09 Thread ari


Hi,

ps ax | grep qmail-remote

shows the running processes that are currently sending message, each
process
is a message been sent, ok?

ps ax | grep qmail-smtpd

show the running processes that are currently arriving, right? But it
shows:

 1016 ?S  4:30
/usr/local/bin/tcpserver -v -H -uQMAILDUID -gNOFILESGID 0 smtp
/var/qmail/bin/qmail-smtpd
15498 ?S  0:44 /var/qmail/bin/qmail-smtpd
19168 ?S  0:00
/usr/local/bin/tcpserver -v -H -uQMAILDUID -gNOFILESGID 0 smtp
/var/qmail/bin/qmail-smtpd

How many messages are arriving? 1, 2 or 3?

Thanks,

Ari



Re: About processes

2001-08-09 Thread Brett Randall

 On Thu, 09 Aug 2001 22:46:27 GMT, [EMAIL PROTECTED] said:

 1016 ?S  4:30 
   /usr/local/bin/tcpserver -v -H -uQMAILDUID -gNOFILESGID 0 smtp
   /var/qmail/bin/qmail-smtpd
 15498 ?S  0:44 /var/qmail/bin/qmail-smtpd
 19168 ?S  0:00
   /usr/local/bin/tcpserver -v -H -uQMAILDUID -gNOFILESGID 0 smtp
   /var/qmail/bin/qmail-smtpd

You've got two problems here:

1. Your setup script is passing the args QMAILDUID and NOFILESGID to
   tcpserver. Try passing $QMAILDUID and $NOFILESGID.

2. Your setup script has spawned tcpserver on port 25 (smtp)
   twice. (Either that, or you've started qmail twice). Those tcpserver
   lines simply show that your server is waiting for a connection on port
   25. The /var/qmail/bin/qmail-smtpd line is the one which shows an open
   connection.
-- 
C:\DOS C:\DOS\RUN RUN\DOS\RUN 
C:\WINDOWS C:\WINDOWS\GO C:\PC\CRAWL



Re: About processes

2001-08-09 Thread Chris Johnson

On Thu, Aug 09, 2001 at 10:46:27PM +, [EMAIL PROTECTED] wrote:
 ps ax | grep qmail-remote
 
 shows the running processes that are currently sending message, each process
 is a message been sent, ok?

Right.

 ps ax | grep qmail-smtpd
 
 show the running processes that are currently arriving, right? But it
 shows:
 
  1016 ?S  4:30
 /usr/local/bin/tcpserver -v -H -uQMAILDUID -gNOFILESGID 0 smtp
 /var/qmail/bin/qmail-smtpd
 15498 ?S  0:44 /var/qmail/bin/qmail-smtpd
 19168 ?S  0:00
 /usr/local/bin/tcpserver -v -H -uQMAILDUID -gNOFILESGID 0 smtp
 /var/qmail/bin/qmail-smtpd
 
 How many messages are arriving? 1, 2 or 3?

One, but whatever script you're using to start qmail-smtpd is screwed up. To
fix it, you probably need to change -uQMAILDUID -gNOFILESGID to -u$QMAILDUID
-g$NOFILESGID.

And when you get things straightened out, you should never have two invocations
of tcpserver running on the same port at the same time (like you do above),
though you can have many qmail-smtpds running at the same time (one for each
incoming SMTP connection).

Chris

 PGP signature


Re: About processes

2001-08-09 Thread Charles Cazabon

Brett Randall [EMAIL PROTECTED] wrote:
  On Thu, 09 Aug 2001 22:46:27 GMT, [EMAIL PROTECTED] said:
 
  1016 ?S  4:30 
/usr/local/bin/tcpserver -v -H -uQMAILDUID -gNOFILESGID 0 smtp
/var/qmail/bin/qmail-smtpd
  15498 ?S  0:44 /var/qmail/bin/qmail-smtpd
  19168 ?S  0:00
/usr/local/bin/tcpserver -v -H -uQMAILDUID -gNOFILESGID 0 smtp
/var/qmail/bin/qmail-smtpd

[...] 
 2. Your setup script has spawned tcpserver on port 25 (smtp)
twice.

No.  tcpserver forks for each connections, and then spawns it's child
process.  This is normal.

To answer the original poster's question, this shows one message
currently being received over the network (the process which is
/var/qmail/bin/qmail-smtpd).

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
---



Re: About processes

2001-08-09 Thread ari


I've fixed up the tcpserver, thanks!

So each qmail-remote is a message going out and each qmail-smtpd without
tcpserver is a message arriving.

Thanks,

Ari



Re: About processes

2001-08-09 Thread ari


Now I've change the variable, -uQMAILDUID -gNOFILESGID to -u$QMAILDUID
-g$NOFILESGI and restarted qmail, but sometimes I can it twice processes
of:

 2173 pts/0S  0:00 /usr/local/bin/tcpserver -v -H -u401 -g400 0
smtp /var/qmail/bin/qmail-smtpd
 2714 pts/0S  0:00 /usr/local/bin/tcpserver -v -H -u401 -g400 0
smtp /var/qmail/bin/qmail-smtpd

or 3 times:

 2831 pts/0S  0:00 /usr/local/bin/tcpserver -v -H -u401 -g400 0
smtp /var/qmail/bin/qmail-smtpd
 2173 pts/0S  0:00 /usr/local/bin/tcpserver -v -H -u401 -g400 0
smtp /var/qmail/bin/qmail-smtpd
 2830 pts/0S  0:00 /usr/local/bin/tcpserver -v -H -u401 -g400 0
smtp /var/qmail/bin/qmail-smtpd

Why?

Thanks,

Ari


[EMAIL PROTECTED] escreveu:

 
 I've fixed up the tcpserver, thanks!
 
 So each qmail-remote is a message going out and each qmail-smtpd without
 tcpserver is a message arriving.
 
 Thanks,
 
 Ari