[syslog-ng]Sending mail to root?

Florian Lindner syslog-ng@lists.balabit.hu
Mon, 18 Aug 2003 23:51:27 +0200


Hello,
I try to define a destination which sends the log entry to root:

destination d_mailroot { program("/usr/bin/mail -s '[syslog] Exception
detected' root"); };

But this is not working. mail does not notice that it should close stdin and 
send the mail. I think something like a EOF or at least in single line with a 
dot.
How can I accomplish sending the mail?
Thanks,
Florian