Postfix logging

From thelinuxwiki
Jump to: navigation, search

postfix and syslog-ng logging


added to /etc/syslog-ng/syslog-ng.conf

 destination mail { file("/var/log/mail.log"); };
 filter mail { facility(mail); };
 filter notmail { not facility(mail); };
 log { source(src); filter(mail); destination(mail); };
 log { source(src); filter(notmail); destination(messages); };