<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#0050d0">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Yes, that is
perfectly valid and should work as you intend.</font></font><br>
<br>
Sent: Tuesday, June 01, 2010 3:40:54 PM<br>
From: Thanasis <a class="moz-txt-link-rfc2396E" href="mailto:thanasis@asyr.hopto.org"><thanasis@asyr.hopto.org></a><br>
To: Syslog-ng users' and developers' mailing list
<a class="moz-txt-link-rfc2396E" href="mailto:syslog-ng@lists.balabit.hu"><syslog-ng@lists.balabit.hu></a> <br>
Subject: Re: [syslog-ng] log smtp mail messages to a specific file
<blockquote cite="mid:4C057E66.1060707@asyr.hopto.org" type="cite">
<pre wrap="">So, a more compact (and more efficient) edit would be:
# diff syslog-ng.conf.orig syslog-ng.conf
15a16,19
</pre>
<blockquote type="cite">
<pre wrap="">filter mail {
facility(mail);
};
</pre>
</blockquote>
<pre wrap=""><!---->22a27
</pre>
<blockquote type="cite">
<pre wrap="">destination mail { file("/var/log/mail.log"); };
</pre>
</blockquote>
<pre wrap=""><!---->31,32c36,37
< log { source(src); destination(messages); };
< log { source(src); destination(console_all); };
---
</pre>
<blockquote type="cite">
<pre wrap="">log { source(src); filter(mail); destination(mail); flags(final); };
log { source(src); destination(messages); destination(console_all); };
</pre>
</blockquote>
<pre wrap=""><!---->
Thank you (both) for your suggestions (and warnings)!
;-)
______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a>
</pre>
</blockquote>
</body>
</html>