Changes

Jump to navigation Jump to search
701 bytes added ,  16:39, 5 October 2008
how to force (initial) qpsmtpd log rotation; how to recover from missing /var/log/qpsmtpd/state
Line 15: Line 15:  
e-smith-viewlogfiles-1.8.0-4 (released Nov 28 2007) or later will allow you to 'View' /var/log/qpsmtpd/state from 'View log files' in the server-manager (earlier versions conceal all files named "state" - [[bugzilla:3416|Bug 3416]]).
 
e-smith-viewlogfiles-1.8.0-4 (released Nov 28 2007) or later will allow you to 'View' /var/log/qpsmtpd/state from 'View log files' in the server-manager (earlier versions conceal all files named "state" - [[bugzilla:3416|Bug 3416]]).
   −
Currently, qplogsumm.pl is disabled by default.  Enable it with
+
=====Enable qplogsumm=====
 +
qplogsumm.pl is disabled by default.  Enable it with
 
  config setprop qpsmtpd qplogsumm enabled
 
  config setprop qpsmtpd qplogsumm enabled
 
  signal-event email-update
 
  signal-event email-update
 +
 +
=====Force first log rotation=====
 +
qplogsumm.pl only updates its statistics when the qpsmtpd log file is rotated.  This can take several days on a moderately busy server, and might take weeks or months on a small, home server.
 +
 +
You can force a rotation of the qpsmtpd log files in order to generate initial data in [[tt]/var/log/qpsmtpd/state[/tt] using
 +
kill -ALRM `cat /var/service/qpsmtpd/log/supervise/pid`
 +
 +
=====Potential Problems=====
 +
qplogsumm.pl will completely lock all in-bound email if [tt]/var/log/qpsmtpd/state[/tt] is missing when multilog attempts to rotate the qpsmtpd log file.  This can be resolved using
 +
  touch /var/log/qpsmtpd/state
 +
  sv restart /var/log/qpsmtpd
    
===Contribs & Addons===
 
===Contribs & Addons===

Navigation menu