[bug]: Unable to send emails to Gmail "Unexpected SMTP server response" #717
-
What happened?It seems that whenever I try and send an email to a gmail inbox it fails to send with the error:
This is generated by outlook but it seems that the SMTP server itself is returning an unexpected status code How can we reproduce the problem?Sending an email to any gmail address Versionv0.9.x What database are you using?RocksDB What blob storage are you using?None Where is your directory located?LDAP What operating system are you using?Docker Relevant log output2024-08-25T11:02:58Z INFO SMTP connection started (smtp.connection-start) listenerId = "submission", localPort = 587, remoteIp = 40.99.72.125, remotePort = 3354
2024-08-25T11:02:58Z INFO SMTP EHLO command (smtp.ehlo) listenerId = "submission", localPort = 587, remoteIp = 40.99.72.125, remotePort = 3354, domain = "PU4P216MB2134.KORP216.PROD.OUTLOOK.COM"
2024-08-25T11:02:59Z INFO TLS handshake (tls.handshake) listenerId = "submission", localPort = 587, remoteIp = 40.99.72.125, remotePort = 3354, listenerId = "submission", version = "TLSv1_3", details = "TLS13_AES_256_GCM_SHA384"
2024-08-25T11:02:59Z INFO Authentication successful (auth.success) listenerId = "submission", localPort = 587, remoteIp = 40.99.72.125, remotePort = 3354, accountName = "[username]", accountId = 38, type = Individual
2024-08-25T11:02:59Z INFO SMTP MAIL FROM command (smtp.mail-from) listenerId = "submission", localPort = 587, remoteIp = 40.99.72.125, remotePort = 3354, from = "[my email]"
2024-08-25T11:02:59Z INFO Mailbox does not exist (smtp.mailbox-does-not-exist) listenerId = "submission", localPort = 587, remoteIp = 40.99.72.125, remotePort = 3354, to = "[valid-email]@gmail.com"
2024-08-25T11:03:05Z INFO SMTP connection ended (smtp.connection-end) listenerId = "submission", localPort = 587, remoteIp = 40.99.72.125, remotePort = 3354, elapsed = 6446ms Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I just successfully tested it with the most recent stalwart mail server, no issue delivering emails to gmail - at least for me (everything on rocksdb). |
Beta Was this translation helpful? Give feedback.
-
If you are seeing the |
Beta Was this translation helpful? Give feedback.
my LDAP domain bind was defined as
"(&(|(objectClass=posixAccount)(objectClass=posixGroup))(|(mail=*@?)(mailAlias=*@?)))"
same as with the docs. The problem was that that one of my users has a mail attribute with their gmail email (for sending emails to the user) which messed with stalwart. Removing that attribute and restarting stalwart has since fixed that problem