21 #ifndef G_MAIN_CONFIGURATION_H
22 #define G_MAIN_CONFIGURATION_H
51 unsigned int port()
const ;
130 std::string
filter()
const ;
140 unsigned int icon()
const ;
170 std::string
fqdn( std::string default_ = std::string() )
const ;
173 std::string
nobody()
const ;
244 bool contains(
const char * )
const ;
245 std::string value(
const char * )
const ;
246 unsigned int value(
const char * ,
unsigned int )
const ;
bool peerLookup() const
Returns true if there should be some attempt to look up the userid of SMTP peers connected from the t...
Application-level classes.
bool doSmtp() const
Returns true if listening for smtp connections.
bool immediate() const
Returns true if forwarding should occur as soon as each message body is received and before receipt i...
bool clientOverTls() const
Returns true if using the SMTP over TLS (vs.
std::string verifier() const
Returns the path of an external address verifier program.
std::string serverAddress() const
Returns the downstream server's address string.
bool pollingLog() const
Returns true if polling activity should be logged.
std::string filter() const
Returns the path to a server-side pre-processor.
bool doServing() const
Returns true if running as a server (SMTP, POP, admin or COM).
bool daemon() const
Returns true if running as a daemon.
std::list< std::string > Strings
A std::list of std::strings.
bool anonymous() const
Returns true if the server protocol should be slightly more anonymous.
bool popNoDelete() const
Returns true if pop deletion is to be disabled.
unsigned int popPort() const
Returns the pop port number.
bool allowRemoteClients() const
Returns true if allowing remote clients to connect.
bool closeStderr() const
Returns true if stderr should be closed.
G::Path spoolDir() const
Returns the spool directory.
bool doAdmin() const
Returns true if listening for admin connections.
G::Strings listeningInterfaces(const std::string &protocol=std::string()) const
Returns the listening interface(s).
bool useSyslog() const
Returns true if generating syslog events.
bool forwardingOnStore() const
Returns true if forwarding should occur as each message is stored, after it is acknowledged.
unsigned int secureConnectionTimeout() const
Returns the timeout for establishing a secure connection.
bool verbose() const
Returns true if doing verbose logging.
std::string serverTlsFile() const
Returns the tls certificate file if the server should support tls.
bool debug() const
Returns true if doing debug-level logging.
unsigned int scannerConnectionTimeout() const
Returns a timeout for connecting to the scanner process.
std::string serverSecretsFile() const
Returns the server-side autentication secrets (password) file.
unsigned int promptTimeout() const
Returns the timeout for getting a prompt from the SMTP server.
std::string nobody() const
Returns the name of an unprivileged user.
A class which deals with the command-line interface to the process, both input and output...
bool log() const
Returns true if doing logging.
unsigned int connectionTimeout() const
Returns the client-side connection timeout value.
std::string fqdn(std::string default_=std::string()) const
Returns the fully-qualified-domain-name override.
unsigned int pollingTimeout() const
Returns the timeout for periodic polling.
std::string logFile() const
Returns the path of a stderr replacement for logging.
unsigned int maxSize() const
Returns the maximum size of submitted messages, or zero.
std::string clientFilter() const
Returns the path to a client-side pre-processor.
std::string pidFile() const
Returns the pid file's path.
bool useFilter() const
Returns true if pre-processing.
Configuration(const CommandLine &cl)
Constructor. The reference is kept.
unsigned int icon() const
Returns the icon selector (win32).
bool withTerminate() const
Returns true if the admin interface should support the terminate command.
bool logTimestamp() const
Returns true if logging output should be timestamped.
std::string clientInterface() const
Returns the sending interface.
bool popByName() const
Returns true if the pop spool directory is modified according to the client name. ...
unsigned int port() const
Returns the main listening port number.
bool forwardingOnDisconnect() const
Returns true if forwarding should occur when the submitter's network connection disconnects.
bool doForwardingOnStartup() const
Returns true if running as a client.
unsigned int adminPort() const
Returns the admin port number.
bool hidden() const
Returns true if the main window is hidden (win32).
unsigned int tlsConfig() const
Returns TLS configuration flags.
std::string scannerAddress() const
Returns the address of a scanner process.
std::string clientSecretsFile() const
Returns the client-side autentication secrets (password) file.
bool usePidFile() const
Returns true if writing a pid file.
A Path object represents a file system path.
An interface for returning application configuration information.
bool doPolling() const
Returns true if doing poll-based forwarding.
bool doPop() const
Returns true if listening for pop connections.
unsigned int scannerResponseTimeout() const
Returns a timeout for talking to the scanner process.
unsigned int responseTimeout() const
Returns the client-side protocol timeout value.
unsigned int filterTimeout() const
Returns the timeout for executing an ansynchronous filter() or clientFilter() program.
bool clientTls() const
Returns true if the client protocol should take account of the server's tls capability.
std::string popSecretsFile() const
Returns the pop-server autentication secrets (password) file.