aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-23 16:14:58 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-23 16:14:58 +0100
commitf67f04129afaacc4cdeb69aa79e5c102ec7331bd (patch)
treeedc58834760b2822f880f614ef823dc1dbec405d /src/main.rs
parent1f449dc7e97db34c4aa4cf08eb7cc6269905709f (diff)
downloadaerogramme-f67f04129afaacc4cdeb69aa79e5c102ec7331bd.tar.gz
aerogramme-f67f04129afaacc4cdeb69aa79e5c102ec7331bd.zip
Add TLS support
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index a7462bc..3e3674c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -167,13 +167,14 @@ async fn main() -> Result<()> {
use std::net::*;
AnyConfig::Provider(ProviderConfig {
pid: None,
- imap: ImapConfig {
+ imap: None,
+ imap_unsecure: Some(ImapUnsecureConfig {
bind_addr: SocketAddr::new(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)), 1143),
- },
- lmtp: LmtpConfig {
+ }),
+ lmtp: Some(LmtpConfig {
bind_addr: SocketAddr::new(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)), 1025),
hostname: "example.tld".to_string(),
- },
+ }),
users: UserManagement::Demo,
})
} else {