CLI account management + Directory refactoring
This commit is contained in:
@@ -223,7 +223,7 @@ pub struct Extensions {
|
||||
}
|
||||
|
||||
pub struct Auth {
|
||||
pub directory: IfBlock<Option<MaybeDynValue<dyn Directory>>>,
|
||||
pub directory: IfBlock<Option<MaybeDynValue<Directory>>>,
|
||||
pub mechanisms: IfBlock<u64>,
|
||||
pub require: IfBlock<bool>,
|
||||
pub allow_plain_text: IfBlock<bool>,
|
||||
@@ -239,7 +239,7 @@ pub struct Mail {
|
||||
pub struct Rcpt {
|
||||
pub script: IfBlock<Option<Arc<Sieve>>>,
|
||||
pub relay: IfBlock<bool>,
|
||||
pub directory: IfBlock<Option<MaybeDynValue<dyn Directory>>>,
|
||||
pub directory: IfBlock<Option<MaybeDynValue<Directory>>>,
|
||||
pub rewrite: IfBlock<Option<DynValue<EnvelopeKey>>>,
|
||||
|
||||
// Errors
|
||||
@@ -347,7 +347,7 @@ pub struct QueueConfig {
|
||||
// Throttle and Quotas
|
||||
pub throttle: QueueThrottle,
|
||||
pub quota: QueueQuotas,
|
||||
pub management_lookup: Arc<dyn Directory>,
|
||||
pub management_lookup: Arc<Directory>,
|
||||
}
|
||||
|
||||
pub struct QueueOutboundSourceIp {
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
use directory::backend::memory::MemoryDirectory;
|
||||
use mail_send::Credentials;
|
||||
|
||||
use super::{
|
||||
@@ -213,7 +212,7 @@ impl ConfigQueue for Config {
|
||||
})?
|
||||
.clone()
|
||||
} else {
|
||||
Arc::new(MemoryDirectory::default())
|
||||
Arc::new(Directory::default())
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user