Sorry for the preceding mispost!
I run the poplogger script with setlock for my qmail-pop3d invocation.
After running fine for two days, I get an error similar to:
setlock:... poplogger.sh: permission denied
and popping fails.
What's strange is that poplogger.sh is set to 755:
-rwxr-xr-x 1 root wheel 376 Oct 29 12:13 poplogger.sh
Setlock is also set to 755. Any ideas?
Here's how I run qmail-pop3d:
csh -cf '/bin/qmailpop3drc &'
This is qmailpop3drc:
/usr/contrib/bin/tcpserver -c 40 0 pop3 \
/var/qmail/bin/qmail-popup mail.fwi.com \
/bin/checkpassword /usr/contrib/bin/setlock -nx Maildir/.poplock \
/bin/poplogger.sh /var/qmail/bin/qmail-pop3d Maildir
Checkpassword is patched to log to syslog in a manner borrowed from
existing checkpassword patches:
http://mail.fwi.com/qmail-1.03/pp-syslog.patch
This is the poplogger.sh script:
#!/bin/sh
/bin/echo " $USER: began with: " \
`/bin/ls /var/mail/${USER}/new/ | wc -l` "+"\
`/bin/ls /var/mail/${USER}/cur/ | wc -l` \
| /var/qmail/bin/splogger qmail-pop3d 3
$*
/bin/echo " $USER: ended with: " \
`/bin/ls /var/mail/${USER}/new/ | wc -l` "+"\
`/bin/ls /var/mail/${USER}/cur/ | wc -l` \
| /var/qmail/bin/splogger qmail-pop3d 3
P. Pirn - Sys Admin - see complete headers for more info