mirror of
https://github.com/chatmail/relay.git
synced 2026-09-18 05:10:09 +00:00
feat!: DKIM verifier (#35)
* feat!: DKIM verifier This implements a DKIM verification as well as a strict DKIM signature alignment check with domain in `From` header address. Caches the retrieved RDATA using in-memory LRU. BREAKING CHANGE: incoming messages now require DKIM signatures aligned to domain of the `From` header address. Signed-off-by: Jagoda Ślązak <jslazak@jslazak.com> * chore(license): License binaries under GPLv3 Signed-off-by: Jagoda Ślązak <jslazak@jslazak.com> --------- Signed-off-by: Jagoda Ślązak <jslazak@jslazak.com>
This commit is contained in:
committed by
GitHub
parent
3bf8395ef6
commit
a096d0550f
@@ -25,6 +25,7 @@
|
||||
clippy::bool_to_int_with_if
|
||||
)]
|
||||
mod config;
|
||||
mod dkim_verifier;
|
||||
pub(crate) mod error;
|
||||
pub(crate) mod inbound;
|
||||
pub(crate) mod message;
|
||||
@@ -95,7 +96,10 @@ async fn main() {
|
||||
process::exit(1);
|
||||
}
|
||||
} else {
|
||||
let handler = Arc::new(IncomingBeforeQueueHandler::new(config.clone()));
|
||||
let handler = Arc::new(
|
||||
// We want to panic here if the handler cannot be created.
|
||||
IncomingBeforeQueueHandler::new(config.clone()).unwrap(),
|
||||
);
|
||||
let addr = format!("127.0.0.1:{}", config.filtermail_smtp_port_incoming);
|
||||
let max_size = config.max_message_size;
|
||||
log::debug!("Incoming SMTP server listening on {addr}");
|
||||
|
||||
Reference in New Issue
Block a user