1 |
> |
2 |
> Most of these components will issue messages to syslog using the 'mail' |
3 |
> facility. If you configure your syslog daemon to route messages from |
4 |
> this facility to, say, /var/log/mail.log, you'll have all of the info |
5 |
> you need. |
6 |
> |
7 |
> If you're using syslog-ng, the following addition will do this for you: |
8 |
> |
9 |
> destination mail { file("/var/log/mail.log" perm(0644) ); }; |
10 |
> filter f_mail { facility(mail); }; |
11 |
> log { source(src); filter(f_mail); destination(mail); }; |
12 |
> |
13 |
> -- |
14 |
> gentoo-user@g.o mailing list |
15 |
> |
16 |
> |
17 |
|
18 |
for some reason qmail spreads things out into 3 or 4 or 5 different |
19 |
log files, one for sent, smtp, pop, imap etc, its a real pain to go |
20 |
through those files, i dont know if its qmail or syslog-ng thats doing |
21 |
it, but ive been wanting to find a way to combine all those logs into |
22 |
one mail.log file for easy grepping..... |
23 |
thanks for the input. |
24 |
|
25 |
-- |
26 |
gentoo-user@g.o mailing list |