From: Steve H. <st...@th...> - 2006-09-11 07:12:52
|
On Sat, 2006-09-09 at 13:51 +0200, Lionel Bouton wrote: > Steve Heaven wrote the following on 06.09.2006 13:56 : > > We have just installed sqlgrey1.7.1 on a new server. > > It is working OK but the times in the logs are 5 hours behind the real > > time. > > Is this a timezone problem? If so where does sqlgrey get it's timezone > > info from ? > > SQLgrey uses syslog for logging. So the timestamps should be whatever > your syslog daemon thinks the time is (SQLgrey doesn't put any timestamp > in the logs, only the delays it introduces for some e-mails). > The strange thing was that postfix, dovecot, sqlgrey & spamd all log to /var/log/maillog, but only sqlgrey was getting the time wrong. I think it must have been a permissions thing. Postfix runs as user 'postfix', dovecot as 'dovecot', spamd as 'filter' and sqlgrey as 'sqlgrey'. All the other users were members of the group 'mail'. I made sqlgrey a member of 'mail', restarted sqlgrey and the time is now logged correctly. Steve -- thorNET Internet Services, Consultancy & Training www.thornet.co.uk |