pop3d and logging

This is a discussion on pop3d and logging within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; hi! i have a problem logging pop3d connections. i set up qmail and pop3d as described in life-with-qmail. ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-17-2003
Rainer Collet
 
Posts: n/a
Default pop3d and logging

hi!

i have a problem logging pop3d connections. i set up qmail and pop3d
as described in life-with-qmail. everything works realy fine but the
pop3d logging. my setup is the following:

/service/qmail-pop3d/log/run:
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t \
/var/log/qmail/qmail-pop3d

the logdir exists:
# ls -lisa /var/log/qmail/qmail-pop3d
total 1
39246 1 drwxr-xr-x 2 qmaill root 35 Jul 17 12:17 .
35462 1 drwxr-xr-x 6 qmaill root 146 Jul 10 12:09
...

ps says the pop3d and its logging daemon run.

has anybody an idea?

thanks,
rainer
Reply With Quote
  #2 (permalink)  
Old 07-17-2003
Dave Sill
 
Posts: n/a
Default Re: pop3d and logging

rain_c1@web.de (Rainer Collet) writes:

> i have a problem logging pop3d connections. i set up qmail and pop3d
> as described in life-with-qmail. everything works realy fine but the
> pop3d logging. my setup is the following:


Note that if the logging isn't working, the pop3 service will
eventually block.

> /service/qmail-pop3d/log/run:
> #!/bin/sh
> exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t \
> /var/log/qmail/qmail-pop3d
>
> the logdir exists:
> # ls -lisa /var/log/qmail/qmail-pop3d
> total 1
> 39246 1 drwxr-xr-x 2 qmaill root 35 Jul 17 12:17 .
> 35462 1 drwxr-xr-x 6 qmaill root 146 Jul 10 12:09
> ..
>
> ps says the pop3d and its logging daemon run.
>
> has anybody an idea?


What does "qmailctl stat" or "svstat /service/* /service/*/log" say?

--
Dave Sill Oak Ridge National Lab, Workstation Support
Author, The qmail Handbook <http://web.infoave.net/~dsill>
<http://lifewithqmail.org/>: Almost everything you always wanted to know.
Reply With Quote
  #3 (permalink)  
Old 07-18-2003
Rainer Collet
 
Posts: n/a
Default Re: pop3d and logging

Dave Sill <MaxFreedom@sws5.ctd.ornl.gov> wrote in message news:<wx0isq1l2rn.fsf@sws5.ornl.gov>...

> What does "qmailctl stat" or "svstat /service/* /service/*/log" say?


# qmailctl stat
/service/qmail-send: up (pid 30374) 88534 seconds
/service/qmail-send/log: up (pid 754) 934000 seconds
/service/qmail-smtpd: up (pid 30376) 88534 seconds
/service/qmail-smtpd/log: up (pid 745) 934000 seconds
/service/qmail-pop3d: up (pid 30378) 88534 seconds
/service/qmail-pop3d/log: up (pid 746) 934000 seconds
messages in queue: 1
messages in queue but not yet preprocessed: 0

# svstat /service/* /service/*/log
/service/qmail-pop3d: up (pid 30378) 88597 seconds
/service/qmail-send: up (pid 30374) 88597 seconds
/service/qmail-smtpd: up (pid 30376) 88597 seconds
/service/qmail-pop3d/log: up (pid 746) 934063 seconds
/service/qmail-send/log: up (pid 754) 934063 seconds
/service/qmail-smtpd/log: up (pid 745) 934063 seconds

seems all to be ok i think. i am in state of confusion.
thanks for help,
rainer
Reply With Quote
  #4 (permalink)  
Old 07-18-2003
Dave Sill
 
Posts: n/a
Default Re: pop3d and logging

rain_c1@web.de (Rainer Collet) writes:

> /service/qmail-pop3d: up (pid 30378) 88597 seconds
> /service/qmail-pop3d/log: up (pid 746) 934063 seconds
>
> seems all to be ok i think. i am in state of confusion.


OK, so what's in /service/qmail-pop3d/run? What does "ps -ef|grep
readproctitle" say?

--
Dave Sill Oak Ridge National Lab, Workstation Support
Author, The qmail Handbook <http://web.infoave.net/~dsill>
<http://lifewithqmail.org/>: Almost everything you always wanted to know.
Reply With Quote
  #5 (permalink)  
Old 07-21-2003
Rainer Collet
 
Posts: n/a
Default Re: pop3d and logging

Dave Sill <MaxFreedom@sws5.ctd.ornl.gov> wrote in message news:<wx0isq0km5d.fsf@sws5.ornl.gov>...
> OK, so what's in /service/qmail-pop3d/run? What does "ps -ef|grep
> readproctitle" say?


# cat /service/qmail-pop3d/run:
#! /bin/sh
IPHOST=0
exec /usr/local/bin/softlimit -m 2000000 \
/usr/local/bin/tcpserver -H -R -l 0 $IPHOST 110
/var/qmail/bin/qmail-popup \
clnet01.complingua.net /usr/local/bin/checkcdb
/usr/sbin/relay-ctrl-allow /var/qmail/bin/qmail-pop3d Maildir 2>&1

# ps -ef|grep readproctitle
root 739 736 0 Jul07 ? 00:00:00 readproctitle service
errors: .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. ..........................................
........
root 17560 5031 0 10:18 pts/0 00:00:00 grep readproctitle

unfortunately readproctitle says nothing to me. what does the output
of the ps-command mean?

thanks for your help,
rainer
Reply With Quote
  #6 (permalink)  
Old 07-21-2003
Dave Sill
 
Posts: n/a
Default Re: pop3d and logging

rain_c1@web.de (Rainer Collet) writes:

> Dave Sill <MaxFreedom@sws5.ctd.ornl.gov> wrote in message news:<wx0isq0km5d.fsf@sws5.ornl.gov>...
>> OK, so what's in /service/qmail-pop3d/run? What does "ps -ef|grep
>> readproctitle" say?

>
> # cat /service/qmail-pop3d/run:
> #! /bin/sh
> IPHOST=0
> exec /usr/local/bin/softlimit -m 2000000 \
> /usr/local/bin/tcpserver -H -R -l 0 $IPHOST 110
> /var/qmail/bin/qmail-popup \
> clnet01.complingua.net /usr/local/bin/checkcdb
> /usr/sbin/relay-ctrl-allow /var/qmail/bin/qmail-pop3d Maildir 2>&1


You need the "-v" option to tcpserver to log connections. qmail-pop3d
doesn't do any logging.

> # ps -ef|grep readproctitle
> root 739 736 0 Jul07 ? 00:00:00 readproctitle service
> errors: .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. ..........................................
> .......
> root 17560 5031 0 10:18 pts/0 00:00:00 grep readproctitle
>
> unfortunately readproctitle says nothing to me. what does the output
> of the ps-command mean?


It means that supervise hasn't logged any errors from running "run"
scripts.

--
Dave Sill Oak Ridge National Lab, Workstation Support
Author, The qmail Handbook <http://web.infoave.net/~dsill>
<http://lifewithqmail.org/>: Almost everything you always wanted to know.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:03 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0