1 (edited by nicolasfo 2016-02-08 18:40:12)

Topic: [RESOLVED] Send Dovecot logs to external syslog server fails

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4 fresh (non-updated)
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue: none
====
Hello,
I'm trying to send Dovecot logs to an external syslog server.
To do that, I use rsyslog on local server to send Dovecot received logs to my external syslogserver.
I use "syslog_facility = local5" in Dovecot conf.
When I use "logger -p local5.info "hello world" command, the message is sent and well received by my syslog server but I don't have any Dovecot logs on my syslog server.

What missed I ?

Thanks
Nicolas

----

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

2

Re: [RESOLVED] Send Dovecot logs to external syslog server fails

Problem solved, Dovecot doen't not accept "log_path" and "syslog_facility" simultaneously.
So I just set in dovecot.conf :

syslog_facility = local5

and in rsyslog.conf :

local5.*            @IP_RSYSLOG_SERVER:PORT
local5.*            -/var/log/dovecot.log

Thanks anyway wink
Nicolas