Ok,

(warning.. long message with lots of pastes below =)  )

Checking the process list..

root     16289  0.0  1.0  1072  324 pts/2    S    12:20   0:00 supervise
/var/lock/qmail/smtpd tcpserver -v -x/etc/tcp.smtp.cdb -u50
qmaill   16290  0.0  0.9  1068  304 pts/2    S    12:20   0:00 accustamp
qmaill   16291  0.0  1.1  1084  340 pts/2    S    12:20   0:00 cyclog
/var/log/qmail/qmail-smtpd
qmaild   16292  0.0  1.6  1196  492 pts/2    S    12:20   0:00
tcpserver -v -x/etc/tcp.smtp.cdb -u503 -g502 0 smtp /var/qmail/bin/qm
root     16293  0.0  1.0  1072  324 pts/2    S    12:20   0:00 supervise
/var/lock/qmail/pop3d tcpserver -v 0 pop-3 /var/qmail/bin/q
qmaill   16294  0.0  0.9  1068  304 pts/2    S    12:20   0:00 accustamp
qmaill   16295  0.0  1.1  1084  340 pts/2    S    12:20   0:00 cyclog
/var/log/qmail/qmail-pop3d
root     16296  0.0  1.5  1196  488 pts/2    S    12:20   0:00 tcpserver -v
0 pop-3 /var/qmail/bin/qmail-popup mail.tandbergapplicat


So there is the supervise process, followed by accustamp, and cyclog for
both smtpd and pop3 (lines truncated).

Checking permissions on dirs cyclog is pointed to..

[root@hootch qmail]# ls -l | grep qmail-
drwxrwxr-x   2 qmaill   nofiles      4096 Nov 17 12:20 qmail-pop3d
drwxrwxr-x   2 qmaill   nofiles      4096 Nov 17 12:20 qmail-smtpd

When cyclog is started from the init string, it does create a @jibberish
file name in each dir.  I've found out testing during this message.. that
something IS indeed dumped to qmail-pop3d by cyclog, but it seems greatly
delayed vs the other logging.  However, the output looks near identical to
the output of smtpd.

here's a sample:

[root@hootch /etc]# cd /var/log/qmail
[root@hootch qmail]# cat ./qmail-smtpd/*
942859225.677233 tcpserver: status: 1/40
942859225.678613 tcpserver: pid 16302 from 12.35.161.57
942859225.700022 tcpserver: ok 16302
mail.tandbergapplications.com:12.35.161.8:25
dhcp-57.tandbergusa.com:12.35.161.57::1288
942859225.720118 bash: /home/jobu/.bashrc: Permission denied
942859225.866366 tcpserver: end 16302 status 0
942859225.866554 tcpserver: status: 0/40

[root@hootch qmail]# cat ./qmail-pop3d/*
942859335.990191 tcpserver: status: 1/40
942859335.991045 tcpserver: pid 16310 from 12.35.161.57
942859336.013881 tcpserver: ok 16310
mail.tandbergapplications.com:12.35.161.8:110
dhcp-57.tandbergusa.com:12.35.161.57::1290
942859336.353578 tcpserver: end 16310 status 256
942859336.353787 tcpserver: status: 0/40
942859647.757874 tcpserver: status: 1/40
942859647.758543 tcpserver: pid 16331 from 12.35.161.57
942859647.779994 tcpserver: ok 16331
mail.tandbergapplications.com:12.35.161.8:110
dhcp-57.tandbergusa.com:12.35.161.57::1293
942859647.895205 tcpserver: end 16331 status 256
942859647.895417 tcpserver: status: 0/40


First thing I saw was that bashrc error.  Looking at ~jobu, the bashrc file
points back to the system wide /etc/bashrc, which only contains 1 line.  sh
is linked to bash (rh I guess..), so it must be from the scripts called in
the smtpd process.  /etc/bashrc only contains this..

[root@hootch qmail]# cat /etc/bashrc
# /etc/bashrc

# System wide functions and aliases
# Environment stuff goes in /etc/profile

# For some unknown reason bash refuses to inherit
# PS1 in some circumstances that I can't figure out.
# Putting PS1 here ensures that it gets loaded every time.
PS1="[\u@\h \W]\\$ "

I don't know what PS1 is, but it doesn't seem to be causing problems..

So back to the pop3d logging.. I would expect to see some sort of auth
logging or something, yet it looks near identical to the smtpd logging.  Am
I just missing the boat here or what?

Thanks

-Steve
-----Original Message-----
From: Dave Sill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 17, 1999 10:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Thanks.. and help with logging


"Steve Kapinos" <[EMAIL PROTECTED]> wrote:

>    supervise /var/lock/qmail/pop3d tcpserver -v 0 pop-3
>/var/qmail/bin/qmail-popup mail.tandbergapplications.com \
>    /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1 | setuser
>qmaill accustamp | \
>    setuser qmaill cyclog /var/log/qmail/qmail-pop3d &
>
>Now, I've forgotten my shell basics so I forget which number represents
>which output, so the rest here is hacks of other people's work.

0 is standard input, 1 is standard output, and 2 is standard error.

>The smtp logging works fine, but I don't seem to get any kind of logging
out
>of the pop3d line.  How can I get some logging out of the pop3d part of the
>system?

Is /var/log/qmail/qmail-pop3d owned and writable by user qmaill? Do
you see the pop3d cyclog process running?

-Dave

Reply via email to