1 /* @(#) $Id: config.c,v 1.13 2009/06/24 17:06:30 dcid Exp $ */
3 /* Copyright (C) 2009 Trend Micro Inc.
6 * This program is a free software; you can redistribute it
7 * and/or modify it under the terms of the GNU General Public
8 * License (version 3) as published by the FSF - Free Software
15 #include "config/config.h"
18 /* MailConf v0.1: 2005/04/01
19 * Reads the Mail configuration
21 int MailConf(int test_config, char *cfgfile, MailConfig *Mail)
29 Mail->smtpserver = NULL;
32 Mail->maxperhour = 12;
35 Mail->gran_level = NULL;
36 Mail->gran_location = NULL;
37 Mail->gran_group = NULL;
38 Mail->gran_set = NULL;
39 Mail->gran_format = NULL;
41 Mail->strict_checking = 0;
43 if(ReadConfig(modules, cfgfile, NULL, Mail) < 0)
50 verbose(MAIL_DIS, ARGV0);