/* -*- c -*- This file is part of GNU Anubis. Copyright (C) 2001-2014 The Anubis Team. GNU Anubis is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. GNU Anubis is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Anubis. If not, see . */ #include "headers.h" #include #include #include "extern.h" #include "rcfile.h" #ifdef HAVE_PAM pam_handle_t *pamh; static struct pam_conv conv = { misc_conv, NULL }; #endif /* HAVE_PAM */ static char *pidfile; OPTIONS_BEGIN(gnu,"anubis",[]) OPTION(bind, b, [HOST:]PORT, []) BEGIN parse_mtahost (optarg, &session.anubis, &session.anubis_port); if (session.anubis && strlen (session.anubis) != 0) topt |= T_NAMES; rc_disable_keyword (CF_INIT | CF_SUPERVISOR, "bind"); END OPTION(remote-mta, r, [HOST:]PORT, Specify a remote SMTP host name or IP address; the default is 25) BEGIN parse_mtaport (optarg, &session.mta, &session.mta_port); END OPTION(local-mta, l, FILE, []) BEGIN int rc; int argc; if ((rc = argcv_get (optarg, "", "#", &argc, &session.execargs))) anubis_error (EX_SOFTWARE, rc, _("argcv_get failed")); session.execpath = strdup (session.execargs[0]); topt |= T_LOCAL_MTA; rc_disable_keyword (CF_INIT | CF_SUPERVISOR, "local-mta"); END OPTION(mode, m, MODE, [