Struct mpot::args::PostfixConfig
source · pub struct PostfixConfig {
pub user: String,
pub group: Option<String>,
pub binary_path: PathBuf,
pub process_limit: Option<u64>,
pub map_output_path: Option<PathBuf>,
pub transport_name: Option<String>,
}
Expand description
Postfix config values.
Fields§
§user: String
User that runs mailpot when postfix relays a message.
Must not be the postfix
user.
Must have permissions to access the database file and the data
directory.
group: Option<String>
Group that runs mailpot when postfix relays a message. Optional.
binary_path: PathBuf
The path to the mailpot binary postfix will execute.
process_limit: Option<u64>
Limit the number of mailpot instances that can exist at the same time.
Default is 1.
map_output_path: Option<PathBuf>
The directory in which the map files are saved.
Default is data_path
from Configuration
.
transport_name: Option<String>
The name of the postfix service name to use.
Default is mailpot
.
A postfix service is a daemon managed by the postfix process.
Each entry in the master.cf
configuration file defines a single
service.
The master.cf
file is documented in master(5)
:
https://www.postfix.org/master.5.html.
Trait Implementations§
source§impl Args for PostfixConfig
impl Args for PostfixConfig
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§impl Debug for PostfixConfig
impl Debug for PostfixConfig
source§impl FromArgMatches for PostfixConfig
impl FromArgMatches for PostfixConfig
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.