Postfix logging

From thelinuxwiki
Revision as of 16:16, 24 May 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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); };