[Dovecot] Dovecot logs to syslog (other than MAIL)?
I see in the config file where I can enable syslog, but then all logging goes to the MAIL facility. I could find no reference to changing the facility:level for syslogging. Is that implemented, or planned?
I know I could just write it to a file, but I'd prefer to use syslog because then I can pipe it to a central logging server.
Am 23.11.2005 um 9:56 Uhr -0500 schrieb Steve Bigley:
I see in the config file where I can enable syslog, but then all logging goes to the MAIL facility. I could find no reference to changing the facility:level for syslogging. Is that implemented, or planned?
Seconded; I'd like to see that option, too. Both the MTA and the Dovecot output can get pretty large.
hauke
-- /~\ The ASCII Ribbon Campaign Hauke Fath \ / No HTML/RTF in email Institut für Nachrichtentechnik X No Word docs in email TU Darmstadt / \ Respect for open standards Ruf +49-6151-16-3281
I see in the config file where I can enable syslog, but then all logging goes to the MAIL facility. I could find no reference to changing the facility:level for syslogging. Is that implemented, or planned?
I have this in my 'How to build' guide:
By default, Dovecot does his logging to the 'LOG_MAIL' facility.
Since this facility is allready being used by Sendmail, Dovecot
needs to be instructed to use another facility.
To find all source files in which LOG_MAIL is used, start the
command (in the root source tree):
find . -type f | xargs -I{} egrep -l LOG_MAIL {}
This will produce a list of files, which contain 'LOG_MAIL'. Edit
these files and change 'LOG_MAIL' to 'LOG_LOCAL1'.
So logging is done to the local1 facility.
-Remy
Am Mittwoch, den 23.11.2005, 17:08 +0100 schrieb Remy Zandwijk:
I see in the config file where I can enable syslog, but then all logging goes to the MAIL facility. I could find no reference to changing the facility:level for syslogging. Is that implemented, or planned?
I have this in my 'How to build' guide:
By default, Dovecot does his logging to the 'LOG_MAIL' facility. Since this facility is allready being used by Sendmail, Dovecot needs to be instructed to use another facility.
To find all source files in which LOG_MAIL is used, start the command (in the root source tree):
find . -type f | xargs -I{} egrep -l LOG_MAIL {}
This will produce a list of files, which contain 'LOG_MAIL'. Edit these files and change 'LOG_MAIL' to 'LOG_LOCAL1'.
So logging is done to the local1 facility.
-Remy
I am doing something similar, but I am replacing the facilities on the fly:
% find . -type f | xargs -I{} sed -i -e "s/LOG_MAIL/LOG_LOCAL7/g" {}
happy hacking
Udo Rader
-- BestSolution.at EDV Systemhaus GmbH http://www.bestsolution.at
On 23.11.2005, at 16:56, Steve Bigley wrote:
I see in the config file where I can enable syslog, but then all logging goes to the MAIL facility. I could find no reference to changing the facility:level for syslogging. Is that implemented, or planned?
It had been in my TODO for a while. Added now syslog_facility setting to config file in CVS code.
participants (5)
-
Hauke Fath
-
Remy Zandwijk
-
Steve Bigley
-
Timo Sirainen
-
Udo Rader