Code

Merge remote-tracking branch 'github/pr/387'
[collectd.git] / src / collectd-email.pod
1 =encoding UTF-8
3 =head1 NAME
5 collectd-email - Documentation of collectd's C<email plugin>
7 =head1 SYNOPSIS
9   # See collectd.conf(5)
10   LoadPlugin email
11   # ...
12   <Plugin email>
13     SocketGroup "collectd"
14     SocketPerms "0770"
15     MaxConns 5
16   </Plugin>
18 =head1 DESCRIPTION
20 The C<email plugin> opens an UNIX-socket over which one can submit email
21 statistics, such as the number of "ham", "spam", "virus", etc. mails
22 received/handled, spam scores and matched spam checks.
24 This plugin is intended to be used with the
25 L<Mail::SpamAssassin::Plugin::Collectd> SpamAssassin-plugin which is included
26 in F<contrib/>, but is of course not limited to that use.
28 =head1 OPERATION
30 This plugin collects data indirectly by providing a UNIX-socket that external
31 programs can connect to. A simple line based protocol is used to communicate
32 with the plugin:
34 =over 4
36 =item
38 E-Mail type (e.g. "ham", "spam", "virus", ...) and size (bytes):
40   e:<type>:<size>
42 If C<size> is less than or equal to zero, C<size> is ignored.
44 =item
46 Spam score:
48   s:<value>
50 =item
52 Successful spam checks (e.g. "BAYES_99", "SUBJECT_DRUG_GAP_C", ...):
54   c:<type1>[,<type2>,...]
56 Each line is limited to 256 characters (including the newline character). 
57 Longer lines will be ignored.
59 =back
61 =head1 SEE ALSO
63 L<collectd(1)>,
64 L<collectd.conf(5)>
66 =head1 AUTHOR
68 The C<email plugin> has been written by Sebastian Harl E<lt>shE<nbsp>atE<nbsp>tokkee.orgE<gt>.
70 The SpamAssassin-plugin has been written by Alexander Wirt E<lt>formorerE<nbsp>atE<nbsp>formorer.deE<gt>.
72 This manpage has been written by Florian Forster E<lt>octoE<nbsp>atE<nbsp>verplant.orgE<gt>.
74 =cut