Open hmfaysal opened 1 year ago
It looks like the client is sending an invalid MAIL FROM
command:
l=debug m="smtp command result" err="bad syntax: expected \"<\" (remaining \" <████████@████████.██>\")" pkg=smtpserver kind=submission cmd=mail code=501 ecode=5.5.2 duration="32.931µs" cid=189998ea1b9 delta=91.181126ms username=████████@████████.██
This is explicitly mentioned as invalid in the RFC about SMTP, 5321, see section https://datatracker.ietf.org/doc/html/rfc5321#section-3.3, which says:
Since it has been a common source of errors, it is worth noting that
spaces are not permitted on either side of the colon following FROM
in the MAIL command or TO in the RCPT command. The syntax is exactly
as given above.
However, that doesn't help you much.
Mox doesn't allow it, as it is normally a sign of spammers with a sloppy SMTP implementation. But this is for submission, after you have authenticated. I think we can allow that space (except when in pedantic mode), instead of punishing all users of clients that do this.
Which version and platform of Outlook is this?
You could try this diff, see if that gets you further:
diff --git a/smtpserver/server.go b/smtpserver/server.go
index 6346e28..f38e255 100644
--- a/smtpserver/server.go
+++ b/smtpserver/server.go
@@ -1203,6 +1203,10 @@ func (c *conn) cmdMail(p *parser) {
}()
p.xtake(" FROM:")
// note: no space after colon. ../rfc/5321:1093
+ // Only allow illegal space for submission, not for regular SMTP. Outlook does this.
+ if c.submission && !moxvar.Pedantic {
+ p.space()
+ }
rawRevPath := p.xrawReversePath()
paramSeen := map[string]bool{}
for p.space() {
@@ -1331,6 +1335,10 @@ func (c *conn) cmdRcpt(p *parser) {
// ../rfc/5321:1985
p.xtake(" TO:")
// note: no space after colon. ../rfc/5321:1093
+ // Only allow illegal space for submission, not for regular SMTP. Outlook does this.
+ if c.submission && !moxvar.Pedantic {
+ p.space()
+ }
var fpath smtp.Path
if p.take("<POSTMASTER>") {
fpath = smtp.Path{Localpart: "postmaster"}
Thanks for the quick reply, I am using Microsoft Outlook 365 Apps for enterprise Version 2306 (Build 16529.20182).
I am going to try the git diff and get back to you. Fingers crossed.
The git diff worked great. Thank you so much, everything working.
Excellent, will commit this. Thanks for the clear report and quick testing!
This is giving me all sorts of issues again in version 0.0.8 and 0.0.9.
l=debug m="smtp command result" pkg=smtpserver kind=submission cmd=ehlo code=250 ecode= duration="138.744µs" cid=18cefd51b8d delta=116.519004ms
Is this the same issue as before? The intention was to allow the space not only for submission, but also delivery. So for submission, I wouldn't expect a change.
Are you getting an error message? The logging line looks like a successful "ehlo" command.
Ah sorry, I copy pasted the wrong line, yeah its the same issue as before, v0.0.7 works fantastic. The issue arises from 0.0.8 and forward. I will reproduce the issue and will attach it below
Here is the error:
l=info m="imap command ioerror" err="get line: unexpected EOF (io error)" pkg=imapserver cmd=idle duration="211.526µs" cid=18cefe1c500 delta=62.142812ms username=postmaster@████████.██
l=info m="connection closed" err="get line: unexpected EOF (io error)" pkg=imapserver cid=18cefe1c500 delta="370.7µs" username=postmaster@████████.██
Also realized, its a different issue. Should've opened a new thread. My apologies
No worries. Perhaps a new issue is still a good idea. These lines show the imap client disconnecting. And that's probably because of something (protocol messages) that came just before. Could you enable trace-level logging for imapserver, and check the command/reply just before the connection is closed?
This is the full trace. Can't make sense why this could be happening. Need help
l=debug m="http request" pkg=http httpaccess= handler=(nomatch) method=get url="/autodiscover/autodiscover.json/v1.0/postmaster@████████.██?Protocol=ActiveSync&RedirectCount=1" host=autoconfig.████████.██ duration="87.443µs" statuscode=404 proto=http/1.0 remoteaddr=127.0.0.1:46382 tlsinfo=plain useragent=OutlookMobileCloudService-Autodetect/1.0.0 referrr= size=19 cid=18cefeda07b
l=info m="new connection" pkg=smtpserver remote=52.125.141.21:5889 local=███.███.███.███:465 submission=true tls=true listener=public cid=18cefeda07c delta="76.913µs"
l=trace m="LS: 220 mx1.████████.██ ESMTP mox v0.0.9\r\n" pkg=smtpserver cid=18cefeda07c delta="117.563µs"
l=info m="new connection" pkg=imapserver remote=52.125.141.21:5888 local=███.███.███.███:993 tls=true listener=public cid=18cefeda07d delta="54.652µs"
l=trace m="S: * OK [CAPABILITY IMAP4rev2 IMAP4rev1 ENABLE LITERAL+ IDLE SASL-IR BINARY UNSELECT UIDPLUS ESEARCH SEARCHRES MOVE UTF8=ACCEPT LIST-EXTENDED SPECIAL-USE LIST-STATUS AUTH=SCRAM-SHA-256-PLUS AUTH=SCRAM-SHA-256 AUTH=SCRAM-SHA-1-PLUS AUTH=SCRAM-SHA-1 AUTH=CRAM-MD5 ID APPENDLIMIT=9223372036854775807 CONDSTORE QRESYNC STATUS=SIZE AUTH=PLAIN] mox imap\r\n" pkg=imapserver cid=18cefeda07d delta="79.883µs"
l=trace m="RC: EHLO contoso.com\r\n" pkg=smtpserver cid=18cefeda07c delta=325.01264ms
l=debug m="smtp command result" pkg=smtpserver kind=submission cmd=ehlo code=250 ecode= duration="81.362µs" cid=18cefeda07c delta="135.794µs"
l=trace m="LS: 250-mx1.████████.██\r\n250-PIPELINING\r\n250-SIZE 104857600\r\n250-REQUIRETLS\r\n250-AUTH SCRAM-SHA-256-PLUS SCRAM-SHA-256 SCRAM-SHA-1-PLUS SCRAM-SHA-1 CRAM-MD5 PLAIN LOGIN\r\n250-ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250 SMTPUTF8\r\n" pkg=smtpserver cid=18cefeda07c delta="20.241µs"
l=info m="new connection" pkg=imapserver remote=███.███.███.███:56516 local=███.███.███.███:993 tls=true listener=public cid=18cefeda07e delta="68.092µs"
l=trace m="S: * OK [CAPABILITY IMAP4rev2 IMAP4rev1 ENABLE LITERAL+ IDLE SASL-IR BINARY UNSELECT UIDPLUS ESEARCH SEARCHRES MOVE UTF8=ACCEPT LIST-EXTENDED SPECIAL-USE LIST-STATUS AUTH=SCRAM-SHA-256-PLUS AUTH=SCRAM-SHA-256 AUTH=SCRAM-SHA-1-PLUS AUTH=SCRAM-SHA-1 AUTH=CRAM-MD5 ID APPENDLIMIT=9223372036854775807 CONDSTORE QRESYNC STATUS=SIZE AUTH=PLAIN] mox imap\r\n" pkg=imapserver cid=18cefeda07e delta="83.293µs"
l=trace m="C: 6bv2 CAPABILITY\r\n" pkg=imapserver cid=18cefeda07e delta=118.929842ms
l=trace m="S: * CAPABILITY IMAP4rev2 IMAP4rev1 ENABLE LITERAL+ IDLE SASL-IR BINARY UNSELECT UIDPLUS ESEARCH SEARCHRES MOVE UTF8=ACCEPT LIST-EXTENDED SPECIAL-USE LIST-STATUS AUTH=SCRAM-SHA-256-PLUS AUTH=SCRAM-SHA-256 AUTH=SCRAM-SHA-1-PLUS AUTH=SCRAM-SHA-1 AUTH=CRAM-MD5 ID APPENDLIMIT=9223372036854775807 CONDSTORE QRESYNC STATUS=SIZE AUTH=PLAIN\r\n6bv2 OK CAPABILITY done\r\n" pkg=imapserver cid=18cefeda07e delta="226.537µs"
l=debug m="imap command done" pkg=imapserver cmd=capability duration="183.716µs" cid=18cefeda07e delta="119.874µs"
l=trace m="C: hysl LOGIN \"postmaster@████████.██\" \"████████\"\r\n" pkg=imapserver cid=18cefeda07e delta=53.665037ms
l=trace m="S: hysl OK [CAPABILITY IMAP4rev2 IMAP4rev1 ENABLE LITERAL+ IDLE SASL-IR BINARY UNSELECT UIDPLUS ESEARCH SEARCHRES MOVE UTF8=ACCEPT LIST-EXTENDED SPECIAL-USE LIST-STATUS AUTH=SCRAM-SHA-256-PLUS AUTH=SCRAM-SHA-256 AUTH=SCRAM-SHA-1-PLUS AUTH=SCRAM-SHA-1 AUTH=CRAM-MD5 ID APPENDLIMIT=9223372036854775807 CONDSTORE QRESYNC STATUS=SIZE AUTH=PLAIN] login done\r\n" pkg=imapserver cid=18cefeda07e delta=91.062477ms username=postmaster@████████.██
l=debug m="imap command done" pkg=imapserver cmd=login duration=91.1357ms cid=18cefeda07e delta="118.604µs" username=postmaster@████████.██
l=trace m="C: d425 ENABLE UTF8=ACCEPT\r\n" pkg=imapserver cid=18cefeda07e delta=50.633752ms username=postmaster@████████.██
l=trace m="S: * ENABLED UTF8=ACCEPT\r\nd425 OK ENABLE done\r\n" pkg=imapserver cid=18cefeda07e delta="254.677µs" username=postmaster@████████.██
l=debug m="imap command done" pkg=imapserver cmd=enable duration="346.481µs" cid=18cefeda07e delta="146.625µs" username=postmaster@████████.██
l=trace m="C: zzj3 IDLE\r\n" pkg=imapserver cid=18cefeda07e delta=58.090146ms username=postmaster@████████.██
l=trace m="S: + waiting\r\n" pkg=imapserver cid=18cefeda07e delta="72.583µs" username=postmaster@████████.██
l=info m="imap command ioerror" err="get line: unexpected EOF (io error)" pkg=imapserver cmd=idle duration="136.785µs" cid=18cefeda07e delta="124.274µs" username=postmaster@████████.██
l=info m="connection closed" err="get line: unexpected EOF (io error)" pkg=imapserver cid=18cefeda07e delta="172.855µs" username=postmaster@████████.██
l=info m="new connection" pkg=smtpserver remote=███.███.███.███:56517 local=███.███.███.███:465 submission=true tls=true listener=public cid=18cefeda07f delta="56.652µs"
l=trace m="LS: 220 mx1.████████.██ ESMTP mox v0.0.9\r\n" pkg=smtpserver cid=18cefeda07f delta="39.65µs"
l=trace m="RC: EHLO hmfaysalasrock\r\n" pkg=smtpserver cid=18cefeda07f delta=129.336524ms
l=debug m="smtp command result" pkg=smtpserver kind=submission cmd=ehlo code=250 ecode= duration="17.49µs" cid=18cefeda07f delta="67.082µs"
l=trace m="LS: 250-mx1.████████.██\r\n250-PIPELINING\r\n250-SIZE 104857600\r\n250-REQUIRETLS\r\n250-AUTH SCRAM-SHA-256-PLUS SCRAM-SHA-256 SCRAM-SHA-1-PLUS SCRAM-SHA-1 CRAM-MD5 PLAIN LOGIN\r\n250-ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250 SMTPUTF8\r\n" pkg=smtpserver cid=18cefeda07f delta="17.951µs"
l=trace m="RC: AUTH LOGIN\r\n" pkg=smtpserver cid=18cefeda07f delta=55.967211ms
l=trace m="LS: 334 \r\n" pkg=smtpserver cid=18cefeda07f delta="246.208µs"
l=info m="connection closed" err="read: read tcp ███.███.███.███:465->52.125.141.21:5889: read: connection reset by peer (io error)" pkg=smtpserver cid=18cefeda07c delta=5.288040609s
l=info m="imap command ioerror" err="reading line from remote: read tcp ███.███.███.███:993->52.125.141.21:5888: read: connection reset by peer (io error)" pkg=imapserver cmd=(greeting) duration=5.577858578s cid=18cefeda07d delta=5.577736654s
l=info m="connection closed" err="reading line from remote: read tcp ███.███.███.███:993->52.125.141.21:5888: read: connection reset by peer (io error)" pkg=imapserver cid=18cefeda07d delta="71.562µs"
l=info m="connection closed" err="reading line from remote: read tcp ███.███.███.███:993->52.125.141.21:5888: read: connection reset by peer (io error)" pkg=imapserver cid=18cefeda07d delta="71.562µs"
l=info m="connection closed" err="read: read tcp ███.███.███.███:465->███.███.███.███:56517: i/o timeout (io error)" pkg=smtpserver cid=18cefeda07f delta=30.025629051s
Ok, it looks like imap auth works, but smtp login fails. Which mail client is this? Outlook? I've seen this behaviour with mutt on debian, where it is built with gsasl. The new SCRAM-*-PLUS authentication mechanisms are causing trouble: They are chosen, but aren't implemented by mutt, so authentication fails for SMTP, and falls back to plain LOGIN for imap. In that case, the solution was to explicitly configure SCRAM-SHA-256 with set smtp_authenticators=scram-sha-256
and set imap_authenticators=scram-sha-256
(but that's specific to mutt).
Yeah, I guess so. I am using Microsoft 365 Apps for Enterprise version 16.0.17029.20108. I need to check the file diffs from 0.0.7 to 0.0.8. Because it started as soon as 0.0.8 was released.
Yeah, I guess so. I am using Microsoft 365 Apps for Enterprise version 16.0.17029.20108. I need to check the file diffs from 0.0.7 to 0.0.8. Because it started as soon as 0.0.8 was released.
The scram plus variants were only introduced in v0.0.9, so if v0.0.8 also shows the problem, it must be something else. It does seem like something authentication-related. If you happen to have traces of successfully authenticated submission sessions with the previous version, the difference could give a hint.
Thanks for the tips, I will sit with this some other day. I don't want to mess up authentication mechanism for normal clients at this moment.
Thanks for the tips, I will sit with this some other day. I don't want to mess up authentication mechanism for normal clients at this moment.
If microsoft 365 apps for enterprise is local application, you could do tests with "mox localserve".
I will try localserve tomorrow. 0.0.8 gave very similar errors. Here is the log:
l=info m="new connection" pkg=imapserver remote=███.███.███.███:4099 local=███.███.███.███:993 tls=true listener=public cid=18cf0086be2 delta="78.543µs"
l=trace m="S: * OK [CAPABILITY IMAP4rev2 IMAP4rev1 ENABLE LITERAL+ IDLE SASL-IR BINARY UNSELECT UIDPLUS ESEARCH SEARCHRES MOVE UTF8=ONLY LIST-EXTENDED SPECIAL-USE LIST-STATUS AUTH=SCRAM-SHA-256 AUTH=SCRAM-SHA-1 AUTH=CRAM-MD5 ID APPENDLIMIT=9223372036854775807 CONDSTORE QRESYNC AUTH=PLAIN] mox imap\r\n" pkg=imapserver cid=18cf0086be2 delta="286.599µs"
l=info m="new connection" pkg=smtpserver remote=███.███.███.███:4107 local=███.███.███.███:465 submission=true tls=true listener=public cid=18cf0086be3 delta="58.682µs"
l=trace m="LS: 220 mx1.████████.██ ESMTP mox v0.0.8\r\n" pkg=smtpserver cid=18cf0086be3 delta="113.934µs"
l=trace m="RC: EHLO contoso.com\r\n" pkg=smtpserver cid=18cf0086be3 delta=318.337695ms
l=debug m="smtp command result" pkg=smtpserver kind=submission cmd=ehlo code=250 ecode= duration="44.061µs" cid=18cf0086be3 delta="165.175µs"
l=trace m="LS: 250-mx1.████████.██\r\n250-PIPELINING\r\n250-SIZE 104857600\r\n250-REQUIRETLS\r\n250-AUTH SCRAM-SHA-256 SCRAM-SHA-1 CRAM-MD5 PLAIN LOGIN\r\n250-ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250 SMTPUTF8\r\n" pkg=smtpserver cid=18cf0086be3 delta="13.431µs"
l=info m="imap command ioerror" err="reading line from remote: read tcp ███.███.███.███:993->███.███.███.███:4099: read: connection reset by peer (io error)" pkg=imapserver cmd=(greeting) duration=1.487467711s cid=18cf0086be2 delta=1.487107259s
l=info m="connection closed" err="reading line from remote: read tcp ███.███.███.███:993->███.███.███.███:4099: read: connection reset by peer (io error)" pkg=imapserver cid=18cf0086be2 delta="149.335µs"
l=info m="connection closed" err="read: read tcp ███.███.███.███:465->███.███.███.███:4107: read: connection reset by peer (io error)" pkg=smtpserver cid=18cf0086be3 delta=1.164600351s
l=info m="new connection" pkg=imapserver remote=███.███.███.███:56703 local=███.███.███.███:993 tls=true listener=public cid=18cf0086be4 delta="31.521µs"
l=trace m="S: * OK [CAPABILITY IMAP4rev2 IMAP4rev1 ENABLE LITERAL+ IDLE SASL-IR BINARY UNSELECT UIDPLUS ESEARCH SEARCHRES MOVE UTF8=ONLY LIST-EXTENDED SPECIAL-USE LIST-STATUS AUTH=SCRAM-SHA-256 AUTH=SCRAM-SHA-1 AUTH=CRAM-MD5 ID APPENDLIMIT=9223372036854775807 CONDSTORE QRESYNC AUTH=PLAIN] mox imap\r\n" pkg=imapserver cid=18cf0086be4 delta="282.518µs"
l=trace m="C: vflt CAPABILITY\r\n" pkg=imapserver cid=18cf0086be4 delta=123.759436ms
l=trace m="S: * CAPABILITY IMAP4rev2 IMAP4rev1 ENABLE LITERAL+ IDLE SASL-IR BINARY UNSELECT UIDPLUS ESEARCH SEARCHRES MOVE UTF8=ONLY LIST-EXTENDED SPECIAL-USE LIST-STATUS AUTH=SCRAM-SHA-256 AUTH=SCRAM-SHA-1 AUTH=CRAM-MD5 ID APPENDLIMIT=9223372036854775807 CONDSTORE QRESYNC AUTH=PLAIN\r\nvflt OK CAPABILITY done\r\n" pkg=imapserver cid=18cf0086be4 delta="139.325µs"
l=debug m="imap command done" pkg=imapserver cmd=capability duration="134.654µs" cid=18cf0086be4 delta="114.653µs"
l=trace m="C: x4pe LOGIN \"postmaster@████████.██\" \"████████\"\r\n" pkg=imapserver cid=18cf0086be4 delta=52.446094ms
l=trace m="S: x4pe OK [CAPABILITY IMAP4rev2 IMAP4rev1 ENABLE LITERAL+ IDLE SASL-IR BINARY UNSELECT UIDPLUS ESEARCH SEARCHRES MOVE UTF8=ONLY LIST-EXTENDED SPECIAL-USE LIST-STATUS AUTH=SCRAM-SHA-256 AUTH=SCRAM-SHA-1 AUTH=CRAM-MD5 ID APPENDLIMIT=9223372036854775807 CONDSTORE QRESYNC AUTH=PLAIN] login done\r\n" pkg=imapserver cid=18cf0086be4 delta=92.037299ms username=postmaster@████████.██
l=debug m="imap command done" pkg=imapserver cmd=login duration=92.204154ms cid=18cf0086be4 delta="225.327µs" username=postmaster@████████.██
l=trace m="C: 23da ENABLE UTF8=ACCEPT\r\n" pkg=imapserver cid=18cf0086be4 delta=53.988242ms username=postmaster@████████.██
l=trace m="S: * ENABLED UTF8=ACCEPT\r\n23da OK ENABLE done\r\n" pkg=imapserver cid=18cf0086be4 delta="68.272µs" username=postmaster@████████.██
l=debug m="imap command done" pkg=imapserver cmd=enable duration="95.983µs" cid=18cf0086be4 delta="75.762µs" username=postmaster@████████.██
l=trace m="C: bjc2 IDLE\r\n" pkg=imapserver cid=18cf0086be4 delta=58.398173ms username=postmaster@████████.██
l=trace m="S: + waiting\r\n" pkg=imapserver cid=18cf0086be4 delta="98.793µs" username=postmaster@████████.██
l=info m="imap command ioerror" err="get line: unexpected EOF (io error)" pkg=imapserver cmd=idle duration="219.367µs" cid=18cf0086be4 delta="210.397µs" username=postmaster@████████.██
l=info m="connection closed" err="get line: unexpected EOF (io error)" pkg=imapserver cid=18cf0086be4 delta="192.396µs" username=postmaster@████████.██
l=info m="new connection" pkg=smtpserver remote=███.███.███.███:56704 local=███.███.███.███:465 submission=true tls=true listener=public cid=18cf0086be5 delta="43.541µs"
l=trace m="LS: 220 mx1.████████.██ ESMTP mox v0.0.8\r\n" pkg=smtpserver cid=18cf0086be5 delta="69.571µs"
l=trace m="RC: EHLO hmfaysalasrock\r\n" pkg=smtpserver cid=18cf0086be5 delta=141.82157ms
l=debug m="smtp command result" pkg=smtpserver kind=submission cmd=ehlo code=250 ecode= duration="30.51µs" cid=18cf0086be5 delta="103.212µs"
l=trace m="LS: 250-mx1.████████.██\r\n250-PIPELINING\r\n250-SIZE 104857600\r\n250-REQUIRETLS\r\n250-AUTH SCRAM-SHA-256 SCRAM-SHA-1 CRAM-MD5 PLAIN LOGIN\r\n250-ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250 SMTPUTF8\r\n" pkg=smtpserver cid=18cf0086be5 delta="16.361µs"
l=trace m="RC: AUTH LOGIN\r\n" pkg=smtpserver cid=18cf0086be5 delta=52.705462ms
l=trace m="LS: 334 \r\n" pkg=smtpserver cid=18cf0086be5 delta="125.454µs"
l=info m="connection closed" err="read: read tcp ███.███.███.███:465->███.███.███.███:56704: i/o timeout (io error)" pkg=smtpserver cid=18cf0086be5 delta=30.018026339s
This issue was resolved till v0.0.7, since v0.0.8 this had been persistent. Cannot connect from Outlook, other mail clients are working alright. Just FYI
@hmfaysal Thanks for the info & reminder. Could you try if the new commit helps? If it doesn't, you could try changing the challenge "User Name" to "Username:" as hinted at by the internet-draft.
For a binary, see https://www.xmox.nl/b/#aead73883601ecb259e7a27d834bcbaf8e4af07a.
Any news about this issue? Thanks.
Not yet. It's not in a release yet. If you're in a position to test this, that would be great.
Any news about this issue? Thanks.
I checked the new commit a few weeks back and unfortunately, it did not work. I have a guess why it does not work, something to do with the authentication process. The issue started with version 0.0.8, which brought DANE into the picture.
Although, I can make do without Outlook support, I reckon its extremely important for many people, given the rich editor support, and I think some people cannot go without the outlook table editors and what not.
I could not give much time to dig deeper into the issue.
@hmfaysal Two days ago I committed 7ecc3f68ce9218e3881eadc4a5d213905018a16d with changes to the smtp login, that may make authentication work.
Otherwise, is there a way for me to test this?
I have a windows machine. It has an outlook app that calls itself "Microsoft Outlook Version 1.2023.1204.100 (Production)", and also "Client Version 20240927008.14". It can send messages with SMTP. Connections it makes comes from some microsoft cloud machine, not from my own connection. SMTP submission and IMAP works with that client. SMTP uses the AUTH LOGIN mechanism.
I also have an Outlook on macOS. It calls itself Microsoft Outlook for Mac, Version 16.86.3 (24063014). It has problems. When writing a new message and saving it I get an error message "Can't Create New Message" without further details. The Send button is always disabled. IMAP and reading messages works fine. This client does connect directly to the server, not going through a microsoft cloud machine.
Does anyone know how all these versions relate to each other? And if they have the same issues?
By the way, I don't think it relates to DANE. Mox with DANE only applies to the delivery port, not submission. And even if outlook somehow looks at DANE for the delivery port, it should still just pass. But it's highly doubtful they do that, they're also using the very ancient legacy "LOGIN" authentication mechanism.
I can confirm that after updating to mox v0.0.12 my emails started working in MS Outlook (specifically MS Office 2021, version 2409 and version 2304).
Before the upgrade, in v0.0.11, I could not add an account to Outlook.
Thanks for fixing the problem.
Great email server, thank you. The reason I am writing here is that I had been having issues while connecting with Microsoft outlook. I have tried many things, but could not manage to connect. Apple mail works fine, other imap, smtp clients connect and work smoothly.
The error message I get on the Microsoft Outlook Client is as follows:
We couldn't connect to the outgoing (SMTP) server. Please check your email address and password and try again.
Here is the log the server outputs while trying to connect with outlook.
l=info m="new connection" pkg=imapserver remote=███.███.███.███:52746 local=███.███.███.███:993 tls=true listener=public cid=189998ea1b8 delta="30.911µs"
l=debug m="imap command done" pkg=imapserver cmd=capability duration="47.831µs" cid=189998ea1b8 delta=158.584929ms
l=debug m="imap command done" pkg=imapserver cmd=login duration=2.176562ms cid=189998ea1b8 delta=72.130866ms username=████████@████████.██
l=debug m="imap command done" pkg=imapserver cmd=enable duration="55.851µs" cid=189998ea1b8 delta=73.566251ms username=████████@████████.██
l=info m="imap command ioerror" err="get line: unexpected EOF (fatal io error)" pkg=imapserver cmd=idle duration="104.943µs" cid=189998ea1b8 delta=78.136528ms username=████████@████████.██
l=info m="connection closed" err="get line: unexpected EOF (fatal io error)" pkg=imapserver cid=189998ea1b8 delta="150.823µs" username=████████@████████.██
l=info m="new connection" pkg=smtpserver remote=███.███.███.███:52747 local=███.███.███.███:465 submission=true tls=true listener=public cid=189998ea1b9 delta="46.041µs"
l=debug m="smtp command result" pkg=smtpserver kind=submission cmd=ehlo code=250 ecode= duration="22.631µs" cid=189998ea1b9 delta=173.304877ms
l=debug m="smtp command result" pkg=smtpserver kind=submission cmd=auth code=235 ecode=2.7.0 duration=64.794801ms cid=189998ea1b9 delta=137.004119ms username=████████@████████.██
l=debug m="smtp command result" err="bad syntax: expected \"<\" (remaining \" <████████@████████.██>\")" pkg=smtpserver kind=submission cmd=mail code=501 ecode=5.5.2 duration="32.931µs" cid=189998ea1b9 delta=91.181126ms username=████████@████████.██
l=info m="connection closed" err="read: EOF (fatal io error)" pkg=smtpserver cid=189998ea1b9 delta=84.716772ms username=████████@████████.██
l=info m="connection closed" err="write: EOF (fatal io error)" pkg=imapserver cid=189998ea1ad delta=16m4.652620931s
l=info m="new connection" pkg=imapserver remote=███.███.███.███:57902 local=███.███.███.███:993 tls=true listener=public cid=189998ea1ba delta="28.871µs"
Any help is appreciated.