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)
31 Mail->smtpserver = NULL;
34 Mail->maxperhour = 12;
37 Mail->gran_level = NULL;
38 Mail->gran_location = NULL;
39 Mail->gran_group = NULL;
40 Mail->gran_set = NULL;
41 Mail->gran_format = NULL;
43 Mail->strict_checking = 0;
48 if(ReadConfig(modules, cfgfile, NULL, Mail) < 0)
55 verbose(MAIL_DIS, ARGV0);