[syslog-ng] log smtp mail messages to a specific file
Patrick H.
syslogng at feystorm.net
Wed Jun 2 00:05:49 CEST 2010
Yes, that is perfectly valid and should work as you intend.
Sent: Tuesday, June 01, 2010 3:40:54 PM
From: Thanasis <thanasis at asyr.hopto.org>
To: Syslog-ng users' and developers' mailing list
<syslog-ng at lists.balabit.hu>
Subject: Re: [syslog-ng] log smtp mail messages to a specific file
> So, a more compact (and more efficient) edit would be:
>
> # diff syslog-ng.conf.orig syslog-ng.conf
> 15a16,19
>
>> filter mail {
>> facility(mail);
>> };
>>
>>
> 22a27
>
>> destination mail { file("/var/log/mail.log"); };
>>
> 31,32c36,37
> < log { source(src); destination(messages); };
> < log { source(src); destination(console_all); };
> ---
>
>> log { source(src); filter(mail); destination(mail); flags(final); };
>> log { source(src); destination(messages); destination(console_all); };
>>
>
> Thank you (both) for your suggestions (and warnings)!
> ;-)
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20100601/5da85145/attachment.htm
More information about the syslog-ng
mailing list