1

Topic: how to putdown openldap.log into itself location ?

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: ubuntu14
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):ldap
- Web server (Apache or Nginx):apache
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====
openldap writes logs into syslog.
how can i change them into /var/log/openldap.log?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: how to putdown openldap.log into itself location ?

Check your syslog config file, make sure local4.* logs to /var/log/openldap.log.

3

Re: how to putdown openldap.log into itself location ?

where is syslog.conf on ubuntu14.04 ?
I can't see it under  /etc/.

4

Re: how to putdown openldap.log into itself location ?

Too lazy, man.

# ls -dl /etc/*syslog*

5

Re: how to putdown openldap.log into itself location ?

root@mail:/etc/postfix# ls -dl /etc/*syslog*
-rw-r--r-- 1 root root 1320 Aug 19  2014 /etc/rsyslog.conf
drwxr-xr-x 2 root root 4096 Jul 29 20:00 /etc/rsyslog.d

6

Re: how to putdown openldap.log into itself location ?

Ok 

i learned that ubuntu server uses rsyslog.conf  in /etc/rsyslog.d/

there is a iredmail.conf  in /etc/rsyslog.d

root@mail:/etc/rsyslog.d# cat iredmail.conf
local4.*                                                -/var/log/openldap.log
local1.*                                                -/var/log/cbpolicyd.log

ls -l  -rw------- 1 openldap openldap 0 Sep 13 06:49 /var/log/openldap.log

but why doesn't openldap write on it ?

ZhangHuangbin wrote:

Too lazy, man.

# ls -dl /etc/*syslog*

7

Re: how to putdown openldap.log into itself location ?

Hello Zhang
how can i do ?

yavuz.maslak wrote:

Ok 

i learned that ubuntu server uses rsyslog.conf  in /etc/rsyslog.d/

there is a iredmail.conf  in /etc/rsyslog.d

root@mail:/etc/rsyslog.d# cat iredmail.conf
local4.*                                                -/var/log/openldap.log
local1.*                                                -/var/log/cbpolicyd.log

ls -l  -rw------- 1 openldap openldap 0 Sep 13 06:49 /var/log/openldap.log

but why doesn't openldap write on it ?

ZhangHuangbin wrote:

Too lazy, man.

# ls -dl /etc/*syslog*