Directory implementation - part 4

This commit is contained in:
Mauro D
2023-06-02 09:03:30 +00:00
parent 1e792b234f
commit 5c8784bc86
53 changed files with 1581 additions and 1166 deletions

View File

@@ -178,6 +178,10 @@ async fn sql_directory() {
vec![2, 3, 4]
);
// Domain validation
assert!(handle.is_local_domain("example.org").await.unwrap());
assert!(!handle.is_local_domain("other.org").await.unwrap());
// RCPT TO
assert!(handle.rcpt("jane@example.org").await.unwrap());
assert!(handle.rcpt("info@example.org").await.unwrap());