> > Most of these components will issue messages to syslog using the 'mail' > facility. If you configure your syslog daemon to route messages from > this facility to, say, /var/log/mail.log, you'll have all of the info > you need. > > If you're using syslog-ng, the following addition will do this for you: > > destination mail { file("/var/log/mail.log" perm(0644) ); }; > filter f_mail { facility(mail); }; > log { source(src); filter(f_mail); destination(mail); }; > > -- > gentoo-user@gentoo.org mailing list > >
for some reason qmail spreads things out into 3 or 4 or 5 different log files, one for sent, smtp, pop, imap etc, its a real pain to go through those files, i dont know if its qmail or syslog-ng thats doing it, but ive been wanting to find a way to combine all those logs into one mail.log file for easy grepping..... thanks for the input. -- gentoo-user@gentoo.org mailing list