Good morning, Sorry for the formatting, I'm currently using the webmail.
Steffen Nurpmeso wrote : >Yes a happy and healthy year to everyone. > Well, the good news is that at one time noone left to be buried > but yourself. Haha! > May they all rest in peace at the right place where they belong. I like your energy and your humour ! |I send you this message because I'm unable to send emails from |Microsoft Exchange Server and s-nail v14.9.23 on Void Linux. It |affects this current account (which uses Outlook) and another |account I have in a corporation, also running the same solution. |My credentials are saved in a NETRC file, in addition to 'netrc-lookup' |& 'netrc-pipe'. I have no problems to display mailboxes with IMAP > So "set v15-compat=y" there is. Yes, that's true, I forgot to say it. 'set v15-compat' is defined in my mailrc. I'm ready for v15 ! |on 993 port, for both accounts. I tried to send emails with the |following settings for my Hotmail address, without success : | | set mta="submission://smtp.office365.com" (with and without :587 \ | specified) | set smtp-use-starttls | set smtp-auth=login | |The port 587 is opened, the certificate can be displayed with |'openssl s_client -starttls' command. In all my attempts, after I > You can use "tls fingerprint SERVER-URL[:PORT]" (or "certificate" > or "certchain" instead of "fingerprint") for this at your will. Ohh, thanks for the tip. I read s-nail(1) manpage very often, but I missed that command. |edit my message with EDITOR, a timeout seems to occur as |nothing is happening. After around 10 seconds, I have the |following message : | | s-nail: TLS socket read error, retrying: Interrupted system call | |Once this warning, s-nail is also unable to access the mailbox |using IMAP. I have this message : | | s-nail: IMAP write error: Bad file descriptor > Wait, wait. While you are logged in into the Microsoft IMAP > server, you want to send a file via SMTP. But the send to SMTP > happens only after editing has been ended, once and for all. > I wonder whether you have "set imap-keepalive=300" set, as this > timeout can only happen on the active IMAP connection, me thinks. That's it. 'set imap-keepalive=30' is also defined on my side, for all my accounts. |Using 'set debug' display the connection to the SMTP, we can |see the usual messages : | | s-nail: >>> Writing message via imaps... > So storage on *record* via IMAPS works. Actually, yes. | s-nail: >>> EHLO ... | s-nail: >>> STARTTLS | s-nail: >>> EHLO ... | s-nail: >>> AUTH LOGIN | (and so on). > Well that "so on" would be interesting as it seems to fail :) > I .. do not know, i once had a free Outlook account in order to > test OAuth, but i had the same experience as you do, i wrote about > it somewhere, SMTP sending just failed for no acceptable reason, > IMAP login was outright ok, exactly like you say. But then > Microsoft blocked my account once i sent a message with the > subject "Please, i want SMTP for microsoft". |The message is still not sent, even if I do not have the previous warnings. |By any chance, do you know how I could solve this issue ? > Not at the moment. But maybe i should try once again with a free > (non-)nonsense Outlook.com account to get SMTP working also. > I have to say, i had more trouble by then, because whereas IMAPS > worked, POP3S did not, even though the according checkbox was > enabled. I therefore suspected it is just an upstream > unwillingness / bug. That is, i did not even think they > effectively restricted their logins to OAuth-enabled, unlocked > applications. I think i look again when i have time next. > Thanks for the report. There was one in May 2020 already, but > i thought it worked out fine. Hm. Thanks to you, Steffen ! Your following feedback messages helped me A LOT, I really appreciate how you took your own free time to helps me (us). The s-nail SMTP output gave me a solid reference. Actually, sending mail via SMTP finally works. Here my config : set from="ADDRESS" set hostname="hotmail.fr" set mta="submission://smtp.office365.com" set smtp-use-starttls set smtp-auth=login 'hostname' was necessary as the local hostname was denied. I can understand it. Even if all Microsoft domains merged to Outlook, the "old" domains are still accepted. My hotmail address were created many years ago. But… the problem remains when I first connected to the mailbox via IMAP. Typing 'mail RECIPIENT-ADDRESS' or answering an existing message starts the editor (here pico or vi), asks me to save it and then, the issue occurs. The mail won't be sent. Here the output with 'set verbose=2' : s-nail: >>> Writing message via imaps://user%[email protected]:993/INBOX s-nail: *TMPDIR* is /tmp s-nail: *LOGNAME* is foo s-nail: *idna-disable* is not set s-nail: *v15-compat* is '' s-nail: >>> T19 APPEND "INBOX" "11-Jan-2022 12:00:50 +0100" {181} s-nail: >>> SERVER: + Ready for additional command text. s-nail: >>> SERVER: * NO Keywords are not supported! s-nail: >>> SERVER: * 1 RECENT s-nail: >>> SERVER: * 5 EXISTS s-nail: >>> SERVER: T19 OK [APPENDUID 14 6019] APPEND completed. s-nail: TLS socket read error, retrying: Interrupted system call s-nail: IMAP: error:00000000:lib(0):func(0):reason(0) s-nail: >>> T20 CREATE "INBOX" s-nail: Failed to save message in imaps://user%[email protected]:993/INBOX - message not sent s-nail: *save* is boolean set s-nail: *DEAD* is /tmp/dead.letter ...( many lines related to config like s-nail: ... is not set ) s-nail: >>> T21 FETCH 5:5 (FLAGS UID) s-nail: IMAP write error: Bad file descriptor s-nail: IMAP connection closed s-nail: -- Last message repeated 4 times -- Despite the last 'Failed to save message' error, the mail will be saved in @INBOX, because I defined this option 'set record="@INBOX"'. After the timeout and the no delivery, the IMAP connection is also lost. I need to reconnect manually. This behavior only seems to happen with Microsoft Exchange Server (both accounts I mentionned earlier). Also thanks for the mention in the THANKS file. You did everything by yourself, I just reported something strange, I feel a bit embarrassed. :) Thanks for your valuable help. Kind regards.
