Crate vsmtp_config
Expand description
vSMTP configuration
This module contains the configuration for the vSMTP server.
The behavior of your server can be configured using a configuration file,
and using the -c, --config
flag of the vsmtp
.
All the parameters are optional and have default values.
If -c, --config
is not provided, the default values of the configuration will be used.
The configuration file will be read and parsed right after starting the program, producing an error if there is an invalid syntax, a filepath failed to be opened, or any kind of errors.
If you have a non-explicit error when you start your server, you can create an issue on the github repo, or ask for help in our discord server.
Configuration
The type Config
expose two methods :
Config::builder
to create a new configuration builder.Config::from_vsl_file
to read a configuration from a vSL file.
Example
You can find examples of vSL config files at https://github.com/viridIT/vSMTP/tree/develop/examples/config
Modules
- The configuration builder for programmatically instantiating
- The inner field of the
vSMTP
’s configuration.
Structs
- This structure contains all the field to configure the server at the startup.