2 * inoclam - Inotify+ClamAV virus scanner
3 * Copyright (C) 2007 Vermont Department of Taxes
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 * Tom Cort <tom.cort@state.vt.us>
29 * The default address to send e-mail notifications to
31 #define SMTP_TO "root@localhost"
34 * The default return address for e-mail notifications
36 #define SMTP_FROM "root@localhost"
39 * The default subject line used for e-mail notifications
41 #define SMTP_SUBJECT "[inoclam] Virus Detected"
44 * The default hostname of the SMTP server you wish to use for e-mail notifications
46 #define SMTP_HOST "localhost"
49 * The default TCP port to connect to for e-mail notifications
51 #define SMTP_PORT (25)
54 * Enable or disable e-mail notifications by setting this to cfg_true or cfg_false
56 extern cfg_bool_t smtp_enabled
;
59 * The hostname of the SMTP server you wish to use for e-mail notifications
61 extern char *smtp_host
;
64 * The TCP port to connect to for e-mail notifications
69 * The address to send e-mail notifications to
74 * The return address for e-mail notifications
76 extern char *smtp_from
;
79 * The subject line used for e-mail notifications
81 extern char *smtp_subject
;
86 void smtp_send(char *smtp_body
);