Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Date: 2007oct29 OS: Linux Q. Is there a way to get Postfix's copious logging in a separate file? A. Yes, first you instruct Postfix to use an alternate Syslog facility. Then direct that facility to a new file. In /etc/postfix/main.cf set:syslog_facility = local0In /etc/syslog.conf add "local0.none" to /var/log/messages to stop local0 messages going there:*.info;mail.none;authpriv.none;auth.none;cron.none;local0.none /var/log/messagesAlso in /etc/rsyslog.conf add this line: (Or maybe /etc/syslog depending on your system)local0.* -/var/log/postfixFinally, restart postfix and syslog and check /var/log/postfix
Add a commentSign in to add a comment