diff --git a/stalwart-dev/config.toml b/stalwart-dev/config.toml index 7dae4a8..4f27e00 100644 --- a/stalwart-dev/config.toml +++ b/stalwart-dev/config.toml @@ -61,3 +61,12 @@ email = ["bob@localhost"] [authentication.fallback-admin] user = "admin" secret = "admin" + +# Allow LOGIN/PLAIN on the clear-text dev ports (no TLS in local test env). +# By default Stalwart only advertises PLAIN/LOGIN when is_tls — override that. +[imap.auth] +allow-plain-text = true + +[session.auth] +mechanisms = "[plain, login, oauthbearer, xoauth2]" +allow-plain-text = true diff --git a/test/integration/imap_sync_test.dart b/test/integration/imap_sync_test.dart index 04a7d71..d9b8041 100644 --- a/test/integration/imap_sync_test.dart +++ b/test/integration/imap_sync_test.dart @@ -63,7 +63,7 @@ void main() { final smtpClient = SmtpClient('test'); await smtpClient.connectToServer(imapHost, smtpPort, isSecure: false); await smtpClient.ehlo(); - await smtpClient.authenticate('$userA@localhost', passA); + await smtpClient.authenticate(userA, passA); final builder = MessageBuilder() ..from = [MailAddress('Alice', '$userA@localhost')]