Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-2006, 09:46 PM
Member
 
Posts: 13
Default /var/log/zimbra.log is empty: why?

I installed the zimbra development version 3.0/M3 for Suse10

All went well, no errors in zmsetup.log.
Zimbra service Mysql/postfix etc running.
Zimbra admin is running on port 7071, the client op port 7070

So far so good.

My problem: I can see messages arriving in /opt/zimbra/store but
they are not visible in my client.

I checked the /var/log/zimbra.log but it stays empty.
Any reason why, it doesn't help me debugging!
__________________
regards

Hans
Reply With Quote
  #2 (permalink)  
Old 01-18-2006, 10:19 PM
Zimbra Employee
 
Posts: 2,103
Default syslog.conf

syslog.conf may be incorrectly configured. /var/log/maillog will probably have postfix logs
Reply With Quote
  #3 (permalink)  
Old 01-19-2006, 10:31 AM
Member
 
Posts: 13
Question This the current content of syslogd.conf is it ok?

Quote:
Originally Posted by marcmac
syslog.conf may be incorrectly configured. /var/log/maillog will probably have postfix logs
So back home again, time to check the settings:

This the current content of /etc/syslog.conf:
local0.* -/var/log/zimbra.log
mail.* -/var/log/zimbra.log

This looks like the default from zimbra, is it complete?
__________________
regards

Hans

Last edited by Dude; 01-19-2006 at 10:46 AM..
Reply With Quote
  #4 (permalink)  
Old 01-19-2006, 11:18 AM
Member
 
Posts: 13
Talking Zimbra is sending and receiving mail but /var/log/zimbra.log is still empty

OK, receiving mail problem resolved.

Setting the dns check off worked.

But the zimbra messages get scattered around
/var/log/mail /var/log/messages etc

See my post about my syslog.conf: what is wrong?
__________________
regards

Hans

Last edited by Dude; 01-19-2006 at 11:50 AM..
Reply With Quote
  #5 (permalink)  
Old 01-19-2006, 11:33 AM
Zimbra Employee
 
Posts: 2,103
Default syslog

Have you tried restarting syslogd? Does /var/log/zimbra.log exist? Have you read the syslog man page?
Reply With Quote
  #6 (permalink)  
Old 01-19-2006, 11:56 AM
Member
 
Posts: 13
Default

Quote:
Originally Posted by marcmac
Have you tried restarting syslogd? Does /var/log/zimbra.log exist? Have you read the syslog man page?
1. Executed once more:
/etc/init.d/syslog restart:

2. zmcontrol stop and then start

3. ls -la /var/log/zimbra.log:
-rw-r--r-- 1 zimbra zimbra 0 Jan 19 06:20 /var/log/zimbra.log

Still no entries.
I was hoping to skip the manpage step.
But if it is needed, is this Suse 10 related or just a config issue?
__________________
regards

Hans
Reply With Quote
  #7 (permalink)  
Old 01-19-2006, 11:59 AM
Zimbra Employee
 
Posts: 2,103
Default sylog client

my box (not suse) has the logger command:

logger -p mail.err "test message"
will syslog a message at the mail.err level.

Could be a suse issue - try dropping the '-' before the filenames in syslog.conf - could be they don't support async syslog (which would be sub-optimal, imho)
Reply With Quote
  #8 (permalink)  
Old 01-19-2006, 12:07 PM
Member
 
Posts: 13
Default logger util works, removing the dash not

Puzzling:

1. logger -p mail.err "test"
Works! message shows up in the /var/log/mail.err

2. logger -p zimbra.log "test message"
Results in the message
logger: unknown facility name: zimbra.

**Edit**
Found the source of the problem:
syslog.conf is not used at all!
syslog-ng is installed by default

Will do a manual study and come back or switch to syslog

thx for the suggestions!
__________________
regards

Hans

Last edited by Dude; 01-19-2006 at 12:10 PM..
Reply With Quote
  #9 (permalink)  
Old 01-19-2006, 12:18 PM
Zimbra Employee
 
Posts: 2,103
Default syslog facilities

zimbra isn't a legal facility. We log under two facilities: mail, and LOCAL0.

Is zimbra running? Does anything show up in /var/log/maillog, postfix related? Could just be local0 that's choking.
Reply With Quote
  #10 (permalink)  
Old 01-19-2006, 12:33 PM
Member
 
Posts: 13
Default My solution for using syslog-ng

For those who will encounter this problem, this what I have changed to get logging in zimbra.log for syslog-ng (used a.o. in SuSe 10):

1. edit /etc/syslog-ng/syslog-ng.conf
2. change the following line:
Code:
destination mail { file("/var/log/zimbra.log"); };
    log { source(src); filter(f_mail); destination(mail); };
3. Add these lines at the bottom:
Code:
# Zimbra
destination local0 { file("/var/log/zimbra.log"); };
log { source(src); destination(local0); };
Note: could be that I have to do some fine-tuning but it works for now
__________________
regards

Hans

Last edited by Dude; 01-19-2006 at 12:57 PM.. Reason: wrong file mentioned!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.