1 /* @(#) $Id: ./src/os_maild/config.c, 2011/09/08 dcid Exp $
4 /* Copyright (C) 2009 Trend Micro Inc.
7 * This program is a free software; you can redistribute it
8 * and/or modify it under the terms of the GNU General Public
9 * License (version 2) as published by the FSF - Free Software
16 #include "config/config.h"
19 /* MailConf v0.1: 2005/04/01
20 * Reads the Mail configuration
22 int MailConf(int test_config, char *cfgfile, MailConfig *Mail)
30 Mail->smtpserver = NULL;
33 Mail->maxperhour = 12;
36 Mail->gran_level = NULL;
37 Mail->gran_location = NULL;
38 Mail->gran_group = NULL;
39 Mail->gran_set = NULL;
40 Mail->gran_format = NULL;
42 Mail->strict_checking = 0;
47 if(ReadConfig(modules, cfgfile, NULL, Mail) < 0)
54 verbose(MAIL_DIS, ARGV0);