[qmailtoaster] I (still) want to log to splogger and multilog

2005-09-01 Thread Joseph Lundgren








Hi everyone!



Sorry to post this again, I
feared that since it was my first posting to the list that it may have been
ignored or discarded by the mail manager. Also, I still desperately need an
answer.



I (still) want to log
qmail-smtpd and qmail-send to BOTH splogger and multilog. Does anyone know how
this might be accomplished?



Currently, I'm logging only
to splogger, as my organization requires that mail logs be collected in a
central logging server, but this has caused qmailmrtg to stop collecting
statistics. I modified the installation file
/var/qmail/supervise/send/log/run to look like this:



#!/bin/sh

exec /usr/bin/setuidgid
qmaill /var/qmail/bin/splogger qmail-send 21





I have attempted to
trick the logging supervisory script by adding the old standbys |
or  then adding the standard multilog script commands, but it
didn't work. The modified script was:



#!/bin/sh

LOGSIZE=`cat
/var/qmail/control/logsize` LOGCOUNT=`cat /var/qmail/control/logcount` exec
/usr/bin/setuidgid qmaill /var/qmail/bin/splogger qmail-send 21 
exec /usr/bin/setuidgid qmaill /usr/bin/multilog t s$LOGSIZE n$LOGCOUNT
/var/log/qmail/send 21





I have also tried reversing
the order of execution of the logging routines, putting multilog before
splogger. This, also, did not result in the desired functionality.





Has anyone accomplished this
without hacking the sourcecode and recompiling (defeating the purpose of a
toaster)? If so, please tell me what you did.





Thank you.



--

Joseph Lundgren

Systems Administrator

Peak Internet, LLC

[EMAIL PROTECTED]










Re: [qmailtoaster] I (still) want to log to splogger and multilog

2005-09-01 Thread Nick Hemmesch
 Hi everyone!



 Sorry to post this again, I feared that since it was my first posting to
 the list that it may have been ignored or discarded by the mail manager.
 Also, I still desperately need an answer.



 I (still) want to log qmail-smtpd and qmail-send to BOTH splogger and
 multilog. Does anyone know how this might be accomplished?



 Currently, I'm logging only to splogger, as my organization requires
 that mail logs be collected in a central logging server, but this has
 caused qmailmrtg to stop collecting statistics.  I modified the
 installation file   /var/qmail/supervise/send/log/runto look like
 this:



 #!/bin/sh

 exec /usr/bin/setuidgid qmaill /var/qmail/bin/splogger qmail-send 21





 I have attempted to trick the logging supervisory script by adding the
 old standbys  |  orthen adding the standard multilog script
 commands, but it didn't work.  The modified script was:



 #!/bin/sh

 LOGSIZE=`cat /var/qmail/control/logsize` LOGCOUNT=`cat
 /var/qmail/control/logcount` exec /usr/bin/setuidgid qmaill
 /var/qmail/bin/splogger qmail-send 21  exec /usr/bin/setuidgid
 qmaill /usr/bin/multilog t s$LOGSIZE n$LOGCOUNT /var/log/qmail/send 21





 I have also tried reversing the order of execution of the logging
 routines, putting multilog before splogger.  This, also, did not result
 in the desired functionality.





 Has anyone accomplished this without hacking the sourcecode and
 recompiling (defeating the purpose of a toaster)?  If so, please tell
 me what you did.





 Thank you.



 --

 Joseph Lundgren

 Systems Administrator

 Peak Internet, LLC

 [EMAIL PROTECTED]



Hi Joseph,

I, personally, do not know of a way to run both. I'm sure it can be done
but, it's beyond the scope of where we want to go with qmailtoaster.

I will forward anything I find that will help you.

Regards,

Nick



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [qmailtoaster] I (still) want to log to splogger and multilog

2005-09-01 Thread Wayne Blick
  Sorry to post this again, I feared that since it was my first posting to
  the list that it may have been ignored or discarded by the mail manager.
  Also, I still desperately need an answer.
 
  I (still) want to log qmail-smtpd and qmail-send to BOTH splogger and
  multilog. Does anyone know how this might be accomplished?
 
  Joseph Lundgren
  Systems Administrator
  Peak Internet, LLC
 
 

 Hi Joseph,

 I, personally, do not know of a way to run both. I'm sure it can be done
 but, it's beyond the scope of where we want to go with qmailtoaster.

 I will forward anything I find that will help you.

 Regards,

 Nick



You could try something like:

# /var/qmail/supervise/send/log/run
TEMP=/safedir/whatever
exec /usr/bin/setuidgid qmaill tee $TEMP| /usr/bin/multilog t
/var/log/qmail/send 21
cat $TEMP|splogger
rm $TEMP

The timestamp from splogger won't be 100% accurate this way but then it's
not 100% reliable either :)

Regards,
Wayne Blick


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]